/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 1375 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB))); in TEST_P() 2076 CheckCryptoParam(TAG_BLOCK_MODE, BlockMode::ECB); in TEST_P() 2080 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P() 2183 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P() 2574 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_P() 2577 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE); in TEST_P() 2603 .Authorization(TAG_BLOCK_MODE, BlockMode::CBC) in TEST_P() 2610 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE))); in TEST_P() 2623 .Authorization(TAG_BLOCK_MODE, BlockMode::GCM) in TEST_P() 2629 .BlockMode(BlockMode::GCM) in TEST_P() [all …]
|
D | KeymasterHidlTest.cpp | 470 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 477 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 484 void KeymasterHidlTest::CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, in CheckTripleDesTestVector() 490 .BlockMode(block_mode) in CheckTripleDesTestVector() 495 auto begin_params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckTripleDesTestVector() 554 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() 557 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage() 564 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() 567 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage() 577 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() [all …]
|
D | KeymasterHidlTest.h | 175 void CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, 189 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding); 190 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 192 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 194 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 200 string DecryptMessage(const string& ciphertext, BlockMode block_mode, PaddingMode padding_mode,
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 785 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 792 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 1786 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB))) in TEST_P() 2494 CheckKm1CryptoParam(TAG_BLOCK_MODE, BlockMode::ECB); in TEST_P() 2498 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P() 2870 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_P() 2873 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE); in TEST_P() 2899 .Authorization(TAG_BLOCK_MODE, BlockMode::CBC) in TEST_P() 2906 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE))); in TEST_P() 2919 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_P() [all …]
|
D | authorization_set.h | 290 AuthorizationSetBuilder& BlockMode(std::initializer_list<BlockMode> block_modes); 296 template <typename... T> AuthorizationSetBuilder& BlockMode(T&&... a) { in BlockMode() function 297 return BlockMode({std::forward<T>(a)...}); in BlockMode() 393 return BlockMode(BlockMode::ECB); in EcbMode() 397 AuthorizationSetBuilder::BlockMode(std::initializer_list<V3_0::BlockMode> block_modes) { in BlockMode() function
|
D | keymaster_tags.h | 370 inline const char* stringify(BlockMode block_mode) { 372 case BlockMode::ECB: 374 case BlockMode::CBC: 376 case BlockMode::CTR: 378 case BlockMode::GCM:
|
D | key_param_output.h | 39 ::std::ostream& operator<<(::std::ostream& os, BlockMode value);
|
D | key_param_output.cpp | 50 ::std::ostream& operator<<(::std::ostream& os, BlockMode value) { in operator <<()
|
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | Keymaster4_1HidlTest.h | 64 .BlockMode(BlockMode::ECB) in CreateTestKeys() 111 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE)); in UseAesKey()
|
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/ |
D | authorization_set.h | 290 AuthorizationSetBuilder& BlockMode(std::initializer_list<BlockMode> blockModes); 295 AuthorizationSetBuilder& BlockMode(T&&... a) { in BlockMode() function 296 return BlockMode({std::forward<T>(a)...}); in BlockMode()
|
D | key_param_output.h | 32 inline ::std::ostream& operator<<(::std::ostream& os, BlockMode value) {
|
/hardware/interfaces/keymaster/4.0/vts/performance/ |
D | Benchmark.cpp | 62 using android::hardware::keymaster::V4_0::BlockMode; 139 PaddingMode padding = PaddingMode::NONE, optional<BlockMode> blockMode = {}) { in GenerateKey() 152 authSet.BlockMode(*blockMode); 217 optional<BlockMode> blockMode = getBlockMode(transform); in getOperationParams() 219 builder.BlockMode(*blockMode); in getOperationParams() 329 optional<BlockMode> getBlockMode(string transform) { in getBlockMode() 331 return BlockMode::ECB; in getBlockMode() 333 return BlockMode::CBC; in getBlockMode() 335 return BlockMode::CTR; in getBlockMode() 337 return BlockMode::GCM; in getBlockMode()
|
/hardware/interfaces/keymaster/4.0/support/ |
D | authorization_set.cpp | 539 return Authorization(TAG_BLOCK_MODE, BlockMode::ECB); in EcbMode() 543 return BlockMode(BlockMode::GCM) in GcmModeMinMacLen() 549 return BlockMode(BlockMode::GCM) in GcmModeMacLen() 554 AuthorizationSetBuilder& AuthorizationSetBuilder::BlockMode( in BlockMode() function in android::hardware::keymaster::V4_0::AuthorizationSetBuilder 555 std::initializer_list<V4_0::BlockMode> blockModes) { in BlockMode()
|
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/ |
D | keymaster_tags.h | 27 using V4_0::BlockMode;
|
/hardware/interfaces/keymaster/3.0/ |
D | types.hal | 44 BLOCK_MODE = TagType:ENUM_REP | 4, /** BlockMode. */ 172 enum BlockMode : uint32_t { 380 BlockMode blockMode;
|
/hardware/interfaces/keymaster/4.0/ |
D | IKeymasterDevice.hal | 457 * If Tag::BLOCK_MODE is specified with value BlockMode::GCM, then the caller must also provide 1023 * If the block mode is BlockMode::GCM, inParams must specify Tag::MAC_LENGTH, and the specified 1029 * If the block mode is BlockMode::GCM or BlockMode::CTR, the specified padding mode must be 1030 * PaddingMode::NONE. For BlockMode::ECB or BlockMode::CBC, the mode may be PaddingMode::NONE 1034 * If the block mode is BlockMode::CBC, BlockMode::CTR, or BlockMode::GCM, an initialization 1271 * o BlockMode::ECB or BlockMode::CBC. If padding is PaddingMode::NONE and the data length is 1277 * o BlockMode::GCM. During encryption, after processing all plaintext, compute the tag
|
D | types.hal | 99 * is only relevant to AES and 3DES keys. Possible values are defined by the BlockMode enum. 108 BLOCK_MODE = TagType:ENUM_REP | 4, /* BlockMode. */ 887 enum BlockMode : uint32_t { 1144 BlockMode blockMode;
|