Home
last modified time | relevance | path

Searched refs:BlockMode (Results 1 – 14 of 14) sorted by relevance

/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp1397 .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 …]
DKeymasterHidlTest.cpp495 .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 …]
DKeymasterHidlTest.h185 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/
Dkeymaster_hidl_hal_test.cpp803 .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 …]
Dauthorization_set.h290 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
Dkeymaster_tags.h370 inline const char* stringify(BlockMode block_mode) {
372 case BlockMode::ECB:
374 case BlockMode::CBC:
376 case BlockMode::CTR:
378 case BlockMode::GCM:
Dkey_param_output.h39 ::std::ostream& operator<<(::std::ostream& os, BlockMode value);
Dkey_param_output.cpp50 ::std::ostream& operator<<(::std::ostream& os, BlockMode value) { in operator <<()
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h290 AuthorizationSetBuilder& BlockMode(std::initializer_list<BlockMode> blockModes);
295 AuthorizationSetBuilder& BlockMode(T&&... a) { in BlockMode() function
296 return BlockMode({std::forward<T>(a)...}); in BlockMode()
Dkey_param_output.h32 inline ::std::ostream& operator<<(::std::ostream& os, BlockMode value) {
/hardware/interfaces/keymaster/4.0/support/
Dauthorization_set.cpp539 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/
Dtypes.hal44 BLOCK_MODE = TagType:ENUM_REP | 4, /** BlockMode. */
172 enum BlockMode : uint32_t {
380 BlockMode blockMode;
/hardware/interfaces/keymaster/4.0/
DIKeymasterDevice.hal457 * 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
Dtypes.hal99 * 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;