Lines Matching refs:ctx

169 	struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm);  in aes_set_key()  local
174 ctx->expanded_key_length = 0xb0; in aes_set_key()
175 ctx->ops = &aes128_ops; in aes_set_key()
179 ctx->expanded_key_length = 0xd0; in aes_set_key()
180 ctx->ops = &aes192_ops; in aes_set_key()
184 ctx->expanded_key_length = 0xf0; in aes_set_key()
185 ctx->ops = &aes256_ops; in aes_set_key()
193 aes_sparc64_key_expand((const u32 *)in_key, &ctx->key[0], key_len); in aes_set_key()
194 ctx->key_length = key_len; in aes_set_key()
201 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_encrypt() local
203 ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in aes_encrypt()
208 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_decrypt() local
210 ctx->ops->decrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in aes_decrypt()
219 struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_encrypt() local
227 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ecb_encrypt()
232 ctx->ops->ecb_encrypt(&ctx->key[0], in ecb_encrypt()
248 struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_decrypt() local
257 ctx->ops->load_decrypt_keys(&ctx->key[0]); in ecb_decrypt()
258 key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; in ecb_decrypt()
263 ctx->ops->ecb_decrypt(key_end, in ecb_decrypt()
279 struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt() local
287 ctx->ops->load_encrypt_keys(&ctx->key[0]); in cbc_encrypt()
292 ctx->ops->cbc_encrypt(&ctx->key[0], in cbc_encrypt()
308 struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt() local
317 ctx->ops->load_decrypt_keys(&ctx->key[0]); in cbc_decrypt()
318 key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; in cbc_decrypt()
323 ctx->ops->cbc_decrypt(key_end, in cbc_decrypt()
336 static void ctr_crypt_final(struct crypto_sparc64_aes_ctx *ctx, in ctr_crypt_final() argument
345 ctx->ops->ecb_encrypt(&ctx->key[0], (const u64 *)ctrblk, in ctr_crypt_final()
356 struct crypto_sparc64_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ctr_crypt() local
364 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ctr_crypt()
369 ctx->ops->ctr_crypt(&ctx->key[0], in ctr_crypt()
378 ctr_crypt_final(ctx, &walk); in ctr_crypt()