Hi Herbert,

attached is an obvious fix for your "Pass TFM instead of CTX" patch.
Please apply to your GIT tree.

Michal
Pass TFM instead of context into digest algos' final() method.

Signed-off-by: Michal Ludvig <[EMAIL PROTECTED]>

Index: linux/crypto/digest.c
===================================================================
--- linux.orig/crypto/digest.c
+++ linux/crypto/digest.c
@@ -70,10 +70,10 @@ static void final(struct crypto_tfm *tfm
 		unsigned int size = crypto_tfm_alg_digestsize(tfm);
 		u8 buffer[size + alignmask];
 		u8 *dst = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1);
-		tfm->__crt_alg->cra_digest.dia_final(crypto_tfm_ctx(tfm), dst);
+		tfm->__crt_alg->cra_digest.dia_final(tfm, dst);
 		memcpy(out, dst, size);
 	} else
-		tfm->__crt_alg->cra_digest.dia_final(crypto_tfm_ctx(tfm), out);
+		tfm->__crt_alg->cra_digest.dia_final(tfm, out);
 }
 
 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)

Reply via email to