Home
last modified time | relevance | path

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

/linux/fs/smb/client/
H A Dsmb2pdu.c622 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument
624 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
625 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
626 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
627 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
628 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()
629 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()
633 build_compression_ctxt(struct smb2_compression_capabilities_context *pneg_ctxt) in build_compression_ctxt() argument
635 pneg_ctxt->ContextType = SMB2_COMPRESSION_CAPABILITIES; in build_compression_ctxt()
636 pneg_ctxt->DataLength = in build_compression_ctxt()
[all …]
/linux/fs/smb/server/
H A Dsmb2pdu.c1320 static void build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt, in build_preauth_ctxt()
1323 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
1324 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
1325 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1);
1326 pneg_ctxt->Reserved = cpu_to_le32(0); in build_encrypt_ctxt() argument
1327 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_encrypt_ctxt()
1328 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_encrypt_ctxt()
1329 pneg_ctxt->HashAlgorithms = hash_id; in build_encrypt_ctxt()
1332 static void build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt, in build_encrypt_ctxt()
1335 pneg_ctxt in build_encrypt_ctxt()
1314 build_preauth_ctxt(struct smb2_preauth_neg_context * pneg_ctxt,__le16 hash_id) build_preauth_ctxt() argument
1336 build_compress_ctxt(struct smb2_compression_capabilities_context * pneg_ctxt,__le16 compress_algorithm,bool compress_chained,bool compress_pattern) build_compress_ctxt() argument
1370 struct smb2_rdma_transform_capabilities_context *pneg_ctxt; build_rdma_ctx() local
1391 build_sign_cap_ctxt(struct smb2_signing_capabilities * pneg_ctxt,__le16 sign_algo) build_sign_cap_ctxt() argument
1403 build_posix_ctxt(struct smb2_posix_neg_context * pneg_ctxt) build_posix_ctxt() argument
1429 char * const pneg_ctxt = (char *)rsp + assemble_neg_contexts() local
1504 decode_preauth_ctxt(struct ksmbd_conn * conn,struct smb2_preauth_neg_context * pneg_ctxt,int ctxt_len) decode_preauth_ctxt() argument
1523 decode_encrypt_ctxt(struct ksmbd_conn * conn,struct smb2_encryption_neg_context * pneg_ctxt,int ctxt_len) decode_encrypt_ctxt() argument
1581 decode_compress_ctxt(struct ksmbd_conn * conn,struct smb2_compression_capabilities_context * pneg_ctxt,int ctxt_len) decode_compress_ctxt() argument
1644 decode_sign_cap_ctxt(struct ksmbd_conn * conn,struct smb2_signing_capabilities * pneg_ctxt,int ctxt_len) decode_sign_cap_ctxt() argument
1691 struct smb2_rdma_transform_capabilities_context *pneg_ctxt; decode_rdma_ctx() local
[all...]