Lines Matching refs:rounds
45 u32 rounds; member
52 u32 rounds; member
55 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds);
56 extern void ppc_decrypt_aes(u8 *out, const u8 *in, u32 *key_dec, u32 rounds);
57 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
59 extern void ppc_decrypt_ecb(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
61 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
63 extern void ppc_decrypt_cbc(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
65 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
67 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
69 extern void ppc_decrypt_xts(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
106 ctx->rounds = 4; in ppc_aes_setkey()
110 ctx->rounds = 5; in ppc_aes_setkey()
114 ctx->rounds = 6; in ppc_aes_setkey()
140 ctx->rounds = 4; in ppc_xts_setkey()
145 ctx->rounds = 5; in ppc_xts_setkey()
150 ctx->rounds = 6; in ppc_xts_setkey()
166 ppc_encrypt_aes(out, in, ctx->key_enc, ctx->rounds); in ppc_aes_encrypt()
175 ppc_decrypt_aes(out, in, ctx->key_dec, ctx->rounds); in ppc_aes_decrypt()
198 ctx->key_enc, ctx->rounds, nbytes); in ppc_ecb_encrypt()
226 ctx->key_dec, ctx->rounds, nbytes); in ppc_ecb_decrypt()
254 ctx->key_enc, ctx->rounds, nbytes, walk.iv); in ppc_cbc_encrypt()
282 ctx->key_dec, ctx->rounds, nbytes, walk.iv); in ppc_cbc_decrypt()
311 ctx->key_enc, ctx->rounds, pbytes , walk.iv); in ppc_ctr_crypt()
342 ctx->key_enc, ctx->rounds, nbytes, walk.iv, twk); in ppc_xts_encrypt()
373 ctx->key_dec, ctx->rounds, nbytes, walk.iv, twk); in ppc_xts_decrypt()