Home | History | Annotate | Download | only in openssh

Lines Matching defs:rsa

67 	int			(*orig_finish)(RSA *rsa);
171 /* openssl callback for freeing an RSA key */
173 pkcs11_rsa_finish(RSA *rsa)
178 if ((k11 = RSA_get_app_data(rsa)) != NULL) {
180 rv = k11->orig_finish(rsa);
220 pkcs11_rsa_private_encrypt(int flen, const u_char *from, u_char *to, RSA *rsa,
247 if ((k11 = RSA_get_app_data(rsa)) == NULL) {
248 error("RSA_get_app_data failed for rsa %p", rsa);
252 error("no pkcs11 (valid) provider for rsa %p", rsa);
286 tlen = RSA_size(rsa);
297 pkcs11_rsa_private_decrypt(int flen, const u_char *from, u_char *to, RSA *rsa,
303 /* redirect private key operations for rsa key to pkcs11 token */
306 CK_ATTRIBUTE *keyid_attrib, RSA *rsa)
313 provider->refcount++; /* provider referenced by RSA key */
325 RSA_set_method(rsa, &k11->rsa_method);
326 RSA_set_app_data(rsa, k11);
393 RSA *rsa;
445 /* retrieve ID, modulus and public exponent of RSA key */
449 } else if ((rsa = RSA_new()) == NULL) {
452 rsa->n = BN_bin2bn(attribs[1].pValue,
454 rsa->e = BN_bin2bn(attribs[2].pValue,
456 if (rsa->n && rsa->e &&
457 pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) {
459 key->rsa = rsa;
469 RSA_free(rsa);