Home
last modified time | relevance | path

Searched refs:ulong32 (Results 1 – 25 of 55) sorted by relevance

123

/optee_os/core/lib/libtomcrypt/src/ciphers/aes/
A Daes_tab.c31 static const ulong32 TE0[256] = {
99 static const ulong32 Te4[256] = {
169 static const ulong32 TD0[256] = {
236 static const ulong32 Td4[256] = {
535 static const ulong32 Te4_0[] = {
570 static const ulong32 Te4_1[] = {
877 static const ulong32 Tks0[] = {
912 static const ulong32 Tks1[] = {
947 static const ulong32 Tks2[] = {
982 static const ulong32 Tks3[] = {
[all …]
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_macros.h258 static inline ulong32 ROL(ulong32 word, int i) in ROL()
266 static inline ulong32 ROR(ulong32 word, int i) in ROR()
277 ulong32 __ROLc_tmp = (word); \
303 static inline ulong32 ROL(ulong32 word, int i) in ROL()
311 static inline ulong32 ROR(ulong32 word, int i) in ROR()
321 static inline ulong32 ROLc(ulong32 word, const int i) in ROLc()
329 static inline ulong32 RORc(ulong32 word, const int i) in RORc()
348 #define ROL(x, y) ( (((ulong32)(x)<<(ulong32)((y)&31)) | (((ulong32)(x)&0xFFFFFFFFUL)>>(ulong32)((3…
349 #define ROR(x, y) ( ((((ulong32)(x)&0xFFFFFFFFUL)>>(ulong32)((y)&31)) | ((ulong32)(x)<<(ulong32)((3…
350 #define ROLc(x, y) ( (((ulong32)(x)<<(ulong32)((y)&31)) | (((ulong32)(x)&0xFFFFFFFFUL)>>(ulong32)((…
[all …]
A Dtomcrypt_cipher.h18 ulong32 S[4][256];
19 ulong32 K[18];
26 ulong32 K[50];
32 ulong32 K[44];
77 ulong32 K[40];
147 ulong32 uk[8];
171 ulong32 k[33*4];
1058 ulong32 r1, r2;
1084 ulong32 x[8];
1085 ulong32 c[8];
[all …]
A Dtomcrypt_hash.h35 ulong32 state[8], curlen;
43 ulong32 state[5], curlen;
51 ulong32 state[4], curlen;
59 ulong32 state[4], curlen;
83 ulong32 curlen, state[4];
91 ulong32 curlen, state[5];
115 ulong32 curlen;
123 ulong32 curlen;
129 ulong32 h[8];
130 ulong32 t[2];
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/twofish/
A Dtwofish_tab.c77 static const ulong32 mds_tab[4][256] = {
218 static const ulong32 rs_tab0[256] = {
252 static const ulong32 rs_tab1[256] = {
286 static const ulong32 rs_tab2[256] = {
320 static const ulong32 rs_tab3[256] = {
354 static const ulong32 rs_tab4[256] = {
388 static const ulong32 rs_tab5[256] = {
422 static const ulong32 rs_tab6[256] = {
456 static const ulong32 rs_tab7[256] = {
A Dtwofish.c93 static ulong32 _sbox(int i, ulong32 x) in _sbox()
95 static ulong32 sbox(int i, ulong32 x) in _sbox()
132 static ulong32 sbox(int i, ulong32 x) in sbox()
134 ulong32 y; in sbox()
144 static ulong32 gf_mult(ulong32 a, ulong32 b, ulong32 p) in gf_mult()
211 ulong32 tmp; in mds_mult()
222 ulong32 tmp; in rs_mult()
292 static ulong32 _g_func(ulong32 x, const symmetric_key *key) in _g_func()
294 static ulong32 g_func(ulong32 x, const symmetric_key *key) in _g_func()
325 static ulong32 g_func(ulong32 x, const symmetric_key *key) in g_func()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/
A Danubis.c44 static const ulong32 T0[256] = {
111 static const ulong32 T1[256] = {
178 static const ulong32 T2[256] = {
245 static const ulong32 T3[256] = {
449 static const ulong32 rc[] = {
867 static const ulong32 rc[] = {
892 ulong32 kappa[MAX_N]; in _anubis_setup()
894 ulong32 v, K0, K1, K2, K3; in _anubis_setup()
1033 ulong32 state[4]; in anubis_crypt()
1034 ulong32 inter[4]; in anubis_crypt()
[all …]
A Dmulti2.c24 static void pi2(ulong32 *p, const ulong32 *k) in pi2()
26 ulong32 t; in pi2()
33 static void pi3(ulong32 *p, const ulong32 *k) in pi3()
35 ulong32 t; in pi3()
45 static void pi4(ulong32 *p, const ulong32 *k) in pi4()
47 ulong32 t; in pi4()
53 static void setup(const ulong32 *dk, const ulong32 *k, ulong32 *uk) in setup()
56 ulong32 p[2]; in setup()
81 static void encrypt(ulong32 *p, int N, const ulong32 *uk) in encrypt()
93 static void decrypt(ulong32 *p, int N, const ulong32 *uk) in decrypt()
[all …]
A Dcamellia.c184 ulong32 D, U; in F()
443 ulong32 a, b; in camellia_ecb_encrypt()
458 a = (ulong32)(L >> 32); in camellia_ecb_encrypt()
465 a = (ulong32)(R >> 32); in camellia_ecb_encrypt()
480 a = (ulong32)(L >> 32); in camellia_ecb_encrypt()
487 a = (ulong32)(R >> 32); in camellia_ecb_encrypt()
537 ulong32 a, b; in camellia_ecb_decrypt()
578 a = (ulong32)(L >> 32); in camellia_ecb_decrypt()
585 a = (ulong32)(R >> 32); in camellia_ecb_decrypt()
600 a = (ulong32)(L >> 32); in camellia_ecb_decrypt()
[all …]
A Dkseed.c34 static const ulong32 SS0[256] = {
69 static const ulong32 SS1[256] = {
104 static const ulong32 SS2[256] = {
139 static const ulong32 SS3[256] = {
174 static const ulong32 KCi[16] = {
204 ulong32 tmp, k1, k2, k3, k4; in kseed_setup()
240 static void rounds(ulong32 *P, const ulong32 *K) in rounds()
242 ulong32 T, T2; in rounds()
260 ulong32 P[4]; in kseed_ecb_encrypt()
282 ulong32 P[4]; in kseed_ecb_decrypt()
A Dcast5.c32 static const ulong32 S1[256] = {
77 static const ulong32 S2[256] = {
413 ulong32 x[4], z[4]; in _cast5_setup()
507 INLINE static ulong32 FI(ulong32 R, ulong32 Km, ulong32 Kr) in FI()
509 ulong32 I; in FI()
515 INLINE static ulong32 FII(ulong32 R, ulong32 Km, ulong32 Kr) in FII()
517 ulong32 I; in FII()
523 INLINE static ulong32 FIII(ulong32 R, ulong32 Km, ulong32 Kr) in FIII()
525 ulong32 I; in FIII()
543 ulong32 R, L; in _cast5_ecb_encrypt()
[all …]
A Drc5.c34 static const ulong32 stab[50] = {
58 ulong32 L[64], *S, A, B, i, j, v, s, t, l; in _rc5_setup()
81 for (A = i = j = 0; i < (ulong32)keylen; ) { in _rc5_setup()
82 A = (A << 8) | ((ulong32)(key[i++] & 255)); in _rc5_setup()
90 A <<= (ulong32)((8 * (4 - (keylen&3)))); in _rc5_setup()
95 t = (ulong32)(2 * (num_rounds + 1)); in _rc5_setup()
133 ulong32 A, B; in _rc5_ecb_encrypt()
134 const ulong32 *K; in _rc5_ecb_encrypt()
171 burn_stack(sizeof(ulong32) * 2 + sizeof(int)); in rc5_ecb_encrypt()
189 ulong32 A, B; in _rc5_ecb_decrypt()
[all …]
A Dblowfish.c32 static const ulong32 ORIG_P[16 + 2] = {
40 static const ulong32 ORIG_S[4][256] = {
310 ulong32 x, y, z, A; in blowfish_setup()
330 A = (A << 8) | ((ulong32)key[y++] & 255); in blowfish_setup()
331 if (y == (ulong32)keylen) { in blowfish_setup()
395 ulong32 L, R; in _blowfish_ecb_encrypt()
398 const ulong32 *S1, *S2, *S3, *S4; in _blowfish_ecb_encrypt()
439 burn_stack(sizeof(ulong32) * 2 + sizeof(int)); in blowfish_ecb_encrypt()
457 ulong32 L, R; in _blowfish_ecb_decrypt()
460 const ulong32 *S1, *S2, *S3, *S4; in _blowfish_ecb_decrypt()
[all …]
A Drc6.c33 static const ulong32 stab[44] = {
55 ulong32 L[64], S[50], A, B, i, j, v, s, l; in _rc6_setup()
71 for (A = i = j = 0; i < (ulong32)keylen; ) { in _rc6_setup()
72 A = (A << 8) | ((ulong32)(key[i++] & 255)); in _rc6_setup()
110 burn_stack(sizeof(ulong32) * 122); in rc6_setup()
127 ulong32 a,b,c,d,t,u; in _rc6_ecb_encrypt()
128 const ulong32 *K; in _rc6_ecb_encrypt()
165 burn_stack(sizeof(ulong32) * 6 + sizeof(int)); in rc6_ecb_encrypt()
182 ulong32 a,b,c,d,t,u; in _rc6_ecb_decrypt()
183 const ulong32 *K; in _rc6_ecb_decrypt()
[all …]
A Dkasumi.c100 static ulong32 FO( ulong32 in, int round_no, const symmetric_key *key) in FO()
121 return (((ulong32)right)<<16)+left; in FO()
124 static ulong32 FL( ulong32 in, int round_no, const symmetric_key *key ) in FL()
137 return (((ulong32)l)<<16) + r; in FL()
142 ulong32 left, right, temp; in kasumi_ecb_encrypt()
169 ulong32 left, right, temp; in kasumi_ecb_decrypt()
A Ddes.c1300 static void cookey(const ulong32 *raw1, ulong32 *keyout);
1363 static void _cookey(const ulong32 *raw1, ulong32 *keyout) in _cookey()
1365 static void cookey(const ulong32 *raw1, ulong32 *keyout) in _cookey()
1368 ulong32 *cook; in _cookey()
1391 static void cookey(const ulong32 *raw1, ulong32 *keyout) in cookey()
1399 static void desfunc(ulong32 *block, const ulong32 *keys) in desfunc()
1401 static void _desfunc(ulong32 *block, const ulong32 *keys) in desfunc()
1513 static void desfunc(ulong32 *block, const ulong32 *keys) in desfunc()
1598 ulong32 work[2]; in des_ecb_encrypt()
1619 ulong32 work[2]; in des_ecb_decrypt()
[all …]
/optee_os/core/lib/libtomcrypt/src/stream/rabbit/
A Drabbit.c71 static LTC_INLINE ulong32 _rabbit_g_func(ulong32 x);
79 static LTC_INLINE ulong32 _rabbit_g_func(ulong32 x) in _rabbit_g_func()
81 ulong32 a, b, h, l; in _rabbit_g_func()
88 h = ((((ulong32)(a*a)>>17) + (ulong32)(a*b))>>15) + b*b; in _rabbit_g_func()
92 return (ulong32)(h^l); in _rabbit_g_func()
100 ulong32 g[8], c_old[8], i; in _rabbit_next_state()
138 ulong32 *ptr; in _rabbit_gen_1_block()
144 ptr = (ulong32*)&(st->work_ctx.x); in _rabbit_gen_1_block()
156 ulong32 k0, k1, k2, k3, i; in rabbit_setup()
185 st->master_ctx.x[1] = (ulong32)(k3<<16) | (k2>>16); in rabbit_setup()
[all …]
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305.c24 ulong32 r0,r1,r2,r3,r4; in _poly1305_block()
25 ulong32 s1,s2,s3,s4; in _poly1305_block()
26 ulong32 h0,h1,h2,h3,h4; in _poly1305_block()
27 ulong32 tmp; in _poly1305_block()
29 ulong32 c; in _poly1305_block()
64 c = (ulong32)(d0 >> 26); h0 = (ulong32)d0 & 0x3ffffff; in _poly1305_block()
65 d1 += c; c = (ulong32)(d1 >> 26); h1 = (ulong32)d1 & 0x3ffffff; in _poly1305_block()
66 d2 += c; c = (ulong32)(d2 >> 26); h2 = (ulong32)d2 & 0x3ffffff; in _poly1305_block()
67 d3 += c; c = (ulong32)(d3 >> 26); h3 = (ulong32)d3 & 0x3ffffff; in _poly1305_block()
68 d4 += c; c = (ulong32)(d4 >> 26); h4 = (ulong32)d4 & 0x3ffffff; in _poly1305_block()
[all …]
/optee_os/core/lib/libtomcrypt/src/stream/sober128/
A Dsober128_stream.c29 static ulong32 BYTE2WORD(const unsigned char *b) in BYTE2WORD()
31 ulong32 t; in BYTE2WORD()
38 ulong32 t; in XORWORD()
54 static void cycle(ulong32 *R) in cycle()
56 ulong32 t; in cycle()
81 ulong32 t; in nltap()
111 ulong32 newkonst; in s128_genkonst()
132 ulong32 t; in s128_diffuse()
162 ulong32 i, k; in sober128_stream_setup()
209 ulong32 i, k; in sober128_stream_setiv()
[all …]
A Dsober128tab.c21 static const ulong32 Multab[256] = {
106 static const ulong32 Sbox[256] = {
/optee_os/core/lib/libtomcrypt/src/stream/sosemanuk/
A Dsosemanuk.c616 ulong32 tt, or1; \ in _sosemanuk_internal()
666 ulong32 s00 = st->s00; in _sosemanuk_internal()
667 ulong32 s01 = st->s01; in _sosemanuk_internal()
668 ulong32 s02 = st->s02; in _sosemanuk_internal()
669 ulong32 s03 = st->s03; in _sosemanuk_internal()
670 ulong32 s04 = st->s04; in _sosemanuk_internal()
671 ulong32 s05 = st->s05; in _sosemanuk_internal()
672 ulong32 s06 = st->s06; in _sosemanuk_internal()
673 ulong32 s07 = st->s07; in _sosemanuk_internal()
676 ulong32 r1 = st->r1; in _sosemanuk_internal()
[all …]
/optee_os/core/lib/libtomcrypt/src/misc/
A Dcrc32.c20 static const ulong32 _CRC32_NEGL = 0xffffffffUL;
33 static const ulong32 crc32_m_tab[] =
152 ulong32 crc; in crc32_update()
168 ulong32 crc; in crc32_finish()
/optee_os/core/lib/libtomcrypt/src/misc/ssh/
A Dssh_encode_sequence_multi.c31 ulong32 size; in ssh_encode_sequence_multi()
36 ulong32 u32data; in ssh_encode_sequence_multi()
53 LTC_UNUSED_PARAM( va_arg(args, ulong32) ); in ssh_encode_sequence_multi()
111 u32data = va_arg(args, ulong32); in ssh_encode_sequence_multi()
A Dssh_decode_sequence_multi.c35 ulong32 *u32data; in ssh_decode_sequence_multi()
38 ulong32 size; in ssh_decode_sequence_multi()
108 u32data = va_arg(args, ulong32*); in ssh_decode_sequence_multi()
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_ivctr64.c38 st->input[8] = (ulong32)(counter & 0xFFFFFFFF); in salsa20_ivctr64()
39 st->input[9] = (ulong32)(counter >> 32); in salsa20_ivctr64()

Completed in 84 milliseconds

123