Home | History | Annotate | Download | only in base

Lines Matching defs:rsa

35 #include <openssl/rsa.h>
46 // Strength of generated keys. Those are RSA.
61 RSA* rsa = RSA_generate_key(KEY_LENGTH, 0x10001, NULL, NULL);
62 if (!EVP_PKEY_assign_RSA(pkey, rsa)) {
64 RSA_free(rsa);
70 RSA* rsa = RSA_new();
71 if (!pkey || !exponent || !rsa ||
72 !BN_set_word(exponent, 0x10001) || // 65537 RSA exponent
73 !RSA_generate_key_ex(rsa, KEY_LENGTH, exponent, NULL) ||
74 !EVP_PKEY_assign_RSA(pkey, rsa)) {
77 RSA_free(rsa);
80 // ownership of rsa struct was assigned, don't free it.