shirishpargaonkar@xxxxxxxxx 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@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Kernel]
[Gnu Classpath]
[Gnu Crypto]
[DM Crypt]
[Netfilter]
[Bugtraq]