Searched refs:nonce_len (Results 1 – 3 of 3) sorted by relevance
| /linux/fs/smb/server/ |
| H A D | auth.c | 903 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 D | smb2pdu.c | 8785 unsigned int nonce_len = 0, transform_len; in smb2_prep_rdma_read() local 8794 nonce_len = (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM || in smb2_prep_rdma_read() 8801 SMB2_SIGNATURE_SIZE + nonce_len); in smb2_prep_rdma_read() 8807 crypto->NonceLength = cpu_to_le16(nonce_len); in smb2_prep_rdma_read() 8810 get_random_bytes(nonce, nonce_len); in smb2_prep_rdma_read() 8813 data, datalen, nonce, nonce_len, in smb2_prep_rdma_read() 8823 SMB2_SIGNATURE_SIZE + nonce_len; in smb2_prep_rdma_read() 8829 transform_len, nonce_len, SMB2_SIGNATURE_SIZE); in smb2_prep_rdma_read() 8838 unsigned int nonce_len; member 8932 info->nonce_len = le16_to_cpu(crypto->NonceLength); in smb2_parse_rdma_write_transform() [all …]
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm2.c | 205 const u8 *nonce, u16 nonce_len, in tpm2_buf_append_auth() argument 209 tpm_buf_append_u32(buf, 9 + nonce_len + hmac_len); in tpm2_buf_append_auth() 211 tpm_buf_append_u16(buf, nonce_len); in tpm2_buf_append_auth() 213 if (nonce && nonce_len) in tpm2_buf_append_auth() 214 tpm_buf_append(buf, nonce, nonce_len); in tpm2_buf_append_auth()
|