Home
last modified time | relevance | path

Searched refs:key_data_size (Results 1 – 3 of 3) sorted by relevance

/system/keymaster/km_openssl/
Dsymmetric_key.cpp50 size_t key_data_size = key_size_bytes(key_size_bits); in GenerateKey() local
51 KeymasterKeyBlob key_material(key_data_size); in GenerateKey()
54 error = random_source_.GenerateRandom(key_material.writable_data(), key_data_size); in GenerateKey()
Dopenssl_utils.cpp111 int key_data_size = i2d_PrivateKey(pkey, nullptr /* key_data*/); in EvpKeyToKeyMaterial() local
112 if (key_data_size <= 0) return TranslateLastOpenSslError(); in EvpKeyToKeyMaterial()
114 if (!key_blob->Reset(key_data_size)) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in EvpKeyToKeyMaterial()
/system/core/trusty/keymaster/set_attestation_key/
Dset_attestation_key.cpp119 const void* key_data, size_t key_data_size) { in set_attestation_key_or_cert_bin() argument
124 req.key_data.Reinitialize(key_data, key_data_size); in set_attestation_key_or_cert_bin()