From: Herbert Xu <herbert@gondor.apana.org.au>
To: shirishpargaonkar@gmail.com
Cc: smfrench@gmail.com, linx-cifs@vger.kernel.org,
samba-technical@samba.org, linux-crypto@vger.kernel.org,
shirishpargaonkar@gmail.com
Subject: Re: [linux-cifs-client][PATCH] Enable signing for ntlmv2 within NTLMSSP using kernel crypto APIs
Date: Mon, 2 Aug 2010 14:55:08 +0800 [thread overview]
Message-ID: <20100802065508.GA8431@gondor.apana.org.au> (raw)
In-Reply-To: <1280604866-9505-1-git-send-email-shirishpargaonkar@gmail.com>
shirishpargaonkar@gmail.com wrote:
>
> static int cifs_calculate_signature(const struct smb_hdr *cifs_pdu,
> - const struct mac_key *key, char *signature)
> + struct TCP_Server_Info *server, char *signature)
> {
> - struct MD5Context context;
> + int rc = 0;
> + struct scatterlist sgin[2];
> + struct hash_desc desc;
>
> - if ((cifs_pdu == NULL) || (signature == NULL) || (key == NULL))
> + if (cifs_pdu == NULL || server == NULL || signature == NULL)
> return -EINVAL;
>
> - cifs_MD5_init(&context);
> - cifs_MD5_update(&context, (char *)&key->data, key->len);
> - cifs_MD5_update(&context, cifs_pdu->Protocol, cifs_pdu->smb_buf_length);
> + desc.tfm = server->ntlmssp.tfm_md5;
> +
> + rc = crypto_hash_init(&desc);
We're phasing out the crypto_hash_* interface. Please use the
equivalent crypto_shash_* interface (or if you require access
to asynchronous hardware, the crypto_ahash_* interface).
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2010-08-02 6:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-31 19:34 [linux-cifs-client][PATCH] Enable signing for ntlmv2 within NTLMSSP using kernel crypto APIs shirishpargaonkar
2010-08-02 6:55 ` Herbert Xu [this message]
[not found] ` <20100802065508.GA8431-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q@public.gmane.org>
2010-08-03 4:46 ` Shirish Pargaonkar
2010-08-03 8:33 ` Herbert Xu
[not found] ` <AANLkTimE0CgvYtrTSxsL5Z-kg5C9k9Lf3pDmW8gkRg7S@mail.gmail.com>
2010-08-04 6:58 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100802065508.GA8431@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linx-cifs@vger.kernel.org \
--cc=samba-technical@samba.org \
--cc=shirishpargaonkar@gmail.com \
--cc=smfrench@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox