Lines Matching defs:rsa
645 RSA *rsa;
648 rsa = EVP_PKEY_get1_RSA(pkey_gqkey);
649 RSA_get0_factors(rsa, NULL, &q);
651 RSA_free(rsa);
660 RSA *rsa;
668 rsa = EVP_PKEY_get1_RSA(pkey_gqkey);
669 RSA_set0_factors(rsa, BN_dup(BN_value_one()), BN_dup(BN_value_one()));
671 EVP_PKEY_assign_RSA(pkey, rsa);
676 RSA_print_fp(stderr, rsa, 0);
680 RSA_free(rsa);
687 RSA *rsa;
695 rsa = EVP_PKEY_get1_RSA(pkey_gqkey);
697 EVP_PKEY_assign_RSA(pkey, rsa);
702 RSA_print_fp(stderr, rsa, 0);
706 RSA_free(rsa);
1014 RSA *rsa; /* RSA parameters and key pair */
1018 rsa = genRsaKeyPair(modulus, _UC("RSA"));
1020 if (rsa == NULL) {
1032 if (!RSA_check_key(rsa)) {
1035 RSA_free(rsa);
1048 EVP_PKEY_assign_RSA(pkey, rsa);
1053 RSA_print_fp(stderr, rsa, 0);
1345 RSA *rsa; /* RSA parameters */
1359 rsa = genRsaKeyPair(modulus2, _UC("GQ"));
1361 if (rsa == NULL) {
1366 RSA_get0_key(rsa, &n, NULL, NULL);
1405 RSA_free(rsa);
1412 RSA_set0_factors(rsa, BN_dup(u), BN_dup(v));
1449 RSA_free(rsa);
1466 RSA_set0_key(rsa, NULL, b, BN_dup(BN_value_one()));
1467 RSA_set0_crt_params(rsa, BN_dup(BN_value_one()), BN_dup(BN_value_one()),
1471 EVP_PKEY_assign_RSA(pkey, rsa);
1476 RSA_print_fp(stderr, rsa, 0);
2212 RSA * rsa = RSA_new();
2220 if (!(rsa && gcb && bne && RSA_generate_key_ex(
2221 rsa, bits, bne, gcb)))
2223 RSA_free(rsa);
2224 rsa = NULL;
2228 return rsa;