Lines Matching refs:mctx
81 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in DEFINE_CRC32_VX() local
83 mctx->key = 0; in DEFINE_CRC32_VX()
89 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_invert() local
91 mctx->key = ~0; in crc32_vx_cra_init_invert()
97 struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in crc32_vx_init() local
100 ctx->crc = mctx->key; in crc32_vx_init()
107 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32_vx_setkey() local
109 if (newkeylen != sizeof(mctx->key)) in crc32_vx_setkey()
111 mctx->key = le32_to_cpu(*(__le32 *)newkey); in crc32_vx_setkey()
118 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32be_vx_setkey() local
120 if (newkeylen != sizeof(mctx->key)) in crc32be_vx_setkey()
122 mctx->key = be32_to_cpu(*(__be32 *)newkey); in crc32be_vx_setkey()