Home
last modified time | relevance | path

Searched refs:ulong64 (Results 1 – 25 of 36) sorted by relevance

12

/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_macros.h29 do { x = (((ulong64)((y)[7] & 255))<<56)|(((ulong64)((y)[6] & 255))<<48)| \
30 (((ulong64)((y)[5] & 255))<<40)|(((ulong64)((y)[4] & 255))<<32)| \
31 (((ulong64)((y)[3] & 255))<<24)|(((ulong64)((y)[2] & 255))<<16)| \
32 (((ulong64)((y)[1] & 255))<<8)|(((ulong64)((y)[0] & 255))); } while(0)
51 do { x = (((ulong64)((y)[0] & 255))<<56)|(((ulong64)((y)[1] & 255))<<48) | \
52 (((ulong64)((y)[2] & 255))<<40)|(((ulong64)((y)[3] & 255))<<32) | \
53 (((ulong64)((y)[4] & 255))<<24)|(((ulong64)((y)[5] & 255))<<16) | \
54 (((ulong64)((y)[6] & 255))<<8)|(((ulong64)((y)[7] & 255))); } while(0)
101 do { ulong64 ttt = __builtin_bswap64 ((x)); \
133 do { x = (((ulong64)((y)[0] & 255))<<56)|(((ulong64)((y)[1] & 255))<<48) | \
[all …]
H A Dtomcrypt_hash.h7ulong64 saved; /* the portion of the input message that we didn't consume yet */
8 ulong64 s[25];
19 ulong64 length, state[8];
27 ulong64 length;
35 ulong64 length;
43 ulong64 length;
51 ulong64 length;
59 ulong64 state[3], length;
74 ulong64 length;
82 ulong64 length;
[all …]
H A Dtomcrypt_cfg.h209 typedef unsigned __int64 ulong64; typedef
213 typedef unsigned long long ulong64; typedef
260 typedef ulong64 __attribute__((__may_alias__)) LTC_FAST_TYPE;
H A Dtomcrypt_prng.h38 ulong64 wd;
39 ulong64 reset_cnt; /* number of times we have reseeded */
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
H A Dpoly1305.c21 ulong64 d0,d1,d2,d3,d4; in s_poly1305_block()
50 …d0 = ((ulong64)h0 * r0) + ((ulong64)h1 * s4) + ((ulong64)h2 * s3) + ((ulong64)h3 * s2) + ((ulong64 in s_poly1305_block()
51 …d1 = ((ulong64)h0 * r1) + ((ulong64)h1 * r0) + ((ulong64)h2 * s4) + ((ulong64)h3 * s3) + ((ulong64 in s_poly1305_block()
52 …d2 = ((ulong64)h0 * r2) + ((ulong64)h1 * r1) + ((ulong64)h2 * r0) + ((ulong64)h3 * s4) + ((ulong64 in s_poly1305_block()
53 …d3 = ((ulong64)h0 * r3) + ((ulong64)h1 * r2) + ((ulong64)h2 * r1) + ((ulong64)h3 * r0) + ((ulong64 in s_poly1305_block()
54 …d4 = ((ulong64)h0 * r4) + ((ulong64)h1 * r3) + ((ulong64)h2 * r2) + ((ulong64)h3 * r1) + ((ulong64 in s_poly1305_block()
169 ulong64 f; in poly1305_done()
228 f = (ulong64)h0 + st->pad[0] ; h0 = (ulong32)f; in poly1305_done()
229 f = (ulong64)h1 + st->pad[1] + (f >> 32); h1 = (ulong32)f; in poly1305_done()
230 f = (ulong64)h2 + st->pad[2] + (f >> 32); h2 = (ulong32)f; in poly1305_done()
[all …]
/optee_os/core/lib/libtomcrypt/src/hashes/
H A Dsha3.c134 static const ulong64 s_keccakf_rndc[24] = {
157 static void s_keccakf(ulong64 s[25]) in s_keccakf()
160 ulong64 t, bc[5]; in s_keccakf()
195 static LTC_INLINE int ss_done(hash_state *md, unsigned char *hash, ulong64 pad) in ss_done()
221 md->sha3.capacity_words = 2 * 224 / (8 * sizeof(ulong64)); in sha3_224_init()
229 md->sha3.capacity_words = 2 * 256 / (8 * sizeof(ulong64)); in sha3_256_init()
237 md->sha3.capacity_words = 2 * 384 / (8 * sizeof(ulong64)); in sha3_384_init()
245 md->sha3.capacity_words = 2 * 512 / (8 * sizeof(ulong64)); in sha3_512_init()
255 md->sha3.capacity_words = (unsigned short)(2 * num / (8 * sizeof(ulong64))); in sha3_shake_init()
274 while (inlen--) md->sha3.saved |= (ulong64) (*(in++)) << ((md->sha3.byte_index++) * 8); in sha3_process()
[all …]
H A Dtiger.c54 static const ulong64 table[4*256] = {
569 LTC_INLINE static void tiger_round(ulong64 *a, ulong64 *b, ulong64 *c, ulong64 x, int mul) in tiger_round()
571 ulong64 tmp; in tiger_round()
583 static void s_pass(ulong64 *a, ulong64 *b, ulong64 *c, const ulong64 *x, int mul) in s_pass()
596 static void s_key_schedule(ulong64 *x) in s_key_schedule()
622 ulong64 a, b, c, x[8], t; in ss_tiger_compress()
657 burn_stack(sizeof(ulong64) * 11 + sizeof(unsigned long)); in s_tiger_compress()
H A Dblake2b.c126 static const ulong64 blake2b_IV[8] =
163 static void s_blake2b_increment_counter(hash_state *md, ulong64 inc) in s_blake2b_increment_counter()
188 ulong64 tmp; in s_blake2b_init_param()
307 ulong64 m[16]; in ss_blake2b_compress()
308 ulong64 v[16]; in ss_blake2b_compress()
355 burn_stack(sizeof(ulong64) * 32 + sizeof(unsigned long)); in s_blake2b_compress()
/optee_os/core/lib/libtomcrypt/src/ciphers/
H A Dkhazad.c28 static const ulong64 T0[256] = {
95 static const ulong64 T1[256] = {
162 static const ulong64 T2[256] = {
229 static const ulong64 T3[256] = {
296 static const ulong64 T4[256] = {
363 static const ulong64 T5[256] = {
430 static const ulong64 T6[256] = {
497 static const ulong64 T7[256] = {
564 static const ulong64 c[R + 1] = {
587 const ulong64 *S; in khazad_setup()
[all …]
H A Dcamellia.c166 static const ulong64 key_sigma[] = {
175 static ulong64 F(ulong64 x) in F()
187 return ((ulong64)U) | (((ulong64)D) << CONST64(32)); in F()
206 ulong64 A, B; in camellia_setup()
435 ulong64 L, R; in camellia_ecb_encrypt()
455 L = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt()
462 R = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt()
477 L = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt()
484 R = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt()
501 L = (((ulong64)a) << 32) | b; in camellia_ecb_encrypt()
[all …]
/optee_os/core/lib/libtomcrypt/
H A Dsha3_accel.c81 md->sha3.capacity_words = 2 * 224 / (8 * sizeof(ulong64)); in sha3_224_init()
89 md->sha3.capacity_words = 2 * 256 / (8 * sizeof(ulong64)); in sha3_256_init()
97 md->sha3.capacity_words = 2 * 384 / (8 * sizeof(ulong64)); in sha3_384_init()
105 md->sha3.capacity_words = 2 * 512 / (8 * sizeof(ulong64)); in sha3_512_init()
114 md->sha3.capacity_words = (unsigned short)(2 * num / (8 * sizeof(ulong64))); in sha3_shake_init()
165 static void copy_out_digest(ulong64 *s, unsigned int digest_size, in copy_out_digest()
/optee_os/core/lib/libtomcrypt/src/misc/ssh/
H A Dssh_encode_sequence_multi.c30 ulong64 u64data; in ssh_encode_sequence_multi()
50 LTC_UNUSED_PARAM( va_arg(args, ulong64) ); in ssh_encode_sequence_multi()
109 u64data = va_arg(args, ulong64); in ssh_encode_sequence_multi()
/optee_os/core/lib/libtomcrypt/src/prngs/
H A Dfortuna.c82 static ulong64 s_fortuna_current_time(void) in s_fortuna_current_time()
84 ulong64 cur_time; in s_fortuna_current_time()
97 cur_time = (ulong64)(ts.tv_sec) * 1000000 + (ulong64)(ts.tv_nsec) / 1000; /* get microseconds */ in s_fortuna_current_time()
101 cur_time = (ulong64)(tv.tv_sec) * 1000000 + (ulong64)(tv.tv_usec); /* get microseconds */ in s_fortuna_current_time()
112 ulong64 reset_cnt; in s_fortuna_reseed()
116 ulong64 now = s_fortuna_current_time(); in s_fortuna_reseed()
/optee_os/core/lib/libtomcrypt/src/encauth/chachapoly/
H A Dchacha20poly1305_add_aad.c24 st->aadlen += (ulong64)inlen; in chacha20poly1305_add_aad()
H A Dchacha20poly1305_setiv_rfc7905.c16 …(chacha20poly1305_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 sequence_number) in chacha20poly1305_setiv_rfc7905()
H A Dchacha20poly1305_encrypt.c33 st->ctlen += (ulong64)inlen; in chacha20poly1305_encrypt()
H A Dchacha20poly1305_decrypt.c34 st->ctlen += (ulong64)inlen; in chacha20poly1305_decrypt()
/optee_os/core/lib/libtomcrypt/src/stream/chacha/
H A Dchacha_ivctr64.c21 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in chacha_ivctr64()
H A Dchacha_memory.c21 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in chacha_memory()
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
H A Dsalsa20_ivctr64.c22 int salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counte… in salsa20_ivctr64()
H A Dsalsa20_memory.c21 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in salsa20_memory()
/optee_os/core/lib/libtomcrypt/src/hashes/sha2/
H A Dsha512.c31 static const ulong64 K[80] = {
78 #define R(x, n) (((x)&CONST64(0xFFFFFFFFFFFFFFFF))>>((ulong64)n))
91 ulong64 S[8], W[80], t0, t1; in ss_sha512_compress()
157 burn_stack(sizeof(ulong64) * 90 + sizeof(int)); in s_sha512_compress()
/optee_os/core/lib/libtomcrypt/src/encauth/gcm/
H A Dgcm_process.c45 if (gcm->pttotlen / 8 + (ulong64)gcm->buflen + (ulong64)ptlen >= CONST64(0xFFFFFFFE0)) { in gcm_process()
/optee_os/core/lib/libtomcrypt/src/hashes/whirl/
H A Dwhirl.c55 ulong64 K[2][8], T[3][8]; in ss_whirlpool_compress()
110 burn_stack((5 * 8 * sizeof(ulong64)) + (2 * sizeof(int))); in s_whirlpool_compress()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/general/
H A Dder_encode_asn1_identifier.c20 ulong64 tmp; in der_encode_asn1_identifier()

12