Home
last modified time | relevance | path

Searched refs:hkdf (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/fs/crypto/
Dhkdf.c68 int fscrypt_init_hkdf(struct fscrypt_hkdf *hkdf, const u8 *master_key, in fscrypt_init_hkdf() argument
95 hkdf->hmac_tfm = hmac_tfm; in fscrypt_init_hkdf()
116 int fscrypt_hkdf_expand(const struct fscrypt_hkdf *hkdf, u8 context, in fscrypt_hkdf_expand() argument
120 SHASH_DESC_ON_STACK(desc, hkdf->hmac_tfm); in fscrypt_hkdf_expand()
131 desc->tfm = hkdf->hmac_tfm; in fscrypt_hkdf_expand()
179 void fscrypt_destroy_hkdf(struct fscrypt_hkdf *hkdf) in fscrypt_destroy_hkdf() argument
181 crypto_free_shash(hkdf->hmac_tfm); in fscrypt_destroy_hkdf()
Dfscrypt_private.h309 int fscrypt_init_hkdf(struct fscrypt_hkdf *hkdf, const u8 *master_key,
327 int fscrypt_hkdf_expand(const struct fscrypt_hkdf *hkdf, u8 context,
331 void fscrypt_destroy_hkdf(struct fscrypt_hkdf *hkdf);
418 struct fscrypt_hkdf hkdf; member
DMakefile6 hkdf.o \
Dkeyring.c43 fscrypt_destroy_hkdf(&secret->hkdf); in wipe_master_key_secret()
537 err = fscrypt_init_hkdf(&secret->hkdf, secret->raw, in add_master_key()
549 err = fscrypt_hkdf_expand(&secret->hkdf, in add_master_key()
766 err = fscrypt_init_hkdf(&secret.hkdf, secret.raw, secret.size); in fscrypt_get_test_dummy_key_identifier()
769 err = fscrypt_hkdf_expand(&secret.hkdf, HKDF_CONTEXT_KEY_IDENTIFIER, in fscrypt_get_test_dummy_key_identifier()
Dkeysetup.c225 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, in setup_per_mode_enc_key()
256 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, context, info, infolen, in fscrypt_derive_siphash_key()
366 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, in fscrypt_setup_v2_file_key()