Home
last modified time | relevance | path

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

/hardware/interfaces/security/keymint/support/
Dauthorization_set.cpp116 AuthorizationSetBuilder& AuthorizationSetBuilder::RsaKey(uint32_t key_size, in RsaKey() argument
119 Authorization(TAG_KEY_SIZE, key_size); in RsaKey()
124 AuthorizationSetBuilder& AuthorizationSetBuilder::EcdsaKey(uint32_t key_size) { in EcdsaKey() argument
126 Authorization(TAG_KEY_SIZE, key_size); in EcdsaKey()
136 AuthorizationSetBuilder& AuthorizationSetBuilder::AesKey(uint32_t key_size) { in AesKey() argument
138 return Authorization(TAG_KEY_SIZE, key_size); in AesKey()
141 AuthorizationSetBuilder& AuthorizationSetBuilder::TripleDesKey(uint32_t key_size) { in TripleDesKey() argument
143 return Authorization(TAG_KEY_SIZE, key_size); in TripleDesKey()
146 AuthorizationSetBuilder& AuthorizationSetBuilder::HmacKey(uint32_t key_size) { in HmacKey() argument
148 Authorization(TAG_KEY_SIZE, key_size); in HmacKey()
[all …]
Dattestation_record.cpp71 ASN1_INTEGER* key_size; member
114 ASN1_EXP_OPT(KM_AUTH_LIST, key_size, ASN1_INTEGER, TAG_KEY_SIZE.maskedTag()),
290 copyAuthTag(record->key_size, TAG_KEY_SIZE, auth_list); in extract_auth_list()
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_meta.c37 uint32_t key_size; member
42 cache_key_create(VkObjectType obj_type, const void *key_data, size_t key_size) in cache_key_create() argument
44 assert(key_size <= UINT32_MAX); in cache_key_create()
46 struct cache_key *key = malloc(sizeof(*key) + key_size); in cache_key_create()
49 .key_size = key_size, in cache_key_create()
52 memcpy(key + 1, key_data, key_size); in cache_key_create()
64 return _mesa_hash_data_with_seed(key->key_data, key->key_size, hash); in cache_key_hash()
71 if (a->obj_type != b->obj_type || a->key_size != b->key_size) in cache_key_equal()
74 return memcmp(a->key_data, b->key_data, a->key_size) == 0; in cache_key_equal()
138 const void *key_data, size_t key_size) in vk_meta_lookup_object() argument
[all …]
Dvk_pipeline_cache.h82 size_t key_size,
115 uint32_t key_size; member
122 const void *key_data, uint32_t key_size) in vk_pipeline_cache_object_init() argument
129 object->key_size = key_size; in vk_pipeline_cache_object_init()
233 const void *key_data, size_t key_size,
277 const void *key_data, uint32_t key_size,
283 const void *key_data, size_t key_size,
288 const void *key_data, size_t key_size,
305 const void *key_data, size_t key_size,
Dvk_meta.h89 const void *key_data, size_t key_size);
93 const void *key_data, size_t key_size,
99 const void *key_data, size_t key_size) in vk_meta_lookup_descriptor_set_layout() argument
103 key_data, key_size); in vk_meta_lookup_descriptor_set_layout()
108 const void *key_data, size_t key_size) in vk_meta_lookup_pipeline_layout() argument
112 key_data, key_size); in vk_meta_lookup_pipeline_layout()
117 const void *key_data, size_t key_size) in vk_meta_lookup_pipeline() argument
120 key_data, key_size); in vk_meta_lookup_pipeline()
125 const void *key_data, size_t key_size) in vk_meta_lookup_sampler() argument
128 key_data, key_size); in vk_meta_lookup_sampler()
[all …]
Dvk_pipeline_cache.c59 size_t key_size, in vk_raw_data_cache_object_deserialize() argument
72 vk_raw_data_cache_object_create(cache->base.device, key_data, key_size, in vk_raw_data_cache_object_deserialize()
96 const void *key_data, size_t key_size, in vk_raw_data_cache_object_create() argument
101 VK_MULTIALLOC_DECL_SIZE(&ma, char, obj_key_data, key_size); in vk_raw_data_cache_object_create()
110 obj_key_data, key_size); in vk_raw_data_cache_object_create()
114 memcpy(obj_key_data, key_data, key_size); in vk_raw_data_cache_object_create()
124 if (a->key_size != b->key_size) in object_keys_equal()
127 return memcmp(a->key_data, b->key_data, a->key_size) == 0; in object_keys_equal()
134 return _mesa_hash_data(object->key_data, object->key_size); in object_key_hash()
250 const void *key_data, uint32_t key_size, in vk_pipeline_cache_object_deserialize() argument
[all …]
/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.h269 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
270 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
272 AuthorizationSetBuilder& AesKey(uint32_t key_size);
273 AuthorizationSetBuilder& TripleDesKey(uint32_t key_size);
274 AuthorizationSetBuilder& HmacKey(uint32_t key_size);
276 AuthorizationSetBuilder& RsaSigningKey(uint32_t key_size, uint64_t public_exponent);
277 AuthorizationSetBuilder& RsaEncryptionKey(uint32_t key_size, uint64_t public_exponent);
278 AuthorizationSetBuilder& EcdsaSigningKey(uint32_t key_size);
280 AuthorizationSetBuilder& AesEncryptionKey(uint32_t key_size);
281 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
108 ASN1_EXP_OPT(KM_AUTH_LIST, key_size, ASN1_INTEGER, TAG_KEY_SIZE.maskedTag()),
278 copyAuthTag(record->key_size, TAG_KEY_SIZE, auth_list); in extract_auth_list()
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dauthorization_set.h275 AuthorizationSetBuilder& RsaKey(uint32_t key_size, uint64_t public_exponent);
276 AuthorizationSetBuilder& EcdsaKey(uint32_t key_size);
278 AuthorizationSetBuilder& AesKey(uint32_t key_size);
279 AuthorizationSetBuilder& TripleDesKey(uint32_t key_size);
280 AuthorizationSetBuilder& HmacKey(uint32_t key_size);
282 AuthorizationSetBuilder& RsaSigningKey(uint32_t key_size, uint64_t public_exponent);
283 AuthorizationSetBuilder& RsaEncryptionKey(uint32_t key_size, uint64_t public_exponent);
285 AuthorizationSetBuilder& AesEncryptionKey(uint32_t key_size);
286 AuthorizationSetBuilder& TripleDesEncryptionKey(uint32_t key_size);
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintTest.cpp683 for (auto key_size : ValidKeySizes(Algorithm::AES)) { in TEST_P() local
687 << "AES-" << key_size << "-" << block_mode << "-" << padding_mode); in TEST_P()
691 .AesEncryptionKey(key_size) in TEST_P()
708 EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)) in TEST_P()
709 << "Key size " << key_size << "missing"; in TEST_P()
722 for (auto key_size : InvalidKeySizes(Algorithm::AES)) { in TEST_P() local
726 << "AES-" << key_size << "-" << block_mode << "-" << padding_mode); in TEST_P()
730 .AesEncryptionKey(key_size) in TEST_P()
770 for (auto key_size : ValidKeySizes(Algorithm::AES)) { in TEST_P() local
774 << "AES-" << key_size << "-" << block_mode << "-" << padding_mode); in TEST_P()
[all …]
DDeviceUniqueAttestationTest.cpp139 int key_size = 2048; in TEST_P() local
143 .RsaSigningKey(key_size, 65537) in TEST_P()
/hardware/libhardware/include_all/hardware/
Dkeymaster_common.h133 uint32_t key_size; member
/hardware/libhardware/include/hardware/
Dkeymaster_common.h133 uint32_t key_size; member
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp628 for (auto key_size : ValidKeySizes(Algorithm::RSA)) { in TEST_P() local
632 .RsaSigningKey(key_size, 65537) in TEST_P()
649 EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)) in TEST_P()
650 << "Key size " << key_size << "missing"; in TEST_P()
663 for (auto key_size : InvalidKeySizes(Algorithm::RSA)) { in TEST_P() local
668 .RsaSigningKey(key_size, 65537) in TEST_P()
695 for (auto key_size : ValidKeySizes(Algorithm::EC)) { in TEST_P() local
700 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P()
714 EXPECT_TRUE(crypto_params.Contains(TAG_KEY_SIZE, key_size)) in TEST_P()
715 << "Key size " << key_size << "missing"; in TEST_P()
[all …]
/hardware/interfaces/keymaster/4.1/support/
Dattestation_record.cpp77 ASN1_INTEGER* key_size; member
119 ASN1_EXP_OPT(KM_AUTH_LIST, key_size, ASN1_INTEGER, TAG_KEY_SIZE.maskedTag()),
293 copyAuthTag(record->key_size, TAG_KEY_SIZE, auth_list); in extract_auth_list()