Home
last modified time | relevance | path

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

/system/keymaster/tests/
Dkdf_test.cpp32 ForTestAbstractKdf kdf; in TEST() local
35 ASSERT_TRUE(kdf.Init(KM_DIGEST_SHA1, key, 128, salt, 128)); in TEST()
36 ASSERT_TRUE(kdf.Init(KM_DIGEST_SHA_2_256, key, 128, salt, 128)); in TEST()
37 ASSERT_TRUE(kdf.Init(KM_DIGEST_SHA1, key, 128, nullptr, 0)); in TEST()
38 ASSERT_FALSE(kdf.Init(KM_DIGEST_MD5, key, 128, salt, 128)); in TEST()
39 ASSERT_FALSE(kdf.Init(KM_DIGEST_SHA1, nullptr, 0, salt, 128)); in TEST()
40 ASSERT_FALSE(kdf.Init(KM_DIGEST_SHA1, nullptr, 128, salt, 128)); in TEST()
41 ASSERT_FALSE(kdf.Init(KM_DIGEST_SHA1, key, 0, salt, 128)); in TEST()
/system/keymaster/km_openssl/
Decies_kem.cpp45 keymaster_kdf_t kdf; in EciesKem() local
46 if (!authorizations.GetTagValue(TAG_KDF, &kdf)) { in EciesKem()
51 switch (kdf) { in EciesKem()
56 LOG_E("Kdf %d is unsupported", kdf); in EciesKem()
/system/security/diced/open_dice/tests/
Dapi_test.rs18 derive_cdi_certificate_id, derive_cdi_private_key_seed, hash, kdf, keypair_from_seed, sign,
37 kdf(b"myInitialKeyMaterial", b"mySalt", b"myInfo", &mut derived_key).unwrap(); in kdf_succeeds()
/system/keymint/common/src/
Dkeyblob.rs267 kdf: &dyn crypto::Hkdf, in derive_kek()
281 crypto::OpaqueOr::Explicit(key_material) => kdf.hkdf(&[], &key_material.0, &info, 32)?,
282 key @ crypto::OpaqueOr::Opaque(_) => kdf.expand(key, &info, 32)?,
319 kdf: &dyn crypto::Hkdf, in encrypt()
360 derive_kek(kdf, root_key, &key_derivation_input, characteristics.clone(), hidden, sdd)?; in encrypt()
395 kdf: &dyn crypto::Hkdf, in decrypt()
417 kdf, in decrypt()
/system/security/diced/open_dice/src/
Dlib.rs40 pub use ops::{generate_certificate, hash, kdf, keypair_from_seed, sign, verify};
Dops.rs47 pub fn kdf(ikm: &[u8], salt: &[u8], info: &[u8], derived_key: &mut [u8]) -> Result<()> { in kdf() function
/system/keymaster/include/keymaster/km_openssl/
Dattestation_record.h86 ASN1_INTEGER_SET* kdf; member
136 ASN1_EXP_SET_OF_OPT(KM_AUTH_LIST, kdf, ASN1_INTEGER, TAG_KDF.masked_tag()),
/system/keymint/tests/src/
Dlib.rs355 pub fn test_ckdf<T: Ckdf>(kdf: T) { in test_ckdf()
364 let result = kdf.ckdf(&key.into(), label, &[&v0, &v1, &v2, &v3], 32).unwrap(); in test_ckdf()
/system/keymaster/
DAndroid.bp146 "km_openssl/kdf.cpp",