version 1.48, 2001/01/25 08:06:33 |
version 1.49, 2001/01/29 19:47:31 |
|
|
private = lookup_private_key(key, NULL, 1); |
private = lookup_private_key(key, NULL, 1); |
if (private != NULL) { |
if (private != NULL) { |
/* Decrypt the challenge using the private key. */ |
/* Decrypt the challenge using the private key. */ |
rsa_private_decrypt(challenge, challenge, private->rsa); |
if (rsa_private_decrypt(challenge, challenge, private->rsa) <= 0) |
|
goto failure; |
|
|
/* The response is MD5 of decrypted challenge plus session id. */ |
/* The response is MD5 of decrypted challenge plus session id. */ |
len = BN_num_bytes(challenge); |
len = BN_num_bytes(challenge); |