Home
last modified time | relevance | path

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

/hardware/interfaces/keymaster/4.0/vts/functional/
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,
DKeymasterHidlTest.cpp484 void KeymasterHidlTest::CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, in CheckTripleDesTestVector() argument
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() argument
557 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
564 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() argument
567 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(padding); in EncryptMessage()
577 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() argument
581 .BlockMode(block_mode) in EncryptMessage()
589 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() argument
[all …]
Dkeymaster_hidl_hal_test.cpp2815 for (auto block_mode : block_modes) { in TEST_P() local
2818 .BlockMode(block_mode) in TEST_P()
2835 switch (block_mode) { in TEST_P()
2851 switch (block_mode) { in TEST_P()
2865 switch (block_mode) { in TEST_P()
2869 ASSERT_TRUE(iv.isOk()) << "No IV for block mode " << block_mode; in TEST_P()
2870 EXPECT_EQ(block_mode == BlockMode::GCM ? 12U : 16U, iv.value().size()); in TEST_P()
2880 << "Decrypt begin() failed for block mode " << block_mode; in TEST_P()
2889 ASSERT_EQ(ErrorCode::OK, error) << "Decryption failed for block mode " << block_mode in TEST_P()
2893 << block_mode << " and increment " << increment; in TEST_P()
[all …]
/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.h398 for (auto block_mode : block_modes) { in BlockMode() local
399 Authorization(TAG_BLOCK_MODE, block_mode); in BlockMode()
Dkeymaster_tags.h370 inline const char* stringify(BlockMode block_mode) {
371 switch (block_mode) {
Dkeymaster_hidl_hal_test.cpp3073 for (auto block_mode : block_modes) { in TEST_P() local
3076 .BlockMode(block_mode) in TEST_P()
3091 switch (block_mode) { in TEST_P()
3107 switch (block_mode) { in TEST_P()
3121 switch (block_mode) { in TEST_P()
3125 ASSERT_TRUE(iv.isOk()) << "No IV for block mode " << block_mode; in TEST_P()
3126 EXPECT_EQ(block_mode == BlockMode::GCM ? 12U : 16U, iv.value().size()); in TEST_P()
3136 << "Decrypt begin() failed for block mode " << block_mode; in TEST_P()
3146 << "Decryption failed for block mode " << block_mode << " and increment " in TEST_P()
3150 << block_mode << " and increment " << increment; in TEST_P()