Lines Matching refs:rsa
27 #include <openssl/rsa.h>
236 Unique_RSA rsa(RSA_new());
237 if (rsa.get() == NULL) {
242 if (!RSA_generate_key_ex(rsa.get(), rsa_params->modulus_size, bn.get(), NULL)
243 || RSA_check_key(rsa.get()) < 0) {
255 if (EVP_PKEY_assign_RSA(pkey.get(), rsa.get()) == 0) {
259 OWNERSHIP_TRANSFERRED(rsa);
378 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey.get()));
379 if (rsa.get() == NULL) {
391 if (RSA_private_encrypt(dataLength, data, tmp, rsa.get(), RSA_NO_PADDING) <= 0) {
434 Unique_RSA rsa(EVP_PKEY_get1_RSA(pkey.get()));
435 if (rsa.get() == NULL) {
447 if (!RSA_public_decrypt(signatureLength, signature, tmp, rsa.get(), RSA_NO_PADDING)) {