Lines Matching refs:pneg_ctxt
407 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument
409 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
410 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
411 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
412 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_LINUX_CLIENT_SALT_SIZE); in build_preauth_ctxt()
413 get_random_bytes(pneg_ctxt->Salt, SMB311_LINUX_CLIENT_SALT_SIZE); in build_preauth_ctxt()
414 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()
418 build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt) in build_encrypt_ctxt() argument
420 pneg_ctxt->ContextType = SMB2_ENCRYPTION_CAPABILITIES; in build_encrypt_ctxt()
421 pneg_ctxt->DataLength = cpu_to_le16(4); /* Cipher Count + le16 cipher */ in build_encrypt_ctxt()
422 pneg_ctxt->CipherCount = cpu_to_le16(1); in build_encrypt_ctxt()
424 pneg_ctxt->Ciphers[0] = SMB2_ENCRYPTION_AES128_CCM; in build_encrypt_ctxt()
428 build_posix_ctxt(struct smb2_posix_neg_context *pneg_ctxt) in build_posix_ctxt() argument
430 pneg_ctxt->ContextType = SMB2_POSIX_EXTENSIONS_AVAILABLE; in build_posix_ctxt()
431 pneg_ctxt->DataLength = cpu_to_le16(POSIX_CTXT_DATA_LEN); in build_posix_ctxt()
438 char *pneg_ctxt = (char *)req + OFFSET_OF_NEG_CONTEXT; in assemble_neg_contexts() local
442 build_preauth_ctxt((struct smb2_preauth_neg_context *)pneg_ctxt); in assemble_neg_contexts()
445 pneg_ctxt += ctxt_len; in assemble_neg_contexts()
447 build_encrypt_ctxt((struct smb2_encryption_neg_context *)pneg_ctxt); in assemble_neg_contexts()
450 pneg_ctxt += ctxt_len; in assemble_neg_contexts()
452 build_posix_ctxt((struct smb2_posix_neg_context *)pneg_ctxt); in assemble_neg_contexts()