/system/keymaster/km_openssl/ |
D | block_cipher_operation.cpp | 37 inline bool allows_padding(keymaster_block_mode_t block_mode) { in allows_padding() argument 38 switch (block_mode) { in allows_padding() 81 keymaster_block_mode_t block_mode; in CreateOperation() local 82 if (!begin_params.GetTagValue(TAG_BLOCK_MODE, &block_mode)) { in CreateOperation() 86 } else if (!supported(block_mode)) { in CreateOperation() 87 LOG_E("Block mode %d not supported", block_mode); in CreateOperation() 90 } else if (!key.authorizations().Contains(TAG_BLOCK_MODE, block_mode)) { in CreateOperation() 91 LOG_E("Block mode %d was specified, but not authorized by key", block_mode); in CreateOperation() 97 if (block_mode == KM_MODE_GCM) { in CreateOperation() 108 if (!allows_padding(block_mode) && padding != KM_PAD_NONE) { in CreateOperation() [all …]
|
D | block_cipher_operation.h | 36 virtual const EVP_CIPHER* GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode, 71 BlockCipherEvpOperation(keymaster_purpose_t purpose, keymaster_block_mode_t block_mode, 120 BlockCipherEvpEncryptOperation(keymaster_block_mode_t block_mode, keymaster_padding_t padding, in BlockCipherEvpEncryptOperation() argument 123 : BlockCipherEvpOperation(KM_PURPOSE_ENCRYPT, block_mode, padding, caller_iv, tag_length, in BlockCipherEvpEncryptOperation() 140 BlockCipherEvpDecryptOperation(keymaster_block_mode_t block_mode, keymaster_padding_t padding, in BlockCipherEvpDecryptOperation() argument 143 : BlockCipherEvpOperation(KM_PURPOSE_DECRYPT, block_mode, padding, in BlockCipherEvpDecryptOperation()
|
D | triple_des_operation.cpp | 30 TripleDesEvpCipherDescription::GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode, in GetCipherInstance() argument 34 switch (block_mode) { in GetCipherInstance()
|
D | aes_operation.cpp | 31 keymaster_block_mode_t block_mode, in GetCipherInstance() argument 35 switch (block_mode) { in GetCipherInstance()
|
D | triple_des_operation.h | 32 const EVP_CIPHER* GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode,
|
D | aes_operation.h | 32 const EVP_CIPHER* GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode,
|
D | attestation_record.cpp | 594 integer_set = &record->block_mode; in build_auth_list() 1150 if (!get_repeated_enums(record->block_mode, TAG_BLOCK_MODE, auth_list)) { in extract_auth_list()
|
/system/keymaster/android_keymaster/ |
D | operation.cpp | 31 bool OperationFactory::supported(keymaster_block_mode_t block_mode) const { in supported() 35 if (block_mode == supported_block_modes[i]) return true; in supported()
|
/system/keymaster/tests/ |
D | android_keymaster_test_utils.cpp | 494 string Keymaster2Test::EncryptMessage(const string& message, keymaster_block_mode_t block_mode, in EncryptMessage() argument 497 return EncryptMessage(update_params, message, block_mode, padding, generated_nonce); in EncryptMessage() 540 keymaster_block_mode_t block_mode, in EncryptMessage() argument 545 begin_params.push_back(TAG_BLOCK_MODE, block_mode); in EncryptMessage() 584 string Keymaster2Test::DecryptMessage(const string& ciphertext, keymaster_block_mode_t block_mode, in DecryptMessage() argument 589 begin_params.push_back(TAG_BLOCK_MODE, block_mode); in DecryptMessage() 605 string Keymaster2Test::DecryptMessage(const string& ciphertext, keymaster_block_mode_t block_mode, in DecryptMessage() argument 610 begin_params.push_back(TAG_BLOCK_MODE, block_mode); in DecryptMessage() 696 keymaster_block_mode_t block_mode, in CheckTripleDesTestVector() argument 702 .Authorization(TAG_BLOCK_MODE, block_mode) in CheckTripleDesTestVector() [all …]
|
D | android_keymaster_test_utils.h | 253 std::string EncryptMessage(const std::string& message, keymaster_block_mode_t block_mode, 262 keymaster_block_mode_t block_mode, keymaster_padding_t padding, 272 std::string DecryptMessage(const std::string& ciphertext, keymaster_block_mode_t block_mode, 278 std::string DecryptMessage(const std::string& ciphertext, keymaster_block_mode_t block_mode, 284 keymaster_block_mode_t block_mode, keymaster_padding_t padding,
|
D | android_keymaster_test.cpp | 3205 const keymaster_block_mode_t block_mode; member 3361 CheckTripleDesTestVector(test.purpose, test.block_mode, test.padding_mode, in TEST_P()
|
/system/keymaster/include/keymaster/km_openssl/ |
D | attestation_record.h | 78 ASN1_INTEGER_SET* block_mode; member 127 ASN1_EXP_SET_OF_OPT(KM_AUTH_LIST, block_mode, ASN1_INTEGER, TAG_BLOCK_MODE.masked_tag()),
|
/system/security/keystore2/src/ |
D | metrics_store.rs | 482 fn compute_block_mode_bitmap(block_mode_bitmap: &mut i32, block_mode: BlockMode) { in compute_block_mode_bitmap() 483 match block_mode { in compute_block_mode_bitmap()
|