Home
last modified time | relevance | path

Searched refs:u128 (Results 1 – 16 of 16) sorted by relevance

/OK3568_Linux_fs/kernel/lib/crypto/
H A Dcurve25519-hacl64.c17 typedef __uint128_t u128; typedef
53 static __always_inline void fproduct_copy_from_wide_(u64 *output, u128 *input) in fproduct_copy_from_wide_()
56 u128 xi = input[0]; in fproduct_copy_from_wide_()
60 u128 xi = input[1]; in fproduct_copy_from_wide_()
64 u128 xi = input[2]; in fproduct_copy_from_wide_()
68 u128 xi = input[3]; in fproduct_copy_from_wide_()
72 u128 xi = input[4]; in fproduct_copy_from_wide_()
78 fproduct_sum_scalar_multiplication_(u128 *output, u64 *input, u64 s) in fproduct_sum_scalar_multiplication_()
80 output[0] += (u128)input[0] * s; in fproduct_sum_scalar_multiplication_()
81 output[1] += (u128)input[1] * s; in fproduct_sum_scalar_multiplication_()
[all …]
H A Dpoly1305-donna64.c13 typedef __uint128_t u128; typedef
44 u128 d0, d1, d2, d; in poly1305_core_blocks()
74 d0 = (u128)h0 * r0; in poly1305_core_blocks()
75 d = (u128)h1 * s2; in poly1305_core_blocks()
77 d = (u128)h2 * s1; in poly1305_core_blocks()
79 d1 = (u128)h0 * r1; in poly1305_core_blocks()
80 d = (u128)h1 * r0; in poly1305_core_blocks()
82 d = (u128)h2 * s2; in poly1305_core_blocks()
84 d2 = (u128)h0 * r2; in poly1305_core_blocks()
85 d = (u128)h1 * r1; in poly1305_core_blocks()
[all …]
/OK3568_Linux_fs/kernel/include/crypto/
H A Db128ops.h54 } u128; typedef
64 static inline void u128_xor(u128 *r, const u128 *p, const u128 *q) in u128_xor()
72 u128_xor((u128 *)r, (u128 *)p, (u128 *)q); in be128_xor()
77 u128_xor((u128 *)r, (u128 *)p, (u128 *)q); in le128_xor()
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A Dglue_helper.c78 const u128 *src = (u128 *)walk.src.virt.addr; in glue_cbc_encrypt_req_128bit()
79 u128 *dst = (u128 *)walk.dst.virt.addr; in glue_cbc_encrypt_req_128bit()
80 u128 *iv = (u128 *)walk.iv; in glue_cbc_encrypt_req_128bit()
91 *(u128 *)walk.iv = *iv; in glue_cbc_encrypt_req_128bit()
111 const u128 *src = walk.src.virt.addr; in glue_cbc_decrypt_req_128bit()
112 u128 *dst = walk.dst.virt.addr; in glue_cbc_decrypt_req_128bit()
115 u128 last_iv; in glue_cbc_decrypt_req_128bit()
149 u128_xor(dst, dst, (u128 *)walk.iv); in glue_cbc_decrypt_req_128bit()
150 *(u128 *)walk.iv = last_iv; in glue_cbc_decrypt_req_128bit()
172 const u128 *src = walk.src.virt.addr; in glue_ctr_req_128bit()
[all …]
H A Dserpent_sse2_glue.c36 u128 ivs[SERPENT_PARALLEL_BLOCKS - 1]; in serpent_decrypt_cbc_xway()
37 u128 *dst = (u128 *)d; in serpent_decrypt_cbc_xway()
38 const u128 *src = (const u128 *)s; in serpent_decrypt_cbc_xway()
53 u128 *dst = (u128 *)d; in serpent_crypt_ctr()
54 const u128 *src = (const u128 *)s; in serpent_crypt_ctr()
60 u128_xor(dst, src, (u128 *)&ctrblk); in serpent_crypt_ctr()
67 u128 *dst = (u128 *)d; in serpent_crypt_ctr_xway()
68 const u128 *src = (const u128 *)s; in serpent_crypt_ctr_xway()
H A Dtwofish_glue_3way.c41 u128 ivs[2]; in twofish_dec_blk_cbc_3way()
42 u128 *dst = (u128 *)d; in twofish_dec_blk_cbc_3way()
43 const u128 *src = (const u128 *)s; in twofish_dec_blk_cbc_3way()
58 u128 *dst = (u128 *)d; in twofish_enc_blk_ctr()
59 const u128 *src = (const u128 *)s; in twofish_enc_blk_ctr()
68 u128_xor(dst, dst, (u128 *)&ctrblk); in twofish_enc_blk_ctr()
75 u128 *dst = (u128 *)d; in twofish_enc_blk_ctr_3way()
76 const u128 *src = (const u128 *)s; in twofish_enc_blk_ctr_3way()
H A Dcamellia_glue.c1267 u128 *dst = (u128 *)d; in camellia_decrypt_cbc_2way()
1268 const u128 *src = (const u128 *)s; in camellia_decrypt_cbc_2way()
1269 u128 iv = *src; in camellia_decrypt_cbc_2way()
1280 u128 *dst = (u128 *)d; in camellia_crypt_ctr()
1281 const u128 *src = (const u128 *)s; in camellia_crypt_ctr()
1296 u128 *dst = (u128 *)d; in camellia_crypt_ctr_2way()
1297 const u128 *src = (const u128 *)s; in camellia_crypt_ctr_2way()
H A Dcast6_avx_glue.c54 u128 *dst = (u128 *)d; in cast6_crypt_ctr()
55 const u128 *src = (const u128 *)s; in cast6_crypt_ctr()
61 u128_xor(dst, src, (u128 *)&ctrblk); in cast6_crypt_ctr()
H A Dserpent_avx_glue.c50 u128 *dst = (u128 *)d; in __serpent_crypt_ctr()
51 const u128 *src = (const u128 *)s; in __serpent_crypt_ctr()
57 u128_xor(dst, src, (u128 *)&ctrblk); in __serpent_crypt_ctr()
H A Dghash-clmulni-intel_glue.c26 void clmul_ghash_mul(char *dst, const u128 *shash);
29 const u128 *shash);
36 u128 shash;
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Daes_gcm.c42 typedef struct { u64 hi,lo; } u128; typedef
60 u128 Htable[256];
62 u128 Htable[16];
63 void (*gmult)(u64 Xi[2],const u128 Htable[16]);
64 void (*ghash)(u64 Xi[2],const u128 Htable[16],const u8 *inp,size_t len);
109 static void gcm_init_8bit(u128 Htable[256], u64 H[2]) in gcm_init_8bit()
112 u128 V; in gcm_init_8bit()
125 u128 *Hi = Htable+i, H0 = *Hi; in gcm_init_8bit()
133 static void gcm_gmult_8bit(u64 Xi[2], const u128 Htable[256]) in gcm_gmult_8bit()
135 u128 Z = { 0, 0}; in gcm_gmult_8bit()
[all …]
H A Dsm4_gcm.c40 typedef struct { u64 hi,lo; } u128; typedef
54 u128 Htable[256];
56 u128 Htable[16];
57 void (*gmult)(u64 Xi[2],const u128 Htable[16]);
58 void (*ghash)(u64 Xi[2],const u128 Htable[16],const u8 *inp,size_t len);
103 static void gcm_init_8bit(u128 Htable[256], u64 H[2]) in gcm_init_8bit()
106 u128 V; in gcm_init_8bit()
119 u128 *Hi = Htable+i, H0 = *Hi; in gcm_init_8bit()
127 static void gcm_gmult_8bit(u64 Xi[2], const u128 Htable[256]) in gcm_gmult_8bit()
129 u128 Z = { 0, 0}; in gcm_gmult_8bit()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/vmx/
H A Dghash.c27 void gcm_init_p8(u128 htable[16], const u64 Xi[2]);
28 void gcm_gmult_p8(u64 Xi[2], const u128 htable[16]);
29 void gcm_ghash_p8(u64 Xi[2], const u128 htable[16],
34 u128 htable[16];
/OK3568_Linux_fs/external/security/librkcrypto/test/include/c_mode/
H A Dmodes_lcl.h96 } u128; typedef
/OK3568_Linux_fs/kernel/net/bluetooth/
H A Dsmp.c428 u128_xor((u128 *) res, (u128 *) r, (u128 *) p1); in smp_c1()
445 u128_xor((u128 *) res, (u128 *) res, (u128 *) p2); in smp_c1()
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/xilinx/
H A Dzynqmp-zcu106-revA.dts529 temp@4c {/* lm96163 - u128 */