Searched refs:rsa_key_ (Results 1 – 5 of 5) sorted by relevance
/system/keymaster/include/keymaster/km_openssl/ |
D | rsa_key.h | 34 : AsymmetricKey(move(hw_enforced), move(sw_enforced), factory), rsa_key_(move(rsa_key)) {} in RsaKey() 42 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 RSA_Ptr rsa_key_;
|
D | rsa_operation.h | 39 : Operation(purpose, move(hw_enforced), move(sw_enforced)), rsa_key_(key), in RsaOperation() 61 EVP_PKEY* rsa_key_; variable
|
/system/keymaster/km_openssl/ |
D | rsa_key.cpp | 27 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()
|
D | rsa_operation.cpp | 166 if (rsa_key_ != nullptr) EVP_PKEY_free(rsa_key_); in ~RsaOperation() 196 if (!data_.reserve(EVP_PKEY_size(rsa_key_))) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in StoreData() 200 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData() 262 if (EVP_MD_size(digest_algorithm_) * 2 + kPssOverhead > (size_t)EVP_PKEY_size(rsa_key_)) { in GetOpensslPadding() 265 EVP_MD_size(digest_algorithm_), EVP_PKEY_size(rsa_key_)); in GetOpensslPadding() 284 rsa_key_) != 1) in Begin() 331 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in SignUndigested() 336 size_t key_len = EVP_PKEY_size(rsa_key_); in SignUndigested() 357 data_.available_read(), EVP_PKEY_size(rsa_key_) * 8); in SignUndigested() 395 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr, rsa_key_) != 1) in Begin() [all …]
|
/system/keymaster/legacy_support/ |
D | rsa_keymaster1_operation.h | 67 keymaster_error_t error = wrapped_operation_.Begin(super::rsa_key_, input_params); in Begin() 75 keymaster_error_t error = wrapped_operation_.PrepareFinish(super::rsa_key_, input_params); in Finish() 78 if (wrapped_operation_.GetError(super::rsa_key_) != KM_ERROR_OK) in Finish() 79 error = wrapped_operation_.GetError(super::rsa_key_); in Finish()
|