Lines Matching refs:ctx
95 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_setkey() local
106 ctx->rounds = 4; in ppc_aes_setkey()
107 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_aes_setkey()
110 ctx->rounds = 5; in ppc_aes_setkey()
111 ppc_expand_key_192(ctx->key_enc, in_key); in ppc_aes_setkey()
114 ctx->rounds = 6; in ppc_aes_setkey()
115 ppc_expand_key_256(ctx->key_enc, in_key); in ppc_aes_setkey()
119 ppc_generate_decrypt_key(ctx->key_dec, ctx->key_enc, key_len); in ppc_aes_setkey()
127 struct ppc_xts_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_xts_setkey() local
140 ctx->rounds = 4; in ppc_xts_setkey()
141 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_xts_setkey()
142 ppc_expand_key_128(ctx->key_twk, in_key + AES_KEYSIZE_128); in ppc_xts_setkey()
145 ctx->rounds = 5; in ppc_xts_setkey()
146 ppc_expand_key_192(ctx->key_enc, in_key); in ppc_xts_setkey()
147 ppc_expand_key_192(ctx->key_twk, in_key + AES_KEYSIZE_192); in ppc_xts_setkey()
150 ctx->rounds = 6; in ppc_xts_setkey()
151 ppc_expand_key_256(ctx->key_enc, in_key); in ppc_xts_setkey()
152 ppc_expand_key_256(ctx->key_twk, in_key + AES_KEYSIZE_256); in ppc_xts_setkey()
156 ppc_generate_decrypt_key(ctx->key_dec, ctx->key_enc, key_len); in ppc_xts_setkey()
163 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_encrypt() local
166 ppc_encrypt_aes(out, in, ctx->key_enc, ctx->rounds); in ppc_aes_encrypt()
172 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_decrypt() local
175 ppc_decrypt_aes(out, in, ctx->key_dec, ctx->rounds); in ppc_aes_decrypt()
182 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ecb_encrypt() local
198 ctx->key_enc, ctx->rounds, nbytes); in ppc_ecb_encrypt()
210 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ecb_decrypt() local
226 ctx->key_dec, ctx->rounds, nbytes); in ppc_ecb_decrypt()
238 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_cbc_encrypt() local
254 ctx->key_enc, ctx->rounds, nbytes, walk.iv); in ppc_cbc_encrypt()
266 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_cbc_decrypt() local
282 ctx->key_dec, ctx->rounds, nbytes, walk.iv); in ppc_cbc_decrypt()
294 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ctr_crypt() local
311 ctx->key_enc, ctx->rounds, pbytes , walk.iv); in ppc_ctr_crypt()
324 struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_xts_encrypt() local
333 twk = ctx->key_twk; in ppc_xts_encrypt()
342 ctx->key_enc, ctx->rounds, nbytes, walk.iv, twk); in ppc_xts_encrypt()
355 struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_xts_decrypt() local
364 twk = ctx->key_twk; in ppc_xts_decrypt()
373 ctx->key_dec, ctx->rounds, nbytes, walk.iv, twk); in ppc_xts_decrypt()