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;
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);
}
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)