Home
last modified time | relevance | path

Searched refs:rsa_key_ (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/
Drsa_operation.cpp30 if (rsa_key_ != NULL) in ~RsaOperation()
31 RSA_free(rsa_key_); in ~RsaOperation()
52 output->Reinitialize(RSA_size(rsa_key_)); in Finish()
54 output->peek_write(), rsa_key_, RSA_NO_PADDING); in Finish()
57 assert(bytes_encrypted == RSA_size(rsa_key_)); in Finish()
64 if ((int)data_.available_read() != RSA_size(rsa_key_)) in Finish()
69 UniquePtr<uint8_t[]> decrypted_data(new uint8_t[RSA_size(rsa_key_)]); in Finish()
71 decrypted_data.get(), rsa_key_, RSA_NO_PADDING); in Finish()
74 assert(bytes_decrypted == RSA_size(rsa_key_)); in Finish()
Drsa_operation.h32 : Operation(purpose, logger), rsa_key_(key), digest_(digest), padding_(padding) {} in RsaOperation()
42 RSA* rsa_key_; variable
Dasymmetric_key.h73 : AsymmetricKey(auths, logger), rsa_key_(rsa_key) {} in RsaKey()
83 UniquePtr<RSA, RSA_Delete> rsa_key_; variable
Dasymmetric_key.cpp232 op = new RsaSignOperation(purpose, logger_, digest, padding, rsa_key_.release()); in CreateOperation()
235 op = new RsaVerifyOperation(purpose, logger_, digest, padding, rsa_key_.release()); in CreateOperation()
246 rsa_key_.reset(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pkey))); in EvpToInternal()
247 return rsa_key_.get() != NULL; in EvpToInternal()
251 return EVP_PKEY_set1_RSA(pkey, rsa_key_.get()) == 1; in InternalToEvp()