Home
last modified time | relevance | path

Searched refs:block_mode (Results 1 – 15 of 15) sorted by relevance

/system/keymaster/km_openssl/
Dblock_cipher_operation.cpp39 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 …]
Dblock_cipher_operation.h36 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()
Dtriple_des_operation.cpp30 TripleDesEvpCipherDescription::GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode, in GetCipherInstance() argument
34 switch (block_mode) { in GetCipherInstance()
Daes_operation.cpp31 keymaster_block_mode_t block_mode, in GetCipherInstance() argument
35 switch (block_mode) { in GetCipherInstance()
Daes_operation.h32 const EVP_CIPHER* GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode,
Dtriple_des_operation.h32 const EVP_CIPHER* GetCipherInstance(size_t key_size, keymaster_block_mode_t block_mode,
Dattestation_record.cpp177 integer_set = &record->block_mode; in build_auth_list()
578 if (!get_repeated_enums(record->block_mode, TAG_BLOCK_MODE, auth_list)) in extract_auth_list()
/system/keymaster/android_keymaster/
Doperation.cpp33 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/
Dandroid_keymaster_test_utils.cpp488 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 …]
Dandroid_keymaster_test_utils.h255 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,
Dandroid_keymaster_test.cpp3488 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/
Dattestation_record.h63 ASN1_INTEGER_SET* block_mode; member
107 ASN1_EXP_SET_OF_OPT(KM_AUTH_LIST, block_mode, ASN1_INTEGER, TAG_BLOCK_MODE.masked_tag()),
/system/security/keystore/
Dkey_config.proto49 repeated string block_mode = 8; field
Doperation_config.proto50 optional string block_mode = 8; field
Dkeystore_client_impl.cpp570 auto block_mode = NullOrOr(hardware_enforced_characteristics.GetTagValue(TAG_BLOCK_MODE), in verifyEncryptionKeyAttributes() local
572 if (!block_mode.isOk() || block_mode.value() != BlockMode::CBC) { in verifyEncryptionKeyAttributes()