aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/compress.c4
-rw-r--r--crypto/digest.c4
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)
44 int ret = 0; 44 int ret = 0;
45 struct compress_tfm *ops = &tfm->crt_compress; 45 struct compress_tfm *ops = &tfm->crt_compress;
46 46
47 ret = tfm->__crt_alg->cra_compress.coa_init(crypto_tfm_ctx(tfm)); 47 ret = tfm->__crt_alg->cra_compress.coa_init(tfm);
48 if (ret) 48 if (ret)
49 goto out; 49 goto out;
50 50
@@ -57,5 +57,5 @@ out:
57 57
58void crypto_exit_compress_ops(struct crypto_tfm *tfm) 58void crypto_exit_compress_ops(struct crypto_tfm *tfm)
59{ 59{
60 tfm->__crt_alg->cra_compress.coa_exit(crypto_tfm_ctx(tfm)); 60 tfm->__crt_alg->cra_compress.coa_exit(tfm);
61} 61}
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
79static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) 79static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)