Lines Matching refs:hmac_data
645 u8 *hmac_data = NULL, *tls_key; in nvme_auth_derive_tls_psk() local
677 hmac_data = kmalloc(/* output length */ 2 + in nvme_auth_derive_tls_psk()
682 if (!hmac_data) { in nvme_auth_derive_tls_psk()
688 hmac_data[i++] = hash_len >> 8; in nvme_auth_derive_tls_psk()
689 hmac_data[i++] = hash_len; in nvme_auth_derive_tls_psk()
693 hmac_data[i] = label_len; in nvme_auth_derive_tls_psk()
694 memcpy(&hmac_data[i + 1], label, label_len); in nvme_auth_derive_tls_psk()
698 ctx_len = sprintf(&hmac_data[i + 1], "%02d %s", hmac_id, psk_digest); in nvme_auth_derive_tls_psk()
703 hmac_data[i] = ctx_len; in nvme_auth_derive_tls_psk()
707 hmac_data[i++] = 1; in nvme_auth_derive_tls_psk()
714 ret = nvme_auth_hmac(hmac_id, prk, hash_len, hmac_data, i, tls_key); in nvme_auth_derive_tls_psk()
721 kfree_sensitive(hmac_data); in nvme_auth_derive_tls_psk()