Home
last modified time | relevance | path

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

/openbmc/linux/include/crypto/
H A Dgf128mul.h163 void gf128mul_lle(be128 *a, const be128 *b);
165 void gf128mul_bbe(be128 *a, const be128 *b);
182 static inline void gf128mul_x_lle(be128 *r, const be128 *x) in gf128mul_x_lle()
195 static inline void gf128mul_x_bbe(be128 *r, const be128 *x) in gf128mul_x_bbe()
223 be128 t[256];
226 struct gf128mul_4k *gf128mul_init_4k_lle(const be128 *g);
227 struct gf128mul_4k *gf128mul_init_4k_bbe(const be128 *g);
228 void gf128mul_4k_lle(be128 *a, const struct gf128mul_4k *t);
229 void gf128mul_4k_bbe(be128 *a, const struct gf128mul_4k *t);
248 struct gf128mul_64k *gf128mul_init_64k_bbe(const be128 *g);
[all …]
H A Db128ops.h54 } be128; typedef
60 static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) in be128_xor()
H A Dgcm.h68 be128 ghash_key;
/openbmc/linux/lib/crypto/
H A Dgf128mul.c139 static void gf128mul_x8_lle(be128 *x) in gf128mul_x8_lle()
150 static void gf128mul_x8_lle_ti(be128 *x) in gf128mul_x8_lle_ti()
160 static void gf128mul_x8_bbe(be128 *x) in gf128mul_x8_bbe()
181 void gf128mul_lle(be128 *r, const be128 *b) in gf128mul_lle()
199 be128 array[16 + 3] = {}; in gf128mul_lle()
200 be128 *p = PTR_ALIGN(&array[0], 2 * sizeof(be128)); in gf128mul_lle()
228 void gf128mul_bbe(be128 *r, const be128 *b) in gf128mul_bbe()
230 be128 p[8]; in gf128mul_bbe()
335 be128 r[1]; in gf128mul_64k_bbe()
408 be128 r[1]; in gf128mul_4k_lle()
[all …]
H A Daesgcm.c64 static void aesgcm_ghash(be128 *ghash, const be128 *key, const void *src, in aesgcm_ghash()
79 be128 tail = { cpu_to_be64(assoc_len * 8), cpu_to_be64(src_len * 8) }; in aesgcm_mac()
81 be128 ghash = {}; in aesgcm_mac()
/openbmc/linux/crypto/
H A Dlrw.c49 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 be128 *wsrc; in lrw_xor_tweak()
171 be128 *wdst; in lrw_xor_tweak()
382 (__alignof__(be128) - 1); in lrw_create()
H A Dghash-generic.c59 be128 k; in ghash_setkey()
96 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_update()
101 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_update()
125 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_flush()
H A Dpolyval-generic.c64 be128 buffer128;
89 be128 a, b; in polyval_mul_non4k()
123 be128 k; in polyval_setkey()
H A Dgcm.c99 be128 hash; in crypto_gcm_setkey()
140 err = crypto_ahash_setkey(ghash, (u8 *)&data->hash, sizeof(be128)); in crypto_gcm_setkey()
228 be128 lengths; in gcm_hash_len()
/openbmc/linux/drivers/crypto/vmx/
H A Dghash.c37 be128 key;
90 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_block()
110 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_blocks()
/openbmc/linux/arch/arm64/crypto/
H A Dghash-ce-glue.c36 be128 k;
77 be128 dst = { cpu_to_be64(dg[1]), cpu_to_be64(dg[0]) }; in ghash_do_update()
178 static void ghash_reflect(u64 h[], const be128 *k) in ghash_reflect()
237 be128 h; in gcm_aes_setkey()
343 be128 lengths; in gcm_encrypt()
408 be128 lengths; in gcm_decrypt()
H A Daes-glue.c808 static void cmac_gf128_mul_by_x(be128 *y, const be128 *x) in cmac_gf128_mul_by_x()
821 be128 *consts = (be128 *)ctx->consts; in cmac_setkey()
H A Dsm4-ce-gcm-glue.c147 be128 __aligned(8) lengths; in gcm_crypt()
H A Dsm4-ce-glue.c632 be128 *consts = (be128 *)ctx->consts; in sm4_cmac_setkey()
/openbmc/linux/arch/arm/crypto/
H A Dghash-ce-glue.c41 be128 k;
89 be128 dst = { cpu_to_be64(dg[1]), cpu_to_be64(dg[0]) }; in ghash_do_update()
162 static void ghash_reflect(u64 h[], const be128 *k) in ghash_reflect()
186 be128 h = key->k; in ghash_setkey()
387 be128 h, k; in gcm_aes_setkey()
498 be128 lengths; in gcm_encrypt()
590 be128 lengths; in gcm_decrypt()