Home
last modified time | relevance | path

Searched full:hmac_data (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/nvme/common/
H A Dauth.c698 u8 *hmac_data = NULL, *tls_key; in nvme_auth_derive_tls_psk() local
730 hmac_data = kmalloc(/* output length */ 2 + in nvme_auth_derive_tls_psk()
735 if (!hmac_data) { in nvme_auth_derive_tls_psk()
741 hmac_data[i++] = hash_len >> 8; in nvme_auth_derive_tls_psk()
742 hmac_data[i++] = hash_len; in nvme_auth_derive_tls_psk()
746 hmac_data[i] = sizeof(label); in nvme_auth_derive_tls_psk()
747 memcpy(&hmac_data[i + 1], label, sizeof(label)); in nvme_auth_derive_tls_psk()
751 ctx_len = sprintf(&hmac_data[i + 1], "%02d %s", hmac_id, psk_digest); in nvme_auth_derive_tls_psk()
756 hmac_data[i] = ctx_len; in nvme_auth_derive_tls_psk()
760 hmac_data[i++] = 1; in nvme_auth_derive_tls_psk()
[all …]