Home
last modified time | relevance | path

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

/linux/fs/smb/server/
H A Dauth.c903 unsigned int nonce_len, u8 *tag, unsigned int tag_len, in ksmbd_crypt_rdma() argument
920 nonce_len, tag_len); in ksmbd_crypt_rdma()
928 if (nonce_len != SMB3_AES_GCM_NONCE) { in ksmbd_crypt_rdma()
931 nonce_len, SMB3_AES_GCM_NONCE); in ksmbd_crypt_rdma()
936 if (nonce_len != SMB3_AES_CCM_NONCE) { in ksmbd_crypt_rdma()
939 nonce_len, SMB3_AES_CCM_NONCE); in ksmbd_crypt_rdma()
985 memcpy(iv, nonce, nonce_len); in ksmbd_crypt_rdma()
988 memcpy(iv + 1, nonce, nonce_len); in ksmbd_crypt_rdma()
1009 nonce_len, tag_len, rc); in ksmbd_crypt_rdma()
1014 nonce_len, tag_len); in ksmbd_crypt_rdma()
H A Dsmb2pdu.c8727 unsigned int nonce_len = 0, transform_len; in smb2_prep_rdma_read() local
8736 nonce_len = (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in smb2_prep_rdma_read()
8743 SMB2_SIGNATURE_SIZE + nonce_len); in smb2_prep_rdma_read()
8749 crypto->NonceLength = cpu_to_le16(nonce_len); in smb2_prep_rdma_read()
8752 get_random_bytes(nonce, nonce_len); in smb2_prep_rdma_read()
8755 data, datalen, nonce, nonce_len, in smb2_prep_rdma_read()
8765 SMB2_SIGNATURE_SIZE + nonce_len; in smb2_prep_rdma_read()
8771 transform_len, nonce_len, SMB2_SIGNATURE_SIZE); in smb2_prep_rdma_read()
8780 unsigned int nonce_len; member
8874 info->nonce_len = le16_to_cpu(crypto->NonceLength); in smb2_parse_rdma_write_transform()
[all …]
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c198 * @nonce_len: the session nonce length, may be 0 if not used
204 const u8 *nonce, u16 nonce_len, in tpm2_buf_append_auth()
208 tpm_buf_append_u32(buf, 9 + nonce_len + hmac_len); in tpm2_buf_append_auth()
210 tpm_buf_append_u16(buf, nonce_len); in tpm2_buf_append_auth()
212 if (nonce && nonce_len) in tpm2_buf_append_auth()
213 tpm_buf_append(buf, nonce, nonce_len); in tpm2_buf_append_auth()
205 tpm2_buf_append_auth(struct tpm_buf * buf,u32 session_handle,const u8 * nonce,u16 nonce_len,u8 attributes,const u8 * hmac,u16 hmac_len) tpm2_buf_append_auth() argument