/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_macros.h | 31 do { x = (((ulong64)((y)[7] & 255))<<56)|(((ulong64)((y)[6] & 255))<<48)| \ 32 (((ulong64)((y)[5] & 255))<<40)|(((ulong64)((y)[4] & 255))<<32)| \ 33 (((ulong64)((y)[3] & 255))<<24)|(((ulong64)((y)[2] & 255))<<16)| \ 34 (((ulong64)((y)[1] & 255))<<8)|(((ulong64)((y)[0] & 255))); } while(0) 53 do { x = (((ulong64)((y)[0] & 255))<<56)|(((ulong64)((y)[1] & 255))<<48) | \ 54 (((ulong64)((y)[2] & 255))<<40)|(((ulong64)((y)[3] & 255))<<32) | \ 55 (((ulong64)((y)[4] & 255))<<24)|(((ulong64)((y)[5] & 255))<<16) | \ 135 do { x = (((ulong64)((y)[0] & 255))<<56)|(((ulong64)((y)[1] & 255))<<48) | \ 136 (((ulong64)((y)[2] & 255))<<40)|(((ulong64)((y)[3] & 255))<<32) | \ 359 static inline ulong64 ROL64(ulong64 word, int i) in ROL64() [all …]
|
A D | tomcrypt_hash.h | 15 ulong64 s[25]; 34 ulong64 length; 42 ulong64 length; 50 ulong64 length; 58 ulong64 length; 81 ulong64 length; 89 ulong64 length; 97 ulong64 length; 141 ulong64 h[8]; 142 ulong64 t[2]; [all …]
|
A D | tomcrypt_cfg.h | 209 typedef unsigned __int64 ulong64; typedef 213 typedef unsigned long long ulong64; typedef 259 typedef ulong64 __attribute__((__may_alias__)) LTC_FAST_TYPE;
|
A D | tomcrypt_cipher.h | 130 ulong64 roundKeyEnc[8 + 1]; 131 ulong64 roundKeyDec[8 + 1]; 154 ulong64 kw[4], k[24], kl[6]; 1008 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter); 1014 const unsigned char *iv, unsigned long ivlen, ulong64 counter, 1030 int salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counte… 1036 const unsigned char *iv, unsigned long ivlen, ulong64 counter,
|
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/ |
A D | poly1305.c | 28 ulong64 d0,d1,d2,d3,d4; in _poly1305_block() 57 …d0 = ((ulong64)h0 * r0) + ((ulong64)h1 * s4) + ((ulong64)h2 * s3) + ((ulong64)h3 * s2) + ((ulong64… in _poly1305_block() 58 …d1 = ((ulong64)h0 * r1) + ((ulong64)h1 * r0) + ((ulong64)h2 * s4) + ((ulong64)h3 * s3) + ((ulong64… in _poly1305_block() 59 …d2 = ((ulong64)h0 * r2) + ((ulong64)h1 * r1) + ((ulong64)h2 * r0) + ((ulong64)h3 * s4) + ((ulong64… in _poly1305_block() 60 …d3 = ((ulong64)h0 * r3) + ((ulong64)h1 * r2) + ((ulong64)h2 * r1) + ((ulong64)h3 * r0) + ((ulong64… in _poly1305_block() 61 …d4 = ((ulong64)h0 * r4) + ((ulong64)h1 * r3) + ((ulong64)h2 * r2) + ((ulong64)h3 * r1) + ((ulong64… in _poly1305_block() 176 ulong64 f; in poly1305_done() 235 f = (ulong64)h0 + st->pad[0] ; h0 = (ulong32)f; in poly1305_done() 236 f = (ulong64)h1 + st->pad[1] + (f >> 32); h1 = (ulong32)f; in poly1305_done() 237 f = (ulong64)h2 + st->pad[2] + (f >> 32); h2 = (ulong32)f; in poly1305_done() [all …]
|
/optee_os/core/lib/libtomcrypt/src/hashes/ |
A D | sha3.c | 141 static const ulong64 keccakf_rndc[24] = { 164 static void keccakf(ulong64 s[25]) in keccakf() 167 ulong64 t, bc[5]; in keccakf() 228 md->sha3.capacity_words = 2 * 224 / (8 * sizeof(ulong64)); in sha3_224_init() 236 md->sha3.capacity_words = 2 * 256 / (8 * sizeof(ulong64)); in sha3_256_init() 244 md->sha3.capacity_words = 2 * 384 / (8 * sizeof(ulong64)); in sha3_384_init() 252 md->sha3.capacity_words = 2 * 512 / (8 * sizeof(ulong64)); in sha3_512_init() 299 words = inlen / sizeof(ulong64); in sha3_process() 300 tail = inlen - words * sizeof(ulong64); in sha3_process() 302 for(i = 0; i < words; i++, in += sizeof(ulong64)) { in sha3_process() [all …]
|
A D | tiger.c | 43 static const ulong64 table[4*256] = { 564 INLINE static void tiger_round(ulong64 *a, ulong64 *b, ulong64 *c, ulong64 x, int mul) in tiger_round() 566 ulong64 tmp; in tiger_round() 578 static void pass(ulong64 *a, ulong64 *b, ulong64 *c, const ulong64 *x, int mul) in pass() 591 static void key_schedule(ulong64 *x) in key_schedule() 617 ulong64 a, b, c, x[8]; in _tiger_compress() 647 burn_stack(sizeof(ulong64) * 11 + sizeof(unsigned long)); in tiger_compress()
|
A D | blake2b.c | 133 static const ulong64 blake2b_IV[8] = 170 static void blake2b_increment_counter(hash_state *md, ulong64 inc) in blake2b_increment_counter() 195 ulong64 tmp; in blake2b_init_param() 314 ulong64 m[16]; in _blake2b_compress() 315 ulong64 v[16]; in _blake2b_compress() 362 burn_stack(sizeof(ulong64) * 32 + sizeof(unsigned long)); in blake2b_compress()
|
/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | khazad.c | 35 static const ulong64 T0[256] = { 102 static const ulong64 T1[256] = { 169 static const ulong64 T2[256] = { 236 static const ulong64 T3[256] = { 303 static const ulong64 T4[256] = { 370 static const ulong64 T5[256] = { 594 const ulong64 *S; in khazad_setup() 595 ulong64 K2, K1; in khazad_setup() 620 ((ulong64)key[ 7] ); in khazad_setup() 629 ((ulong64)key[15] ); in khazad_setup() [all …]
|
A D | camellia.c | 182 static ulong64 F(ulong64 x) in F() 194 return ((ulong64)U) | (((ulong64)D) << CONST64(32)); in F() 213 ulong64 A, B; in camellia_setup() 442 ulong64 L, R; in camellia_ecb_encrypt() 462 L = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt() 469 R = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt() 484 L = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt() 491 R = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt() 536 ulong64 L, R; in camellia_ecb_decrypt() 582 L = (((ulong64)a) << 32) | b; in camellia_ecb_decrypt() [all …]
|
/optee_os/core/lib/libtomcrypt/src/prngs/ |
A D | fortuna.c | 77 static ulong64 _fortuna_current_time(void) in _fortuna_current_time() 79 ulong64 cur_time; in _fortuna_current_time() 92 cur_time = (ulong64)(ts.tv_sec) * 1000000 + (ulong64)(ts.tv_nsec) / 1000; /* get microseconds */ in _fortuna_current_time() 96 cur_time = (ulong64)(tv.tv_sec) * 1000000 + (ulong64)(tv.tv_usec); /* get microseconds */ in _fortuna_current_time() 107 ulong64 reset_cnt; in _fortuna_reseed() 111 ulong64 now = _fortuna_current_time(); in _fortuna_reseed()
|
/optee_os/core/lib/libtomcrypt/src/misc/ssh/ |
A D | ssh_encode_sequence_multi.c | 37 ulong64 u64data; in ssh_encode_sequence_multi() 57 LTC_UNUSED_PARAM( va_arg(args, ulong64) ); in ssh_encode_sequence_multi() 116 u64data = va_arg(args, ulong64); in ssh_encode_sequence_multi()
|
A D | ssh_decode_sequence_multi.c | 36 ulong64 *u64data; in ssh_decode_sequence_multi() 113 u64data = va_arg(args, ulong64*); in ssh_decode_sequence_multi()
|
/optee_os/core/lib/libtomcrypt/src/hashes/sha2/ |
A D | sha512.c | 38 static const ulong64 K[80] = { 85 #define R(x, n) (((x)&CONST64(0xFFFFFFFFFFFFFFFF))>>((ulong64)n)) 98 ulong64 S[8], W[80], t0, t1; in _sha512_compress() 164 burn_stack(sizeof(ulong64) * 90 + sizeof(int)); in sha512_compress()
|
/optee_os/core/lib/libtomcrypt/src/encauth/chachapoly/ |
A D | chacha20poly1305_add_aad.c | 31 st->aadlen += (ulong64)inlen; in chacha20poly1305_add_aad()
|
A D | chacha20poly1305_setiv_rfc7905.c | 23 …(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 sequence_number) in chacha20poly1305_setiv_rfc7905()
|
A D | chacha20poly1305_encrypt.c | 40 st->ctlen += (ulong64)inlen; in chacha20poly1305_encrypt()
|
A D | chacha20poly1305_decrypt.c | 41 st->ctlen += (ulong64)inlen; in chacha20poly1305_decrypt()
|
/optee_os/core/lib/libtomcrypt/src/encauth/gcm/ |
A D | gcm_process.c | 52 if (gcm->pttotlen / 8 + (ulong64)gcm->buflen + (ulong64)ptlen >= CONST64(0xFFFFFFFE0)) { in gcm_process()
|
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/ |
A D | salsa20_ivctr64.c | 29 int salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counte… in salsa20_ivctr64()
|
A D | salsa20_memory.c | 28 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in salsa20_memory()
|
/optee_os/core/lib/libtomcrypt/src/stream/chacha/ |
A D | chacha_ivctr64.c | 28 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in chacha_ivctr64()
|
A D | chacha_memory.c | 28 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in chacha_memory()
|
/optee_os/core/lib/libtomcrypt/src/hashes/whirl/ |
A D | whirl.c | 62 ulong64 K[2][8], T[3][8]; in _whirlpool_compress() 117 burn_stack((5 * 8 * sizeof(ulong64)) + (2 * sizeof(int))); in whirlpool_compress()
|
A D | whirltab.c | 18 static const ulong64 sbox0[] = { 108 static const ulong64 sbox1[] = { 175 static const ulong64 sbox2[] = { 242 static const ulong64 sbox3[] = { 309 static const ulong64 sbox4[] = { 376 static const ulong64 sbox5[] = { 443 static const ulong64 sbox6[] = { 510 static const ulong64 sbox7[] = { 579 static const ulong64 cont[] = {
|