diff options
author | Michal Ludvig <michal@logix.cz> | 2006-05-22 08:28:06 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-06-26 17:34:40 +1000 |
commit | 110bf1c0e932615cbe43a8af8a07bc3750ae4295 (patch) | |
tree | 9bf86514298535a6a8615f6136306b6859853e21 /crypto | |
parent | 82062c72cd643c99a9e1c231270acbab986fd23f (diff) | |
download | linux-110bf1c0e932615cbe43a8af8a07bc3750ae4295.tar.gz linux-110bf1c0e932615cbe43a8af8a07bc3750ae4295.tar.bz2 linux-110bf1c0e932615cbe43a8af8a07bc3750ae4295.zip |
[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')
-rw-r--r-- | crypto/compress.c | 4 | ||||
-rw-r--r-- | crypto/digest.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/compress.c b/crypto/compress.c index c12fc0c41dac..f3e07334afd0 100644 --- a/crypto/compress.c +++ b/crypto/compress.c @@ -44,7 +44,7 @@ int crypto_init_compress_ops(struct crypto_tfm *tfm) int ret = 0; struct compress_tfm *ops = &tfm->crt_compress; - ret = tfm->__crt_alg->cra_compress.coa_init(crypto_tfm_ctx(tfm)); + ret = tfm->__crt_alg->cra_compress.coa_init(tfm); if (ret) goto out; @@ -57,5 +57,5 @@ out: void crypto_exit_compress_ops(struct crypto_tfm *tfm) { - tfm->__crt_alg->cra_compress.coa_exit(crypto_tfm_ctx(tfm)); + tfm->__crt_alg->cra_compress.coa_exit(tfm); } 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) 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) |