Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Drsa_key.cpp27 rsa_key_.reset(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pkey))); in EvpToInternal()
28 return rsa_key_.get() != nullptr; in EvpToInternal()
32 return EVP_PKEY_set1_RSA(pkey, rsa_key_.get()) == 1; in InternalToEvp()
Drsa_operation.cpp133 if (rsa_key_ != nullptr) in ~RsaOperation()
134 EVP_PKEY_free(rsa_key_); in ~RsaOperation()
164 if (!data_.reserve(EVP_PKEY_size(rsa_key_))) in StoreData()
169 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData()
253 if (EVP_MD_size(digest_algorithm_) * 2 + kPssOverhead > (size_t)EVP_PKEY_size(rsa_key_)) { in GetOpensslPadding()
256 EVP_MD_size(digest_algorithm_), EVP_PKEY_size(rsa_key_)); in GetOpensslPadding()
277 rsa_key_) != 1) in Begin()
327 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in SignUndigested()
334 size_t key_len = EVP_PKEY_size(rsa_key_); in SignUndigested()
356 data_.available_read(), EVP_PKEY_size(rsa_key_) * 8); in SignUndigested()
[all …]
/system/keymaster/include/keymaster/km_openssl/
Drsa_key.h42 RSA* key() const { return rsa_key_.get(); } in key()
47 : AsymmetricKey(move(hw_enforced), move(sw_enforced), key_factory), rsa_key_(rsa) {} in RsaKey()
50 UniquePtr<RSA, RSA_Delete> rsa_key_;
Drsa_operation.h39 : Operation(purpose, move(hw_enforced), move(sw_enforced)), rsa_key_(key), in RsaOperation()
61 EVP_PKEY* rsa_key_; variable
/system/keymaster/legacy_support/
Drsa_keymaster1_operation.h68 keymaster_error_t error = wrapped_operation_.Begin(super::rsa_key_, input_params); in Begin()
77 keymaster_error_t error = wrapped_operation_.PrepareFinish(super::rsa_key_, input_params); in Finish()
81 if (wrapped_operation_.GetError(super::rsa_key_) != KM_ERROR_OK) in Finish()
82 error = wrapped_operation_.GetError(super::rsa_key_); in Finish()