Searched refs:be128 (Results 1 – 16 of 16) sorted by relevance
| /linux/include/crypto/ |
| H A D | gf128mul.h | 163 void gf128mul_lle(be128 *a, const be128 *b); 180 static inline void gf128mul_x_lle(be128 *r, const be128 *x) in gf128mul_x_lle() 193 static inline void gf128mul_x_bbe(be128 *r, const be128 *x) in gf128mul_x_bbe() 221 be128 t[256]; 224 struct gf128mul_4k *gf128mul_init_4k_lle(const be128 *g); 225 void gf128mul_4k_lle(be128 *a, const struct gf128mul_4k *t); 244 struct gf128mul_64k *gf128mul_init_64k_bbe(const be128 *g); 246 void gf128mul_64k_bbe(be128 *a, const struct gf128mul_64k *t);
|
| H A D | b128ops.h | 54 } be128; typedef 60 static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) in be128_xor()
|
| H A D | gcm.h | 68 be128 ghash_key;
|
| /linux/lib/crypto/ |
| H A D | gf128mul.c | 140 static void gf128mul_x8_lle(be128 *x) in gf128mul_x8_lle() 151 static void gf128mul_x8_lle_ti(be128 *x) in gf128mul_x8_lle_ti() 161 static void gf128mul_x8_bbe(be128 *x) in gf128mul_x8_bbe() 182 void gf128mul_lle(be128 *r, const be128 *b) in gf128mul_lle() 200 be128 array[16 + 3] = {}; in gf128mul_lle() 201 be128 *p = PTR_ALIGN(&array[0], 2 * sizeof(be128)); in gf128mul_lle() 243 struct gf128mul_64k *gf128mul_init_64k_bbe(const be128 *g) in gf128mul_init_64k_bbe() 295 void gf128mul_64k_bbe(be128 *a, const struct gf128mul_64k *t) in gf128mul_64k_bbe() 298 be128 r[1]; in gf128mul_64k_bbe() 324 struct gf128mul_4k *gf128mul_init_4k_lle(const be128 *g) in gf128mul_init_4k_lle() [all …]
|
| H A D | aesgcm.c | 63 static void aesgcm_ghash(be128 *ghash, const be128 *key, const void *src, in aesgcm_ghash() 91 be128 tail = { cpu_to_be64(assoc_len * 8), cpu_to_be64(src_len * 8) }; in aesgcm_mac() 93 be128 ghash = {}; in aesgcm_mac()
|
| /linux/crypto/ |
| H A D | lrw.c | 49 be128 mulinc[128]; 53 be128 t; 75 be128 tmp = { 0 }; in lrw_setkey() 89 ctx->table = gf128mul_init_64k_bbe((be128 *)tweak); in lrw_setkey() 146 be128 t = rctx->t; in lrw_xor_tweak() 170 const be128 *wsrc; in lrw_xor_tweak() 171 be128 *wdst; in lrw_xor_tweak() 382 (__alignof__(be128) - 1); in lrw_create()
|
| H A D | ghash-generic.c | 59 be128 k; in ghash_setkey() 87 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_update() 104 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_flush()
|
| H A D | gcm.c | 95 be128 hash; in crypto_gcm_setkey() 136 err = crypto_ahash_setkey(ghash, (u8 *)&data->hash, sizeof(be128)); in crypto_gcm_setkey() 224 be128 lengths; in gcm_hash_len()
|
| /linux/arch/riscv/crypto/ |
| H A D | ghash-riscv64-glue.c | 25 asmlinkage void ghash_zvkg(be128 *accumulator, const be128 *key, const u8 *data, 29 be128 key; 33 be128 accumulator;
|
| /linux/arch/powerpc/crypto/ |
| H A D | ghash.c | 36 be128 key; 86 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_block() 109 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_blocks()
|
| /linux/arch/arm/crypto/ |
| H A D | ghash-ce-glue.c | 38 be128 k; 128 static void ghash_reflect(u64 h[], const be128 *k) in ghash_reflect() 152 be128 h = key->k; in ghash_setkey() 208 be128 h, k; in gcm_aes_setkey() 315 be128 lengths; in gcm_encrypt() 404 be128 lengths; in gcm_decrypt()
|
| /linux/arch/arm64/crypto/ |
| H A D | ghash-ce-glue.c | 34 be128 k; 143 static void ghash_reflect(u64 h[], const be128 *k) in ghash_reflect() 194 be128 h; in gcm_aes_setkey() 290 be128 lengths; in gcm_encrypt() 353 be128 lengths; in gcm_decrypt()
|
| H A D | aes-glue.c | 773 static void cmac_gf128_mul_by_x(be128 *y, const be128 *x) in cmac_gf128_mul_by_x() 786 be128 *consts = (be128 *)ctx->consts; in cmac_setkey()
|
| H A D | sm4-ce-gcm-glue.c | 140 be128 __aligned(8) lengths; in gcm_crypt()
|
| H A D | sm4-ce-glue.c | 508 be128 *consts = (be128 *)ctx->consts; in sm4_cmac_setkey()
|
| /linux/arch/x86/crypto/ |
| H A D | aesni-intel_glue.c | 1205 static const u8 x_to_the_minus1[16] __aligned(__alignof__(be128)) = { in gcm_setkey() 1208 static const u8 x_to_the_63[16] __aligned(__alignof__(be128)) = { in gcm_setkey() 1211 be128 h1 = {}; in gcm_setkey() 1212 be128 h; in gcm_setkey() 1220 gf128mul_lle(&h, (const be128 *)x_to_the_minus1); in gcm_setkey() 1259 gf128mul_lle(&h1, (const be128 *)x_to_the_63); in gcm_setkey()
|