Lines Matching refs:key

36 	void (*encrypt)(const u64 *key, const u32 *input, u32 *output);
37 void (*decrypt)(const u64 *key, const u32 *input, u32 *output);
38 void (*load_encrypt_keys)(const u64 *key);
39 void (*load_decrypt_keys)(const u64 *key);
40 void (*ecb_encrypt)(const u64 *key, const u64 *input, u64 *output,
42 void (*ecb_decrypt)(const u64 *key, const u64 *input, u64 *output,
44 void (*cbc_encrypt)(const u64 *key, const u64 *input, u64 *output,
46 void (*cbc_decrypt)(const u64 *key, const u64 *input, u64 *output,
48 void (*ctr_crypt)(const u64 *key, const u64 *input, u64 *output,
54 u64 key[AES_MAX_KEYLENGTH / sizeof(u64)]; member
59 extern void aes_sparc64_encrypt_128(const u64 *key, const u32 *input,
61 extern void aes_sparc64_encrypt_192(const u64 *key, const u32 *input,
63 extern void aes_sparc64_encrypt_256(const u64 *key, const u32 *input,
66 extern void aes_sparc64_decrypt_128(const u64 *key, const u32 *input,
68 extern void aes_sparc64_decrypt_192(const u64 *key, const u32 *input,
70 extern void aes_sparc64_decrypt_256(const u64 *key, const u32 *input,
73 extern void aes_sparc64_load_encrypt_keys_128(const u64 *key);
74 extern void aes_sparc64_load_encrypt_keys_192(const u64 *key);
75 extern void aes_sparc64_load_encrypt_keys_256(const u64 *key);
77 extern void aes_sparc64_load_decrypt_keys_128(const u64 *key);
78 extern void aes_sparc64_load_decrypt_keys_192(const u64 *key);
79 extern void aes_sparc64_load_decrypt_keys_256(const u64 *key);
81 extern void aes_sparc64_ecb_encrypt_128(const u64 *key, const u64 *input,
83 extern void aes_sparc64_ecb_encrypt_192(const u64 *key, const u64 *input,
85 extern void aes_sparc64_ecb_encrypt_256(const u64 *key, const u64 *input,
88 extern void aes_sparc64_ecb_decrypt_128(const u64 *key, const u64 *input,
90 extern void aes_sparc64_ecb_decrypt_192(const u64 *key, const u64 *input,
92 extern void aes_sparc64_ecb_decrypt_256(const u64 *key, const u64 *input,
95 extern void aes_sparc64_cbc_encrypt_128(const u64 *key, const u64 *input,
99 extern void aes_sparc64_cbc_encrypt_192(const u64 *key, const u64 *input,
103 extern void aes_sparc64_cbc_encrypt_256(const u64 *key, const u64 *input,
107 extern void aes_sparc64_cbc_decrypt_128(const u64 *key, const u64 *input,
111 extern void aes_sparc64_cbc_decrypt_192(const u64 *key, const u64 *input,
115 extern void aes_sparc64_cbc_decrypt_256(const u64 *key, const u64 *input,
119 extern void aes_sparc64_ctr_crypt_128(const u64 *key, const u64 *input,
122 extern void aes_sparc64_ctr_crypt_192(const u64 *key, const u64 *input,
125 extern void aes_sparc64_ctr_crypt_256(const u64 *key, const u64 *input,
193 aes_sparc64_key_expand((const u32 *)in_key, &ctx->key[0], key_len); in aes_set_key()
209 ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in crypto_aes_encrypt()
216 ctx->ops->decrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in crypto_aes_decrypt()
231 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ecb_encrypt()
233 ctx->ops->ecb_encrypt(&ctx->key[0], walk.src.virt.addr, in ecb_encrypt()
255 ctx->ops->load_decrypt_keys(&ctx->key[0]); in ecb_decrypt()
256 key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; in ecb_decrypt()
280 ctx->ops->load_encrypt_keys(&ctx->key[0]); in cbc_encrypt()
282 ctx->ops->cbc_encrypt(&ctx->key[0], walk.src.virt.addr, in cbc_encrypt()
305 ctx->ops->load_decrypt_keys(&ctx->key[0]); in cbc_decrypt()
306 key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; in cbc_decrypt()
328 ctx->ops->ecb_encrypt(&ctx->key[0], (const u64 *)ctrblk, in ctr_crypt_final()
346 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ctr_crypt()
348 ctx->ops->ctr_crypt(&ctx->key[0], walk.src.virt.addr, in ctr_crypt()