/system/keymaster/km_openssl/ |
D | block_cipher_operation.cpp | 39 inline bool allows_padding(keymaster_block_mode_t block_mode) { in allows_padding() argument 40 switch (block_mode) { in allows_padding() 83 keymaster_block_mode_t block_mode; in CreateOperation() local 84 if (!begin_params.GetTagValue(TAG_BLOCK_MODE, &block_mode)) { in CreateOperation() 88 } else if (!supported(block_mode)) { in CreateOperation() 89 LOG_E("Block mode %d not supported", block_mode); in CreateOperation() 92 } else if (!key.authorizations().Contains(TAG_BLOCK_MODE, block_mode)) { in CreateOperation() 93 LOG_E("Block mode %d was specified, but not authorized by key", block_mode); in CreateOperation() 99 if (block_mode == KM_MODE_GCM) { in CreateOperation() 110 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 | aes_operation.h | 32 const EVP_CIPHER* GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode,
|
D | triple_des_operation.h | 32 const EVP_CIPHER* GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode,
|
D | attestation_record.cpp | 174 integer_set = &record->block_mode; in build_auth_list() 563 if (!get_repeated_enums(record->block_mode, TAG_BLOCK_MODE, auth_list)) in extract_auth_list()
|
/system/keymaster/android_keymaster/ |
D | operation.cpp | 33 bool OperationFactory::supported(keymaster_block_mode_t block_mode) const { in supported() 37 if (block_mode == supported_block_modes[i]) in supported()
|
/system/keymaster/tests/ |
D | android_keymaster_test_utils.cpp | 488 string Keymaster2Test::EncryptMessage(const string& message, keymaster_block_mode_t block_mode, in EncryptMessage() argument 491 return EncryptMessage(update_params, message, block_mode, padding, generated_nonce); in EncryptMessage() 514 keymaster_block_mode_t block_mode, in EncryptMessage() argument 519 begin_params.push_back(TAG_BLOCK_MODE, block_mode); in EncryptMessage() 558 string Keymaster2Test::DecryptMessage(const string& ciphertext, keymaster_block_mode_t block_mode, in DecryptMessage() argument 563 begin_params.push_back(TAG_BLOCK_MODE, block_mode); in DecryptMessage() 579 string Keymaster2Test::DecryptMessage(const string& ciphertext, keymaster_block_mode_t block_mode, in DecryptMessage() argument 584 begin_params.push_back(TAG_BLOCK_MODE, block_mode); in DecryptMessage() 660 keymaster_block_mode_t block_mode, in CheckTripleDesTestVector() argument 666 .Authorization(TAG_BLOCK_MODE, block_mode) in CheckTripleDesTestVector() [all …]
|
D | android_keymaster_test_utils.h | 255 std::string EncryptMessage(const std::string& message, keymaster_block_mode_t block_mode, 261 keymaster_block_mode_t block_mode, keymaster_padding_t padding, 271 std::string DecryptMessage(const std::string& ciphertext, keymaster_block_mode_t block_mode, 275 std::string DecryptMessage(const std::string& ciphertext, keymaster_block_mode_t block_mode, 281 keymaster_block_mode_t block_mode, keymaster_padding_t padding,
|
D | android_keymaster_test.cpp | 3488 const keymaster_block_mode_t block_mode; member 3644 CheckTripleDesTestVector(test.purpose, test.block_mode, test.padding_mode, in TEST_P()
|
/system/keymaster/include/keymaster/ |
D | attestation_record.h | 59 ASN1_INTEGER_SET* block_mode; member 99 ASN1_EXP_SET_OF_OPT(KM_AUTH_LIST, block_mode, ASN1_INTEGER, TAG_BLOCK_MODE.masked_tag()),
|
/system/security/keystore/ |
D | key_config.proto | 49 repeated string block_mode = 8; field
|
D | operation_config.proto | 50 optional string block_mode = 8; field
|
D | keystore_client_impl.cpp | 560 auto block_mode = NullOrOr(hardware_enforced_characteristics.GetTagValue(TAG_BLOCK_MODE), in verifyEncryptionKeyAttributes() local 562 if (!block_mode.isOk() || block_mode.value() != BlockMode::CBC) { in verifyEncryptionKeyAttributes()
|