Home
last modified time | relevance | path

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

12

/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp952 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_P()
1483 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB))); in TEST_P()
2194 CheckCryptoParam(TAG_BLOCK_MODE, BlockMode::ECB); in TEST_P()
2198 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P()
2301 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::PKCS7); in TEST_P()
2693 .Authorization(TAG_BLOCK_MODE, BlockMode::ECB) in TEST_P()
2696 auto params = AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE); in TEST_P()
2722 .Authorization(TAG_BLOCK_MODE, BlockMode::CBC) in TEST_P()
2729 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE))); in TEST_P()
2742 .Authorization(TAG_BLOCK_MODE, BlockMode::GCM) in TEST_P()
[all …]
DKeymasterHidlTest.h175 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/
Dkeymaster_hidl_hal_test.cpp785 .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 …]
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/security/keymint/support/
Dauthorization_set.cpp204 return Authorization(TAG_BLOCK_MODE, BlockMode::ECB); in EcbMode()
208 return BlockMode(BlockMode::GCM) in GcmModeMinMacLen()
214 return BlockMode(BlockMode::GCM) in GcmModeMacLen()
219 AuthorizationSetBuilder& AuthorizationSetBuilder::BlockMode( in BlockMode() function in aidl::android::hardware::security::keymint::AuthorizationSetBuilder
220 std::initializer_list<aidl::android::hardware::security::keymint::BlockMode> blockModes) { in BlockMode()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintAidlTestBase.h175 void CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode,
192 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding);
193 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding,
195 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding,
197 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding,
199 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding,
205 string DecryptMessage(const string& ciphertext, BlockMode block_mode, PaddingMode padding_mode,
222 .BlockMode(BlockMode::ECB)
274 vector<BlockMode> ValidBlockModes(Algorithm algorithm);
275 vector<PaddingMode> ValidPaddingModes(Algorithm algorithm, BlockMode blockMode);
[all …]
DKeyMintAidlTestBase.cpp640 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector()
647 .BlockMode(BlockMode::CTR) in CheckAesCtrTestVector()
654 void KeyMintAidlTestBase::CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, in CheckTripleDesTestVector()
660 .BlockMode(block_mode) in CheckTripleDesTestVector()
667 auto begin_params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding_mode); in CheckTripleDesTestVector()
912 string KeyMintAidlTestBase::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage()
915 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
922 string KeyMintAidlTestBase::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage()
925 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
935 string KeyMintAidlTestBase::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage()
[all …]
/hardware/interfaces/security/keymint/aidl/android/hardware/security/keymint/
DKeyParameterValue.aidl20 import android.hardware.security.keymint.BlockMode;
38 BlockMode blockMode;
DBlockMode.aidl25 enum BlockMode { enum
/hardware/interfaces/keymaster/4.1/vts/functional/
DKeymaster4_1HidlTest.h66 .BlockMode(BlockMode::ECB) in CreateTestKeys()
113 AuthorizationSetBuilder().BlockMode(BlockMode::ECB).Padding(PaddingMode::NONE)); in UseAesKey()
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/1/android/hardware/security/keymint/
DBlockMode.aidl37 enum BlockMode { enum
DKeyParameterValue.aidl40 android.hardware.security.keymint.BlockMode blockMode;
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/current/android/hardware/security/keymint/
DBlockMode.aidl37 enum BlockMode { enum
DKeyParameterValue.aidl40 android.hardware.security.keymint.BlockMode blockMode;
/hardware/interfaces/security/keymint/aidl/vts/performance/
DKeyMintBenchmark.cpp77 optional<BlockMode> getBlockMode(string transform) { in getBlockMode()
79 return BlockMode::ECB; in getBlockMode()
81 return BlockMode::CBC; in getBlockMode()
83 return BlockMode::CTR; in getBlockMode()
85 return BlockMode::GCM; in getBlockMode()
171 std::optional<BlockMode> blockMode = getBlockMode(transform); in GenerateKey()
173 authSet.BlockMode(blockMode.value()); in GenerateKey()
174 if (blockMode == BlockMode::GCM) { in GenerateKey()
196 std::optional<BlockMode> blockMode = getBlockMode(transform); in getOperationParams()
201 builder.BlockMode(*blockMode); in getOperationParams()
[all …]
/hardware/interfaces/keymaster/4.0/vts/performance/
DBenchmark.cpp62 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/include/keymasterV4_0/
Dauthorization_set.h292 AuthorizationSetBuilder& BlockMode(std::initializer_list<BlockMode> blockModes);
297 AuthorizationSetBuilder& BlockMode(T&&... a) { in BlockMode() function
298 return BlockMode({std::forward<T>(a)...}); in BlockMode()
Dkey_param_output.h32 inline ::std::ostream& operator<<(::std::ostream& os, BlockMode value) {
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dauthorization_set.h299 AuthorizationSetBuilder& BlockMode(std::initializer_list<BlockMode> blockModes);
321 AuthorizationSetBuilder& BlockMode(T&&... a) { in BlockMode() function
322 return BlockMode({std::forward<T>(a)...}); in BlockMode()
Dkey_param_output.h45 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/4.1/support/include/keymasterV4_1/
Dkeymaster_tags.h27 using V4_0::BlockMode;

12