Home
last modified time | relevance | path

Searched refs:be128 (Results 1 – 13 of 13) sorted by relevance

/linux-3.4.99/include/crypto/
Dgf128mul.h160 void gf128mul_lle(be128 *a, const be128 *b);
162 void gf128mul_bbe(be128 *a, const be128 *b);
165 void gf128mul_x_ble(be128 *a, const be128 *b);
170 be128 t[256];
173 struct gf128mul_4k *gf128mul_init_4k_lle(const be128 *g);
174 struct gf128mul_4k *gf128mul_init_4k_bbe(const be128 *g);
175 void gf128mul_4k_lle(be128 *a, struct gf128mul_4k *t);
176 void gf128mul_4k_bbe(be128 *a, struct gf128mul_4k *t);
194 struct gf128mul_64k *gf128mul_init_64k_lle(const be128 *g);
195 struct gf128mul_64k *gf128mul_init_64k_bbe(const be128 *g);
[all …]
Db128ops.h58 } be128; typedef
70 static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) in be128_xor()
Dlrw.h24 be128 mulinc[128];
31 be128 *tbuf;
Dxts.h12 be128 *tbuf;
/linux-3.4.99/crypto/
Dgf128mul.c125 static void gf128mul_x_lle(be128 *r, const be128 *x) in gf128mul_x_lle()
135 static void gf128mul_x_bbe(be128 *r, const be128 *x) in gf128mul_x_bbe()
145 void gf128mul_x_ble(be128 *r, const be128 *x) in gf128mul_x_ble()
156 static void gf128mul_x8_lle(be128 *x) in gf128mul_x8_lle()
166 static void gf128mul_x8_bbe(be128 *x) in gf128mul_x8_bbe()
176 void gf128mul_lle(be128 *r, const be128 *b) in gf128mul_lle()
178 be128 p[8]; in gf128mul_lle()
214 void gf128mul_bbe(be128 *r, const be128 *b) in gf128mul_bbe()
216 be128 p[8]; in gf128mul_bbe()
266 struct gf128mul_64k *gf128mul_init_64k_lle(const be128 *g) in gf128mul_init_64k_lle()
[all …]
Dlrw.c50 be128 tmp = { 0 }; in lrw_init_table()
57 ctx->table = gf128mul_init_64k_bbe((be128 *)tweak); in lrw_init_table()
100 be128 t;
105 static inline void inc(be128 *iv) in inc()
121 static inline int get_index128(be128 *block) in get_index128()
149 be128 *iv; in crypt()
161 iv = (be128 *)w->iv; in crypt()
226 be128 *iv, *src, *dst, *t; in lrw_crypt()
227 be128 *t_buf = req->tbuf; in lrw_crypt()
240 src = (be128 *)walk.src.virt.addr; in lrw_crypt()
[all …]
Dxts.c81 be128 *t;
112 s.t = (be128 *)w->iv; in crypt()
177 be128 *src, *dst, *t; in xts_crypt()
178 be128 *t_buf = req->tbuf; in xts_crypt()
191 src = (be128 *)walk.src.virt.addr; in xts_crypt()
192 dst = (be128 *)walk.dst.virt.addr; in xts_crypt()
225 *(be128 *)walk.iv = *t; in xts_crypt()
233 src = (be128 *)walk.src.virt.addr; in xts_crypt()
234 dst = (be128 *)walk.dst.virt.addr; in xts_crypt()
Dghash-generic.c56 ctx->gf128 = gf128mul_init_4k_lle((be128 *)key); in ghash_setkey()
84 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_update()
89 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_update()
113 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_flush()
Dgcm.c105 be128 hash; in crypto_gcm_setkey()
155 err = crypto_ahash_setkey(ghash, (u8 *)&data->hash, sizeof(be128)); in crypto_gcm_setkey()
/linux-3.4.99/arch/x86/crypto/
Dtwofish_glue_3way.c249 static inline void u128_to_be128(be128 *dst, const u128 *src) in u128_to_be128()
255 static inline void be128_to_u128(u128 *dst, const be128 *src) in be128_to_u128()
294 be128 ctrblocks[3]; in __ctr_crypt()
296 be128_to_u128(&ctrblk, (be128 *)walk->iv); in __ctr_crypt()
344 u128_to_be128((be128 *)walk->iv, &ctrblk); in __ctr_crypt()
423 be128 buf[3]; in lrw_encrypt()
440 be128 buf[3]; in lrw_decrypt()
494 be128 buf[3]; in xts_encrypt()
512 be128 buf[3]; in xts_decrypt()
Dghash-clmulni-intel_glue.c28 void clmul_ghash_mul(char *dst, const be128 *shash);
31 const be128 *shash);
38 be128 shash;
59 be128 *x = (be128 *)key; in ghash_setkey()
Dcamellia_glue.c1499 static inline void u128_to_be128(be128 *dst, const u128 *src) in u128_to_be128()
1505 static inline void be128_to_u128(u128 *dst, const be128 *src) in be128_to_u128()
1532 be128_to_u128(&ctrblk, (be128 *)walk->iv); in ctr_crypt_final()
1534 u128_to_be128((be128 *)walk->iv, &ctrblk); in ctr_crypt_final()
1546 be128 ctrblocks[2]; in __ctr_crypt()
1548 be128_to_u128(&ctrblk, (be128 *)walk->iv); in __ctr_crypt()
1592 u128_to_be128((be128 *)walk->iv, &ctrblk); in __ctr_crypt()
1675 be128 buf[2 * 4]; in lrw_encrypt()
1692 be128 buf[2 * 4]; in lrw_decrypt()
1746 be128 buf[2 * 4]; in xts_encrypt()
[all …]
Dserpent_sse2_glue.c276 static inline void u128_to_be128(be128 *dst, const u128 *src) in u128_to_be128()
282 static inline void be128_to_u128(u128 *dst, const be128 *src) in be128_to_u128()
321 be128 ctrblocks[SERPENT_PARALLEL_BLOCKS]; in __ctr_crypt()
324 be128_to_u128(&ctrblk, (be128 *)walk->iv); in __ctr_crypt()
367 u128_to_be128((be128 *)walk->iv, &ctrblk); in __ctr_crypt()
461 be128 buf[SERPENT_PARALLEL_BLOCKS]; in lrw_encrypt()
487 be128 buf[SERPENT_PARALLEL_BLOCKS]; in lrw_decrypt()
549 be128 buf[SERPENT_PARALLEL_BLOCKS]; in xts_encrypt()
576 be128 buf[SERPENT_PARALLEL_BLOCKS]; in xts_decrypt()