Thread (5 messages) 5 messages, 2 authors, 2014-08-29

Re: [PATCH 2/2] crypto: sahara - add support for SHA1/256

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2014-08-29 13:44:53

On Mon, Aug 18, 2014 at 03:13:39PM +0200, Steffen Trumtrar wrote:
+struct sahara_sha_reqctx {
+	unsigned int mode;
+	unsigned int digest_size;
+	unsigned int context_size;
+	u8 buf[SAHARA_MAX_SHA_BLOCK_SIZE];
+	unsigned int buf_cnt;
+	unsigned int hash_rem;
+	struct sg_table data_sg;
+	struct scatterlist buf_sg;
+	unsigned int sg_in_idx;
+	unsigned int result_idx;
+};
So where is the hash state stored?

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help