On Tue, Aug 03, 2010 at 09:48:14PM -0500, Shirish Pargaonkar wrote:
>
> @@ -42,21 +43,38 @@ extern void SMBencrypt(unsigned char *passwd, const
> unsigned char *c8,
> unsigned char *p24);
>
> 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 shash_desc desc;
That's your problem. You need to allocate space for the actual
descriptor:
struct {
struct shash_desc shash;
char ctx[crypto_shash_descsize(tfm)];
} sdesc;
See crypto/testmgr.c for an actual example.
Cheers,
--
Email: Herbert Xu <[email protected]>
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html