Lines Matching refs:rounds
44 u32 rounds; member
51 u32 rounds; member
54 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds);
55 extern void ppc_decrypt_aes(u8 *out, const u8 *in, u32 *key_dec, u32 rounds);
56 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
58 extern void ppc_decrypt_ecb(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
60 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
62 extern void ppc_decrypt_cbc(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
64 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
66 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
68 extern void ppc_decrypt_xts(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
99 ctx->rounds = 4; in ppc_aes_setkey()
103 ctx->rounds = 5; in ppc_aes_setkey()
107 ctx->rounds = 6; in ppc_aes_setkey()
139 ctx->rounds = 4; in ppc_xts_setkey()
144 ctx->rounds = 5; in ppc_xts_setkey()
149 ctx->rounds = 6; in ppc_xts_setkey()
167 ppc_encrypt_aes(out, in, ctx->key_enc, ctx->rounds); in ppc_aes_encrypt()
176 ppc_decrypt_aes(out, in, ctx->key_dec, ctx->rounds); in ppc_aes_decrypt()
197 ctx->key_enc, ctx->rounds, nbytes); in ppc_ecb_crypt()
200 ctx->key_dec, ctx->rounds, nbytes); in ppc_ecb_crypt()
236 ctx->key_enc, ctx->rounds, nbytes, in ppc_cbc_crypt()
240 ctx->key_dec, ctx->rounds, nbytes, in ppc_cbc_crypt()
277 ctx->key_enc, ctx->rounds, nbytes, walk.iv); in ppc_ctr_crypt()
305 ctx->key_enc, ctx->rounds, nbytes, in ppc_xts_crypt()
309 ctx->key_dec, ctx->rounds, nbytes, in ppc_xts_crypt()
349 ppc_encrypt_xts(b[0], b[0], ctx->key_enc, ctx->rounds, AES_BLOCK_SIZE, in ppc_xts_encrypt()
387 ppc_encrypt_ecb(req->iv, req->iv, ctx->key_twk, ctx->rounds, in ppc_xts_decrypt()
392 ppc_decrypt_xts(b[1], b[1], ctx->key_dec, ctx->rounds, AES_BLOCK_SIZE, in ppc_xts_decrypt()
396 ppc_decrypt_xts(b[0], b[0], ctx->key_dec, ctx->rounds, AES_BLOCK_SIZE, in ppc_xts_decrypt()