Home
last modified time | relevance | path

Searched refs:key_size (Results 1 – 9 of 9) sorted by relevance

/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.h273 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
274 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
276 AuthorizationSetBuilder& AesKey(uint32_t key_size);
277 AuthorizationSetBuilder& HmacKey(uint32_t key_size);
279 AuthorizationSetBuilder& RsaSigningKey(uint32_t key_size, uint64_t public_exponent);
280 AuthorizationSetBuilder& RsaEncryptionKey(uint32_t key_size, uint64_t public_exponent);
281 AuthorizationSetBuilder& EcdsaSigningKey(uint32_t key_size);
283 AuthorizationSetBuilder& AesEncryptionKey(uint32_t key_size);
319 inline AuthorizationSetBuilder& AuthorizationSetBuilder::RsaKey(uint32_t key_size, in RsaKey() argument
322 Authorization(TAG_KEY_SIZE, key_size); in RsaKey()
[all …]
Dkeymaster_hidl_hal_test.cpp1097 for (auto key_size : {1024, 2048, 3072, 4096}) { in TEST_P()
1101 .RsaSigningKey(key_size, 3) in TEST_P()
1118 EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)); in TEST_P()
1145 for (auto key_size : {224, 256, 384, 521}) { in TEST_P()
1149 .EcdsaSigningKey(key_size) in TEST_P()
1164 EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)); in TEST_P()
1246 constexpr size_t key_size = 128; in TEST_P() local
1248 .HmacKey(key_size) in TEST_P()
1262 EXPECT_TRUE(teeEnforced.Contains(TAG_KEY_SIZE, key_size)); in TEST_P()
1267 EXPECT_TRUE(teeEnforced.Contains(TAG_KEY_SIZE, key_size)); in TEST_P()
[all …]
Dattestation_record.cpp63 ASN1_INTEGER* key_size; member
90 ASN1_EXP_OPT(KM_AUTH_LIST, key_size, ASN1_INTEGER, TAG_KEY_SIZE.maskedTag()),
235 copyAuthTag(record->key_size, TAG_KEY_SIZE, auth_list); in extract_auth_list()
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h267 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
268 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
270 AuthorizationSetBuilder& AesKey(uint32_t key_size);
271 AuthorizationSetBuilder& TripleDesKey(uint32_t key_size);
272 AuthorizationSetBuilder& HmacKey(uint32_t key_size);
274 AuthorizationSetBuilder& RsaSigningKey(uint32_t key_size, uint64_t public_exponent);
275 AuthorizationSetBuilder& RsaEncryptionKey(uint32_t key_size, uint64_t public_exponent);
276 AuthorizationSetBuilder& EcdsaSigningKey(uint32_t key_size);
278 AuthorizationSetBuilder& AesEncryptionKey(uint32_t key_size);
279 AuthorizationSetBuilder& TripleDesEncryptionKey(uint32_t key_size);
/hardware/interfaces/keymaster/4.0/support/
Dauthorization_set.cpp455 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaKey(uint32_t key_size, in RsaKey() argument
458 Authorization(TAG_KEY_SIZE, key_size); in RsaKey()
463 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaKey(uint32_t key_size) { in EcdsaKey() argument
465 Authorization(TAG_KEY_SIZE, key_size); in EcdsaKey()
475 AuthorizationSetBuilder& AuthorizationSetBuilder::AesKey(uint32_t key_size) { in AesKey() argument
477 return Authorization(TAG_KEY_SIZE, key_size); in AesKey()
480 AuthorizationSetBuilder& AuthorizationSetBuilder::TripleDesKey(uint32_t key_size) { in TripleDesKey() argument
482 return Authorization(TAG_KEY_SIZE, key_size); in TripleDesKey()
485 AuthorizationSetBuilder& AuthorizationSetBuilder::HmacKey(uint32_t key_size) { in HmacKey() argument
487 Authorization(TAG_KEY_SIZE, key_size); in HmacKey()
[all …]
Dattestation_record.cpp69 ASN1_INTEGER* key_size; member
100 ASN1_EXP_OPT(KM_AUTH_LIST, key_size, ASN1_INTEGER, TAG_KEY_SIZE.maskedTag()),
249 copyAuthTag(record->key_size, TAG_KEY_SIZE, auth_list); in extract_auth_list()
/hardware/libhardware/include/hardware/
Dkeymaster_common.h133 uint32_t key_size; member
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp535 for (auto key_size : ValidKeySizes(Algorithm::RSA)) { in TEST_P() local
539 .RsaSigningKey(key_size, 65537) in TEST_P()
556 EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)) in TEST_P()
557 << "Key size " << key_size << "missing"; in TEST_P()
570 for (auto key_size : InvalidKeySizes(Algorithm::RSA)) { in TEST_P() local
575 .RsaSigningKey(key_size, 65537) in TEST_P()
602 for (auto key_size : ValidKeySizes(Algorithm::EC)) { in TEST_P() local
607 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
621 EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)) in TEST_P()
622 << "Key size " << key_size << "missing"; in TEST_P()
[all …]
/hardware/interfaces/keymaster/4.1/support/
Dattestation_record.cpp77 ASN1_INTEGER* key_size; member
110 ASN1_EXP_OPT(KM_AUTH_LIST, key_size, ASN1_INTEGER, TAG_KEY_SIZE.maskedTag()),
266 copyAuthTag(record->key_size, TAG_KEY_SIZE, auth_list); in extract_auth_list()