Home
last modified time | relevance | path

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

/openbmc/linux/security/keys/encrypted-keys/
H A Dencrypted.c358 u8 *derived_buf; in get_derived_key() local
366 derived_buf = kzalloc(derived_buf_len, GFP_KERNEL); in get_derived_key()
367 if (!derived_buf) in get_derived_key()
371 strcpy(derived_buf, "AUTH_KEY"); in get_derived_key()
373 strcpy(derived_buf, "ENC_KEY"); in get_derived_key()
375 memcpy(derived_buf + strlen(derived_buf) + 1, master_key, in get_derived_key()
377 ret = crypto_shash_tfm_digest(hash_tfm, derived_buf, derived_buf_len, in get_derived_key()
379 kfree_sensitive(derived_buf); in get_derived_key()