Lines Matching refs:rsa
76 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> rsa(GetRsaKey(key, error)); in CreateRsaOperation() local
77 if (!rsa.get()) return nullptr; in CreateRsaOperation()
80 padding, rsa.release()); in CreateRsaOperation()
331 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in SignUndigested() local
332 if (!rsa.get()) return TranslateLastOpenSslError(); in SignUndigested()
334 if (!output->Reinitialize(RSA_size(rsa.get()))) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in SignUndigested()
349 bytes_encrypted = RSA_private_encrypt(key_len, to_encrypt, output->peek_write(), rsa.get(), in SignUndigested()
361 output->peek_write(), rsa.get(), RSA_PKCS1_PADDING); in SignUndigested()
428 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in VerifyUndigested() local
429 if (!rsa.get()) return KM_ERROR_UNKNOWN_ERROR; in VerifyUndigested()
431 size_t key_len = RSA_size(rsa.get()); in VerifyUndigested()
454 decrypted_data.get(), rsa.get(), openssl_padding); in VerifyUndigested()