Lines Matching refs:challenge
73 BIGNUM *challenge; in auth_rsa_generate_challenge() local
76 if ((challenge = BN_new()) == NULL) in auth_rsa_generate_challenge()
79 if (BN_rand(challenge, 256, 0, 0) == 0) in auth_rsa_generate_challenge()
83 if (BN_mod(challenge, challenge, key->rsa->n, ctx) == 0) in auth_rsa_generate_challenge()
87 return challenge; in auth_rsa_generate_challenge()
91 auth_rsa_verify_response(Key *key, BIGNUM *challenge, u_char response[16]) in auth_rsa_verify_response() argument
105 len = BN_num_bytes(challenge); in auth_rsa_verify_response()
109 BN_bn2bin(challenge, buf + 32 - len); in auth_rsa_verify_response()
133 BIGNUM *challenge, *encrypted_challenge; in auth_rsa_challenge_dialog() local
140 challenge = PRIVSEP(auth_rsa_generate_challenge(key)); in auth_rsa_challenge_dialog()
143 rsa_public_encrypt(encrypted_challenge, challenge, key->rsa); in auth_rsa_challenge_dialog()
158 success = PRIVSEP(auth_rsa_verify_response(key, challenge, response)); in auth_rsa_challenge_dialog()
159 BN_clear_free(challenge); in auth_rsa_challenge_dialog()