Lines Matching refs:pneg_ctxt
355 build_preauth_ctxt(struct smb2_preauth_neg_context *pneg_ctxt) in build_preauth_ctxt() argument
357 pneg_ctxt->ContextType = SMB2_PREAUTH_INTEGRITY_CAPABILITIES; in build_preauth_ctxt()
358 pneg_ctxt->DataLength = cpu_to_le16(38); in build_preauth_ctxt()
359 pneg_ctxt->HashAlgorithmCount = cpu_to_le16(1); in build_preauth_ctxt()
360 pneg_ctxt->SaltLength = cpu_to_le16(SMB311_SALT_SIZE); in build_preauth_ctxt()
361 get_random_bytes(pneg_ctxt->Salt, SMB311_SALT_SIZE); in build_preauth_ctxt()
362 pneg_ctxt->HashAlgorithms = SMB2_PREAUTH_INTEGRITY_SHA512; in build_preauth_ctxt()
366 build_encrypt_ctxt(struct smb2_encryption_neg_context *pneg_ctxt) in build_encrypt_ctxt() argument
368 pneg_ctxt->ContextType = SMB2_ENCRYPTION_CAPABILITIES; in build_encrypt_ctxt()
369 pneg_ctxt->DataLength = cpu_to_le16(6); in build_encrypt_ctxt()
370 pneg_ctxt->CipherCount = cpu_to_le16(2); in build_encrypt_ctxt()
371 pneg_ctxt->Ciphers[0] = SMB2_ENCRYPTION_AES128_GCM; in build_encrypt_ctxt()
372 pneg_ctxt->Ciphers[1] = SMB2_ENCRYPTION_AES128_CCM; in build_encrypt_ctxt()
380 char *pneg_ctxt = (char *)req + OFFSET_OF_NEG_CONTEXT + 4; in assemble_neg_contexts() local
382 build_preauth_ctxt((struct smb2_preauth_neg_context *)pneg_ctxt); in assemble_neg_contexts()
384 pneg_ctxt += 2 + sizeof(struct smb2_preauth_neg_context); in assemble_neg_contexts()
385 build_encrypt_ctxt((struct smb2_encryption_neg_context *)pneg_ctxt); in assemble_neg_contexts()