Lines Matching refs:psk
544 u8 *psk;
553 psk = kzalloc(psk_len, GFP_KERNEL);
554 if (!psk) {
560 nvme_auth_hmac_final(&hmac, psk);
561 *ret_psk = psk;
570 * @psk: Generated input PSK
571 * @psk_len: Length of @psk
602 int nvme_auth_generate_digest(u8 hmac_id, const u8 *psk, size_t psk_len,
641 ret = nvme_auth_hmac_init(&hmac, hmac_id, psk, psk_len);
669 * @psk: generated input PSK
670 * @psk_len: size of @psk
683 * 2. TLS PSK = HKDF-Expand-Label(PRK, "nvme-tls-psk", PskIdentityContext, L),
690 * Returns 0 on success with a valid psk pointer in @ret_psk or a negative
693 int nvme_auth_derive_tls_psk(int hmac_id, const u8 *psk, size_t psk_len,
697 static const char label[18] = "tls13 nvme-tls-psk";
722 ret = nvme_auth_hmac(hmac_id, default_salt, hash_len, psk, psk_len,