Home
last modified time | relevance | path

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

/linux/drivers/nvme/common/
H A Dauth.c699 u8 *hmac_data = NULL, *tls_key; in nvme_auth_derive_tls_psk() local
731 hmac_data = kmalloc(/* output length */ 2 + in nvme_auth_derive_tls_psk()
736 if (!hmac_data) { in nvme_auth_derive_tls_psk()
742 hmac_data[i++] = hash_len >> 8; in nvme_auth_derive_tls_psk()
743 hmac_data[i++] = hash_len; in nvme_auth_derive_tls_psk()
747 hmac_data[i] = label_len; in nvme_auth_derive_tls_psk()
748 memcpy(&hmac_data[i + 1], label, label_len); in nvme_auth_derive_tls_psk()
752 ctx_len = sprintf(&hmac_data[i + 1], "%02d %s", hmac_id, psk_digest); in nvme_auth_derive_tls_psk()
757 hmac_data[i] = ctx_len; in nvme_auth_derive_tls_psk()
761 hmac_data[i++] = 1; in nvme_auth_derive_tls_psk()
[all …]