Lines Matching refs:mctx
86 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in DEFINE_CRC32_VX() local
88 mctx->key = 0; in DEFINE_CRC32_VX()
94 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_invert() local
96 mctx->key = ~0; in crc32_vx_cra_init_invert()
102 struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in crc32_vx_init() local
105 ctx->crc = mctx->key; in crc32_vx_init()
112 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32_vx_setkey() local
114 if (newkeylen != sizeof(mctx->key)) in crc32_vx_setkey()
116 mctx->key = le32_to_cpu(*(__le32 *)newkey); in crc32_vx_setkey()
123 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32be_vx_setkey() local
125 if (newkeylen != sizeof(mctx->key)) in crc32be_vx_setkey()
127 mctx->key = be32_to_cpu(*(__be32 *)newkey); in crc32be_vx_setkey()