/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 1397 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB))); in TEST_F() 2175 CheckCryptoParam(TAG_BLOCK_MODE, BlockMode::ECB); in TEST_F() 2179 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_F() 2278 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_F() 2659 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_F() 2662 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE); in TEST_F() 2688 .Authorization(TAG_BLOCK_MODE, BlockMode::CBC) in TEST_F() 2695 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE))); in TEST_F() 2708 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_F() 2713 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE); in TEST_F() [all …]
|
D | KeymasterHidlTest.cpp | 495 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 502 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 509 void KeymasterHidlTest::CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, in CheckTripleDesTestVector() 515 .BlockMode(block_mode) in CheckTripleDesTestVector() 520 auto begin_params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckTripleDesTestVector() 579 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() 582 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage() 589 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() 592 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage() 602 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() [all …]
|
D | KeymasterHidlTest.h | 185 void CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, 199 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding); 200 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 202 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 208 string DecryptMessage(const string& ciphertext, BlockMode block_mode, PaddingMode padding_mode,
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 803 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 810 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector() 1817 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB))) in TEST_F() 2525 CheckKm1CryptoParam(TAG_BLOCK_MODE, BlockMode::ECB); in TEST_F() 2529 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_F() 2901 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_F() 2904 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE); in TEST_F() 2930 .Authorization(TAG_BLOCK_MODE, BlockMode::CBC) in TEST_F() 2937 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE))); in TEST_F() 2950 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_F() [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.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/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/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 1025 * If the block mode is BlockMode::GCM, inParams must specify Tag::MAC_LENGTH, and the specified 1031 * If the block mode is BlockMode::GCM or BlockMode::CTR, the specified padding mode must be 1032 * PaddingMode::NONE. For BlockMode::ECB or BlockMode::CBC, the mode may be PaddingMode::NONE 1036 * If the block mode is BlockMode::CBC, BlockMode::CTR, or BlockMode::GCM, an initialization 1273 * o BlockMode::ECB or BlockMode::CBC. If padding is PaddingMode::NONE and the data length is 1279 * 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;
|