/system/keymaster/legacy_support/ |
D | ecdsa_keymaster1_operation.h | 39 keymaster_error_t Begin(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params); 40 keymaster_error_t PrepareFinish(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params); 66 keymaster_error_t Begin(const AuthorizationSet& input_params, in Begin() argument 68 keymaster_error_t error = wrapped_operation_.Begin(super::ecdsa_key_, input_params); in Begin() 71 return super::Begin(input_params, output_params); in Begin() 74 keymaster_error_t Finish(const AuthorizationSet& input_params, const Buffer& input, in Finish() argument 77 keymaster_error_t error = wrapped_operation_.PrepareFinish(super::ecdsa_key_, input_params); in Finish() 80 error = super::Finish(input_params, input, signature, output_params, output); in Finish()
|
D | rsa_keymaster1_operation.h | 39 keymaster_error_t Begin(EVP_PKEY* rsa_key, const AuthorizationSet& input_params); 40 keymaster_error_t PrepareFinish(EVP_PKEY* rsa_key, const AuthorizationSet& input_params); 66 keymaster_error_t Begin(const AuthorizationSet& input_params, in Begin() argument 68 keymaster_error_t error = wrapped_operation_.Begin(super::rsa_key_, input_params); in Begin() 71 return super::Begin(input_params, output_params); in Begin() 74 keymaster_error_t Finish(const AuthorizationSet& input_params, const Buffer& input, in Finish() argument 77 keymaster_error_t error = wrapped_operation_.PrepareFinish(super::rsa_key_, input_params); in Finish() 80 error = super::Finish(input_params, input, signature, output_params, output); in Finish()
|
D | keymaster_passthrough_operation.h | 46 keymaster_error_t Begin(const AuthorizationSet& input_params, in Begin() argument 50 rc = km_device_->begin(km_device_, purpose(), &key_blob_, &input_params, &out_params, in Begin() 56 keymaster_error_t Update(const AuthorizationSet& input_params, const Buffer& input, in Update() argument 63 rc = km_device_->update(km_device_, operation_handle_, &input_params, &in, input_consumed, in Update() 73 keymaster_error_t Finish(const AuthorizationSet& input_params, const Buffer& input, 85 const AuthorizationSet& input_params, const Buffer& input, const Buffer& signature, 89 const AuthorizationSet& input_params, const Buffer& input, const Buffer& signature,
|
D | ecdsa_keymaster1_operation.cpp | 31 const AuthorizationSet& input_params) { in Begin() argument 49 AuthorizationSet begin_params(input_params); in Begin() 61 const AuthorizationSet& input_params) { in PrepareFinish() argument 68 key_data->finish_params.Reinitialize(input_params); in PrepareFinish()
|
D | keymaster_passthrough_operation.cpp | 26 KeymasterPassthroughOperation<keymaster1_device_t>::Finish(const AuthorizationSet& input_params, in Finish() argument 37 AuthorizationSet mutable_input_params = input_params; in Finish() 95 KeymasterPassthroughOperation<keymaster2_device_t>::Finish(const AuthorizationSet& input_params, co… in Finish() argument 103 …rc = km_device_->finish(km_device_, operation_handle_, &input_params, &in, &sig, &out_params, &out… in Finish()
|
D | rsa_keymaster1_operation.cpp | 31 const AuthorizationSet& input_params) { in Begin() argument 48 AuthorizationSet begin_params(input_params); in Begin() 82 const AuthorizationSet& input_params) { in PrepareFinish() argument 89 key_data->finish_params.Reinitialize(input_params); in PrepareFinish()
|
/system/keymaster/include/keymaster/ |
D | operation.h | 110 virtual keymaster_error_t Begin(const AuthorizationSet& input_params, 112 virtual keymaster_error_t Update(const AuthorizationSet& input_params, const Buffer& input, 115 virtual keymaster_error_t Finish(const AuthorizationSet& input_params, const Buffer& input, 123 keymaster_error_t UpdateForFinish(const AuthorizationSet& input_params, const Buffer& input);
|
/system/keymaster/km_openssl/ |
D | block_cipher_operation.h | 76 keymaster_error_t Begin(const AuthorizationSet& input_params, 91 keymaster_error_t GetIv(const AuthorizationSet& input_params); 92 bool HandleAad(const AuthorizationSet& input_params, const Buffer& input, 126 keymaster_error_t Begin(const AuthorizationSet& input_params, 147 keymaster_error_t Begin(const AuthorizationSet& input_params,
|
D | block_cipher_operation.cpp | 256 keymaster_error_t BlockCipherEvpOperation::GetIv(const AuthorizationSet& input_params) { in GetIv() argument 258 if (!input_params.GetTagValue(TAG_NONCE, &iv_blob)) { in GetIv() 287 bool BlockCipherEvpOperation::HandleAad(const AuthorizationSet& input_params, const Buffer& input, in HandleAad() argument 293 if (input_params.GetTagValue(TAG_ASSOCIATED_DATA, &aad)) { in HandleAad() 395 keymaster_error_t BlockCipherEvpEncryptOperation::Begin(const AuthorizationSet& input_params, in Begin() argument 401 if (input_params.find(TAG_NONCE) == -1) { in Begin() 404 error = GetIv(input_params); in Begin() 413 return BlockCipherEvpOperation::Begin(input_params, output_params); in Begin() 447 keymaster_error_t BlockCipherEvpDecryptOperation::Begin(const AuthorizationSet& input_params, in Begin() argument 450 keymaster_error_t error = GetIv(input_params); in Begin() [all …]
|
D | hmac_operation.h | 31 virtual keymaster_error_t Begin(const AuthorizationSet& input_params,
|
D | rsa_operation.cpp | 266 keymaster_error_t RsaSignOperation::Begin(const AuthorizationSet& input_params, in Begin() argument 268 keymaster_error_t error = RsaDigestingOperation::Begin(input_params, output_params); in Begin() 390 keymaster_error_t RsaVerifyOperation::Begin(const AuthorizationSet& input_params, in Begin() argument 392 keymaster_error_t error = RsaDigestingOperation::Begin(input_params, output_params); in Begin()
|
/system/keymaster/android_keymaster/ |
D | operation.cpp | 152 keymaster_error_t Operation::UpdateForFinish(const AuthorizationSet& input_params, in UpdateForFinish() argument 154 if (!input_params.empty() || input.available_read()) { in UpdateForFinish() 159 Update(input_params, input, &output_params, &output, &input_consumed); in UpdateForFinish()
|
/system/keymaster/tests/ |
D | android_keymaster_test_utils.cpp | 403 AuthorizationSet input_params(AuthorizationSet(client_params_, array_length(client_params_))); in SignMessage() local 404 input_params.push_back(TAG_DIGEST, digest); in SignMessage() 408 ProcessMessage(KM_PURPOSE_SIGN, message, input_params, update_params, &output_params); in SignMessage() 415 AuthorizationSet input_params(AuthorizationSet(client_params_, array_length(client_params_))); in SignMessage() local 416 input_params.push_back(TAG_DIGEST, digest); in SignMessage() 417 input_params.push_back(TAG_PADDING, padding); in SignMessage() 421 ProcessMessage(KM_PURPOSE_SIGN, message, input_params, update_params, &output_params); in SignMessage() 427 AuthorizationSet input_params(AuthorizationSet(client_params_, array_length(client_params_))); in MacMessage() local 428 input_params.push_back(TAG_MAC_LENGTH, mac_length); in MacMessage() 432 ProcessMessage(KM_PURPOSE_SIGN, message, input_params, update_params, &output_params); in MacMessage() [all …]
|
D | android_keymaster_test.cpp | 2646 AuthorizationSet input_params(client_params()); in TEST_P() local 2647 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CTR); in TEST_P() 2648 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P() 2650 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_ENCRYPT, input_params, &output_params)); in TEST_P() 2661 input_params.Reinitialize(output_params); in TEST_P() 2662 input_params.push_back(client_params()); in TEST_P() 2663 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CTR); in TEST_P() 2664 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P() 2667 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_DECRYPT, input_params, &output_params)); in TEST_P() 2749 AuthorizationSet input_params(client_params()); in TEST_P() local [all …]
|
/system/keymaster/include/keymaster/km_openssl/ |
D | ecdsa_operation.h | 58 keymaster_error_t Begin(const AuthorizationSet& input_params, 73 keymaster_error_t Begin(const AuthorizationSet& input_params,
|
D | rsa_operation.h | 43 keymaster_error_t Begin(const AuthorizationSet& input_params, 97 keymaster_error_t Begin(const AuthorizationSet& input_params, 121 keymaster_error_t Begin(const AuthorizationSet& input_params,
|