diff options
author | Michal Ludvig <michal@logix.cz> | 2006-05-21 18:28:06 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-06-26 03:34:40 -0400 |
commit | 110bf1c0e932615cbe43a8af8a07bc3750ae4295 (patch) | |
tree | 9bf86514298535a6a8615f6136306b6859853e21 /crypto/digest.c | |
parent | 82062c72cd643c99a9e1c231270acbab986fd23f (diff) |
[CRYPTO] api: Fixed incorrect passing of context instead of tfm
Fix a few omissions in passing TFM instead of CTX to algorithms.
Signed-off-by: Michal Ludvig <michal@logix.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/digest.c')
-rw-r--r-- | crypto/digest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/digest.c b/crypto/digest.c index 2d9d509c2c51..603006a7bef2 100644 --- a/crypto/digest.c +++ b/crypto/digest.c | |||
@@ -70,10 +70,10 @@ static void final(struct crypto_tfm *tfm, u8 *out) | |||
70 | unsigned int size = crypto_tfm_alg_digestsize(tfm); | 70 | unsigned int size = crypto_tfm_alg_digestsize(tfm); |
71 | u8 buffer[size + alignmask]; | 71 | u8 buffer[size + alignmask]; |
72 | u8 *dst = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); | 72 | u8 *dst = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); |
73 | tfm->__crt_alg->cra_digest.dia_final(crypto_tfm_ctx(tfm), dst); | 73 | tfm->__crt_alg->cra_digest.dia_final(tfm, dst); |
74 | memcpy(out, dst, size); | 74 | memcpy(out, dst, size); |
75 | } else | 75 | } else |
76 | tfm->__crt_alg->cra_digest.dia_final(crypto_tfm_ctx(tfm), out); | 76 | tfm->__crt_alg->cra_digest.dia_final(tfm, out); |
77 | } | 77 | } |
78 | 78 | ||
79 | static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) | 79 | static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) |