Home
last modified time | relevance | path

Searched refs:kdf (Results 1 – 7 of 7) 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()
Dattestation_record.cpp171 integer_set = &record->kdf; in build_auth_list()
/system/keymaster/
DMakefile101 km_openssl/kdf.cpp \
243 km_openssl/kdf.o \
251 km_openssl/kdf.o \
261 km_openssl/kdf.o \
272 km_openssl/kdf.o \
296 km_openssl/kdf.o \
DAndroid.bp98 "km_openssl/kdf.cpp",
/system/keymaster/include/keymaster/
Dattestation_record.h64 ASN1_INTEGER_SET* kdf; member
104 ASN1_EXP_SET_OF_OPT(KM_AUTH_LIST, kdf, ASN1_INTEGER, TAG_KDF.masked_tag()),
/system/vold/
Dcryptfs.cpp1364 unsigned char* decrypted_master_key, kdf_func kdf, in decrypt_master_key_aux() argument
1373 if (kdf(passwd, salt, ikey, kdf_params)) { in decrypt_master_key_aux()
1412 static void get_kdf_func(struct crypt_mnt_ftr* ftr, kdf_func* kdf, void** kdf_params) { in get_kdf_func() argument
1414 *kdf = scrypt_keymaster; in get_kdf_func()
1417 *kdf = scrypt; in get_kdf_func()
1420 *kdf = pbkdf2; in get_kdf_func()
1428 kdf_func kdf; in decrypt_master_key() local
1432 get_kdf_func(crypt_ftr, &kdf, &kdf_params); in decrypt_master_key()
1434 decrypted_master_key, kdf, kdf_params, intermediate_key, in decrypt_master_key()