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.cpp174 integer_set = &record->kdf; in build_auth_list()
/system/keymaster/
DMakefile100 km_openssl/kdf.cpp \
242 km_openssl/kdf.o \
250 km_openssl/kdf.o \
260 km_openssl/kdf.o \
271 km_openssl/kdf.o \
295 km_openssl/kdf.o \
DAndroid.bp107 "km_openssl/kdf.cpp",
/system/keymaster/include/keymaster/
Dattestation_record.h68 ASN1_INTEGER_SET* kdf; member
112 ASN1_EXP_SET_OF_OPT(KM_AUTH_LIST, kdf, ASN1_INTEGER, TAG_KDF.masked_tag()),
/system/vold/
Dcryptfs.cpp1290 unsigned char* decrypted_master_key, kdf_func kdf, in decrypt_master_key_aux() argument
1299 if (kdf(passwd, salt, ikey, kdf_params)) { in decrypt_master_key_aux()
1338 static void get_kdf_func(struct crypt_mnt_ftr* ftr, kdf_func* kdf, void** kdf_params) { in get_kdf_func() argument
1340 *kdf = scrypt_keymaster; in get_kdf_func()
1343 *kdf = scrypt; in get_kdf_func()
1346 *kdf = pbkdf2; in get_kdf_func()
1354 kdf_func kdf; in decrypt_master_key() local
1358 get_kdf_func(crypt_ftr, &kdf, &kdf_params); in decrypt_master_key()
1360 decrypted_master_key, kdf, kdf_params, intermediate_key, in decrypt_master_key()