Home
last modified time | relevance | path

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

/openbmc/linux/fs/smb/client/
H A Dsmb2pdu.c589 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument
591 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
592 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
593 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
594 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
595 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()
596 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()
600 build_compression_ctxt(struct smb2_compression_capabilities_context *pneg_ctxt) in build_compression_ctxt() argument
602 pneg_ctxt->ContextType = SMB2_COMPRESSION_CAPABILITIES; in build_compression_ctxt()
603 pneg_ctxt->DataLength = in build_compression_ctxt()
[all …]
/openbmc/linux/fs/smb/server/
H A Dsmb2pdu.c768 static void build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt, in build_preauth_ctxt() argument
771 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
772 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
773 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
774 pneg_ctxt->Reserved = cpu_to_le32(0); in build_preauth_ctxt()
775 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
776 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()
777 pneg_ctxt->HashAlgorithms = hash_id; in build_preauth_ctxt()
780 static void build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt, in build_encrypt_ctxt() argument
783 pneg_ctxt in build_encrypt_ctxt()
790 build_sign_cap_ctxt(struct smb2_signing_capabilities * pneg_ctxt,__le16 sign_algo) build_sign_cap_ctxt() argument
802 build_posix_ctxt(struct smb2_posix_neg_context * pneg_ctxt) build_posix_ctxt() argument
828 char * const pneg_ctxt = (char *)rsp + assemble_neg_contexts() local
880 decode_preauth_ctxt(struct ksmbd_conn * conn,struct smb2_preauth_neg_context * pneg_ctxt,int ctxt_len) decode_preauth_ctxt() argument
899 decode_encrypt_ctxt(struct ksmbd_conn * conn,struct smb2_encryption_neg_context * pneg_ctxt,int ctxt_len) decode_encrypt_ctxt() argument
957 decode_compress_ctxt(struct ksmbd_conn * conn,struct smb2_compression_capabilities_context * pneg_ctxt) decode_compress_ctxt() argument
963 decode_sign_cap_ctxt(struct ksmbd_conn * conn,struct smb2_signing_capabilities * pneg_ctxt,int ctxt_len) decode_sign_cap_ctxt() argument
[all...]