Lines Matching refs:u64
34 void (*encrypt)(const u64 *key, const u32 *input, u32 *output);
35 void (*decrypt)(const u64 *key, const u32 *input, u32 *output);
36 void (*load_encrypt_keys)(const u64 *key);
37 void (*load_decrypt_keys)(const u64 *key);
38 void (*ecb_encrypt)(const u64 *key, const u64 *input, u64 *output,
40 void (*ecb_decrypt)(const u64 *key, const u64 *input, u64 *output,
42 void (*cbc_encrypt)(const u64 *key, const u64 *input, u64 *output,
43 unsigned int len, u64 *iv);
44 void (*cbc_decrypt)(const u64 *key, const u64 *input, u64 *output,
45 unsigned int len, u64 *iv);
46 void (*ctr_crypt)(const u64 *key, const u64 *input, u64 *output,
47 unsigned int len, u64 *iv);
52 u64 key[AES_MAX_KEYLENGTH / sizeof(u64)];
57 extern void aes_sparc64_encrypt_128(const u64 *key, const u32 *input,
59 extern void aes_sparc64_encrypt_192(const u64 *key, const u32 *input,
61 extern void aes_sparc64_encrypt_256(const u64 *key, const u32 *input,
64 extern void aes_sparc64_decrypt_128(const u64 *key, const u32 *input,
66 extern void aes_sparc64_decrypt_192(const u64 *key, const u32 *input,
68 extern void aes_sparc64_decrypt_256(const u64 *key, const u32 *input,
71 extern void aes_sparc64_load_encrypt_keys_128(const u64 *key);
72 extern void aes_sparc64_load_encrypt_keys_192(const u64 *key);
73 extern void aes_sparc64_load_encrypt_keys_256(const u64 *key);
75 extern void aes_sparc64_load_decrypt_keys_128(const u64 *key);
76 extern void aes_sparc64_load_decrypt_keys_192(const u64 *key);
77 extern void aes_sparc64_load_decrypt_keys_256(const u64 *key);
79 extern void aes_sparc64_ecb_encrypt_128(const u64 *key, const u64 *input,
80 u64 *output, unsigned int len);
81 extern void aes_sparc64_ecb_encrypt_192(const u64 *key, const u64 *input,
82 u64 *output, unsigned int len);
83 extern void aes_sparc64_ecb_encrypt_256(const u64 *key, const u64 *input,
84 u64 *output, unsigned int len);
86 extern void aes_sparc64_ecb_decrypt_128(const u64 *key, const u64 *input,
87 u64 *output, unsigned int len);
88 extern void aes_sparc64_ecb_decrypt_192(const u64 *key, const u64 *input,
89 u64 *output, unsigned int len);
90 extern void aes_sparc64_ecb_decrypt_256(const u64 *key, const u64 *input,
91 u64 *output, unsigned int len);
93 extern void aes_sparc64_cbc_encrypt_128(const u64 *key, const u64 *input,
94 u64 *output, unsigned int len,
95 u64 *iv);
97 extern void aes_sparc64_cbc_encrypt_192(const u64 *key, const u64 *input,
98 u64 *output, unsigned int len,
99 u64 *iv);
101 extern void aes_sparc64_cbc_encrypt_256(const u64 *key, const u64 *input,
102 u64 *output, unsigned int len,
103 u64 *iv);
105 extern void aes_sparc64_cbc_decrypt_128(const u64 *key, const u64 *input,
106 u64 *output, unsigned int len,
107 u64 *iv);
109 extern void aes_sparc64_cbc_decrypt_192(const u64 *key, const u64 *input,
110 u64 *output, unsigned int len,
111 u64 *iv);
113 extern void aes_sparc64_cbc_decrypt_256(const u64 *key, const u64 *input,
114 u64 *output, unsigned int len,
115 u64 *iv);
117 extern void aes_sparc64_ctr_crypt_128(const u64 *key, const u64 *input,
118 u64 *output, unsigned int len,
119 u64 *iv);
120 extern void aes_sparc64_ctr_crypt_192(const u64 *key, const u64 *input,
121 u64 *output, unsigned int len,
122 u64 *iv);
123 extern void aes_sparc64_ctr_crypt_256(const u64 *key, const u64 *input,
124 u64 *output, unsigned int len,
125 u64 *iv);
163 extern void aes_sparc64_key_expand(const u32 *in_key, u64 *output_key,
233 (const u64 *)walk.src.virt.addr, in ecb_encrypt()
234 (u64 *) walk.dst.virt.addr, in ecb_encrypt()
250 u64 *key_end; in ecb_decrypt()
258 key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; in ecb_decrypt()
264 (const u64 *) walk.src.virt.addr, in ecb_decrypt()
265 (u64 *) walk.dst.virt.addr, block_len); in ecb_decrypt()
293 (const u64 *)walk.src.virt.addr, in cbc_encrypt()
294 (u64 *) walk.dst.virt.addr, in cbc_encrypt()
295 block_len, (u64 *) walk.iv); in cbc_encrypt()
310 u64 *key_end; in cbc_decrypt()
318 key_end = &ctx->key[ctx->expanded_key_length / sizeof(u64)]; in cbc_decrypt()
324 (const u64 *) walk.src.virt.addr, in cbc_decrypt()
325 (u64 *) walk.dst.virt.addr, in cbc_decrypt()
326 block_len, (u64 *) walk.iv); in cbc_decrypt()
340 u64 keystream[AES_BLOCK_SIZE / sizeof(u64)]; in ctr_crypt_final()
345 ctx->ops->ecb_encrypt(&ctx->key[0], (const u64 *)ctrblk, in ctr_crypt_final()
369 (const u64 *)walk.src.virt.addr, in ctr_crypt()
370 (u64 *) walk.dst.virt.addr, in ctr_crypt()
371 block_len, (u64 *) walk.iv); in ctr_crypt()