/optee_os/out/arm/core/ |
A D | tee.symb_sizes | 149 000000000e136548 0000000000000200 t _deskey 590 000000000e135724 00000000000000a8 t modi 697 000000000e135b00 000000000000008c t lcm 712 000000000e14bf04 0000000000000088 t med3 1214 000000000e135628 0000000000000040 t neg 1256 000000000e135524 000000000000003c t mod 1368 000000000e135b8c 0000000000000030 t sub 1372 000000000e135980 0000000000000030 t mul 1381 000000000e135a8c 0000000000000030 t gcd 1404 000000000e135bf8 0000000000000030 t add [all …]
|
/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | multi2.c | 26 ulong32 t; in pi2() local 28 t = (ROL(t, 1) + t - 1) & 0xFFFFFFFFUL; in pi2() 29 t = (ROL(t, 4) ^ t) & 0xFFFFFFFFUL; in pi2() 30 p[0] ^= t; in pi2() 37 t = (ROL(t, 2) + t + 1) & 0xFFFFFFFFUL; in pi3() 38 t = (ROL(t, 8) ^ t) & 0xFFFFFFFFUL; in pi3() 39 t = (t + k[2]) & 0xFFFFFFFFUL; in pi3() 40 t = (ROL(t, 1) - t) & 0xFFFFFFFFUL; in pi3() 41 t = ROL(t, 16) ^ (p[0] | t); in pi3() 49 t = (ROL(t, 2) + t + 1) & 0xFFFFFFFFUL; in pi4() [all …]
|
A D | rc6.c | 127 ulong32 a,b,c,d,t,u; in _rc6_ecb_encrypt() local 140 t = (b * (b + b + 1)); t = ROLc(t, 5); \ in _rc6_ecb_encrypt() 142 a = ROL(a^t,u) + K[0]; \ in _rc6_ecb_encrypt() 143 c = ROL(c^u,t) + K[1]; K += 2; in _rc6_ecb_encrypt() 182 ulong32 a,b,c,d,t,u; in _rc6_ecb_decrypt() local 195 t = (b * (b + b + 1)); t = ROLc(t, 5); \ in _rc6_ecb_decrypt() 197 c = ROR(c - K[1], t) ^ u; \ in _rc6_ecb_decrypt() 198 a = ROR(a - K[0], u) ^ t; K -= 2; in _rc6_ecb_decrypt()
|
/optee_os/core/lib/libtomcrypt/src/misc/base32/ |
A D | base32_decode.c | 30 ulong64 t = 0; in base32_decode() local 97 t = (t<<5) | map[c-'0']; in base32_decode() 99 *out++ = (unsigned char)((t>>32) & 255); in base32_decode() 100 *out++ = (unsigned char)((t>>24) & 255); in base32_decode() 101 *out++ = (unsigned char)((t>>16) & 255); in base32_decode() 102 *out++ = (unsigned char)((t>> 8) & 255); in base32_decode() 103 *out++ = (unsigned char)( t & 255); in base32_decode() 105 t = 0; in base32_decode() 109 t = t << (5 * (8 - y)); in base32_decode() 110 if (y >= 2) *out++ = (unsigned char)((t>>32) & 255); in base32_decode() [all …]
|
/optee_os/core/lib/libtomcrypt/src/stream/sober128/ |
A D | sober128_stream.c | 31 ulong32 t; in BYTE2WORD() local 33 return t; in BYTE2WORD() 38 ulong32 t; in XORWORD() local 40 t ^= w; in XORWORD() 56 ulong32 t; in cycle() local 60 t = R[0]; in cycle() 72 t ^= Sbox[(t >> 24) & 0xFF]; \ 73 t = RORc(t, 8); \ 75 t ^= Sbox[(t >> 24) & 0xFF]; \ 76 t = t + st->R[OFF(z,13)]; \ [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/object_identifier/ |
A D | der_decode_object_identifier.c | 29 unsigned long x, y, t, len; in der_decode_object_identifier() local 66 t = 0; in der_decode_object_identifier() 68 t = (t << 7) | (in[x] & 0x7F); in der_decode_object_identifier() 75 if (t <= 79) { in der_decode_object_identifier() 76 words[0] = t / 40; in der_decode_object_identifier() 77 words[1] = t % 40; in der_decode_object_identifier() 80 words[1] = t - 80; in der_decode_object_identifier() 84 words[y++] = t; in der_decode_object_identifier() 87 t = 0; in der_decode_object_identifier()
|
A D | der_encode_object_identifier.c | 29 unsigned long i, x, y, z, t, mask, wordbuf; in der_encode_object_identifier() local 49 t = der_object_identifier_bits(wordbuf); in der_encode_object_identifier() 50 z += t/7 + ((t%7) ? 1 : 0) + (wordbuf == 0 ? 1 : 0); in der_encode_object_identifier() 69 t = wordbuf & 0xFFFFFFFF; in der_encode_object_identifier() 70 if (t) { in der_encode_object_identifier() 73 while (t) { in der_encode_object_identifier() 74 out[x++] = (unsigned char)((t & 0x7F) | mask); in der_encode_object_identifier() 75 t >>= 7; in der_encode_object_identifier() 81 t = out[y]; out[y] = out[z]; out[z] = (unsigned char)t; in der_encode_object_identifier()
|
A D | der_length_object_identifier.c | 41 unsigned long y, z, t, wordbuf; in der_length_object_identifier() local 61 t = der_object_identifier_bits(wordbuf); in der_length_object_identifier() 62 z += t/7 + ((t%7) ? 1 : 0) + (wordbuf == 0 ? 1 : 0); in der_length_object_identifier()
|
/optee_os/core/lib/libtomcrypt/src/misc/base64/ |
A D | base64_decode.c | 89 unsigned long t, x, y, z; in _base64_decode_internal() local 98 for (x = y = z = t = 0; x < inlen; x++) { in _base64_decode_internal() 124 t = (t<<6)|c; in _base64_decode_internal() 128 out[z++] = (unsigned char)((t>>16)&255); in _base64_decode_internal() 129 out[z++] = (unsigned char)((t>>8)&255); in _base64_decode_internal() 130 out[z++] = (unsigned char)(t&255); in _base64_decode_internal() 131 y = t = 0; in _base64_decode_internal() 138 t = t << (6 * (4 - y)); in _base64_decode_internal() 140 if (y >= 2) out[z++] = (unsigned char) ((t >> 16) & 255); in _base64_decode_internal() 141 if (y == 3) out[z++] = (unsigned char) ((t >> 8) & 255); in _base64_decode_internal()
|
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
A D | tweetnacl.c | 71 p[i]^=t; in sel25519() 72 q[i]^=t; in sel25519() 79 gf m,t; in pack25519() local 81 car25519(t); in pack25519() 82 car25519(t); in pack25519() 140 FOR(i,15) t[i]+=38*t[i+16]; in M() 432 M(t,t,den); in unpackneg() 434 pow2523(t,t); in unpackneg() 435 M(t,t,num); in unpackneg() 436 M(t,t,den); in unpackneg() [all …]
|
/optee_os/core/lib/libtomcrypt/src/misc/padding/ |
A D | padding_pad.c | 24 unsigned char pad, block_length, r, t; in _padding_padded_length() local 35 t = 0; in _padding_padded_length() 42 t = 1; in _padding_padded_length() 47 if (rng_get_bytes(&t, sizeof(t), NULL) != sizeof(t)) { in _padding_padded_length() 50 t %= (256 / block_length); in _padding_padded_length() 51 } while (t == 0); in _padding_padded_length() 58 t = 1; in _padding_padded_length() 64 pad = (t * block_length) - r; in _padding_padded_length()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | aes.c | 874 } t; in mbedtls_internal_aes_encrypt() local 876 GET_UINT32_LE( t.X[0], input, 0 ); t.X[0] ^= *RK++; in mbedtls_internal_aes_encrypt() 883 AES_FROUND( t.Y[0], t.Y[1], t.Y[2], t.Y[3], t.X[0], t.X[1], t.X[2], t.X[3] ); in mbedtls_internal_aes_encrypt() 884 AES_FROUND( t.X[0], t.X[1], t.X[2], t.X[3], t.Y[0], t.Y[1], t.Y[2], t.Y[3] ); in mbedtls_internal_aes_encrypt() 887 AES_FROUND( t.Y[0], t.Y[1], t.Y[2], t.Y[3], t.X[0], t.X[1], t.X[2], t.X[3] ); in mbedtls_internal_aes_encrypt() 918 mbedtls_platform_zeroize( &t, sizeof( t ) ); in mbedtls_internal_aes_encrypt() 947 } t; in mbedtls_internal_aes_decrypt() local 956 AES_RROUND( t.Y[0], t.Y[1], t.Y[2], t.Y[3], t.X[0], t.X[1], t.X[2], t.X[3] ); in mbedtls_internal_aes_decrypt() 957 AES_RROUND( t.X[0], t.X[1], t.X[2], t.X[3], t.Y[0], t.Y[1], t.Y[2], t.Y[3] ); in mbedtls_internal_aes_decrypt() 960 AES_RROUND( t.Y[0], t.Y[1], t.Y[2], t.Y[3], t.X[0], t.X[1], t.X[2], t.X[3] ); in mbedtls_internal_aes_decrypt() [all …]
|
A D | md2.c | 120 unsigned char t = 0; in mbedtls_internal_md2_process() local 134 ( ctx->state[j] ^ PI_SUBST[t] ); in mbedtls_internal_md2_process() 135 t = ctx->state[j]; in mbedtls_internal_md2_process() 138 t = (unsigned char)( t + i ); in mbedtls_internal_md2_process() 141 t = ctx->cksum[15]; in mbedtls_internal_md2_process() 146 ( ctx->cksum[i] ^ PI_SUBST[ctx->buffer[i] ^ t] ); in mbedtls_internal_md2_process() 147 t = ctx->cksum[i]; in mbedtls_internal_md2_process() 151 mbedtls_platform_zeroize( &t, sizeof( t ) ); in mbedtls_internal_md2_process()
|
A D | hkdf.c | 90 unsigned char t[MBEDTLS_MD_MAX_SIZE]; in mbedtls_hkdf_expand() local 133 memset( t, 0, hash_len ); in mbedtls_hkdf_expand() 150 ret = mbedtls_md_hmac_update( &ctx, t, t_len ); in mbedtls_hkdf_expand() 170 ret = mbedtls_md_hmac_finish( &ctx, t ); in mbedtls_hkdf_expand() 177 memcpy( okm + where, t, num_to_copy ); in mbedtls_hkdf_expand() 184 mbedtls_platform_zeroize( t, sizeof( t ) ); in mbedtls_hkdf_expand()
|
A D | ssl_cookie.c | 156 unsigned long t; in mbedtls_ssl_cookie_write() local 164 t = (unsigned long) mbedtls_time( NULL ); in mbedtls_ssl_cookie_write() 166 t = ctx->serial++; in mbedtls_ssl_cookie_write() 169 (*p)[0] = (unsigned char)( t >> 24 ); in mbedtls_ssl_cookie_write() 170 (*p)[1] = (unsigned char)( t >> 16 ); in mbedtls_ssl_cookie_write() 171 (*p)[2] = (unsigned char)( t >> 8 ); in mbedtls_ssl_cookie_write() 172 (*p)[3] = (unsigned char)( t ); in mbedtls_ssl_cookie_write()
|
/optee_os/core/tee/ |
A D | tee_time_generic.c | 70 TEE_Time t; in tee_time_get_ta_time() local 77 res = tee_time_get_sys_time(&t); in tee_time_get_ta_time() 82 TEE_TIME_ADD(t, *offs, t2); in tee_time_get_ta_time() 85 if (TEE_TIME_LT(t2, t)) in tee_time_get_ta_time() 88 TEE_TIME_SUB(t, *offs, t2); in tee_time_get_ta_time() 91 if (TEE_TIME_LE(t, t2)) in tee_time_get_ta_time() 103 TEE_Time t; in tee_time_set_ta_time() local 109 res = tee_time_get_sys_time(&t); in tee_time_set_ta_time() 113 if (TEE_TIME_LT(t, *time)) { in tee_time_set_ta_time() 114 TEE_TIME_SUB(*time, t, offs); in tee_time_set_ta_time() [all …]
|
A D | tee_cryp_utl.c | 176 TEE_Time t; in plat_rng_init() local 189 res = tee_time_get_sys_time(&t); in plat_rng_init() 192 memset(&t, 0, sizeof(t)); in plat_rng_init() 195 res = crypto_rng_init(&t, sizeof(t)); in plat_rng_init()
|
/optee_os/core/lib/libtomcrypt/src/hashes/ |
A D | md5.c | 45 #define FF(a,b,c,d,M,s,t) \ argument 48 #define GG(a,b,c,d,M,s,t) \ argument 51 #define HH(a,b,c,d,M,s,t) \ argument 54 #define II(a,b,c,d,M,s,t) \ argument 84 #define FF(a,b,c,d,M,s,t) \ argument 87 #define GG(a,b,c,d,M,s,t) \ argument 107 ulong32 t; in _md5_compress() local 124 t = d; d = c; c = b; b = a; a = t; in _md5_compress() 129 t = d; d = c; c = b; b = a; a = t; in _md5_compress() 134 t = d; d = c; c = b; b = a; a = t; in _md5_compress() [all …]
|
/optee_os/lib/libmbedtls/core/ |
A D | sm2-pke.c | 122 uint8_t *t = NULL; in sm2_mbedtls_pke_decrypt() local 195 t = calloc(1, C2_len); in sm2_mbedtls_pke_decrypt() 196 if (!t) { in sm2_mbedtls_pke_decrypt() 205 if (is_zero(t, C2_len)) { in sm2_mbedtls_pke_decrypt() 214 dst[i] = src[C1_len + i] ^ t[i]; in sm2_mbedtls_pke_decrypt() 259 free(t); in sm2_mbedtls_pke_decrypt() 312 uint8_t *t = NULL; in sm2_mbedtls_pke_encrypt() local 383 t = calloc(1, src_len); in sm2_mbedtls_pke_encrypt() 384 if (!t) { in sm2_mbedtls_pke_encrypt() 393 if (is_zero(t, src_len)) { in sm2_mbedtls_pke_encrypt() [all …]
|
/optee_os/core/lib/libtomcrypt/src/modes/xts/ |
A D | xts_mult_x.c | 24 unsigned char t, tt; in xts_mult_x() local 26 for (x = t = 0; x < 16; x++) { in xts_mult_x() 28 I[x] = ((I[x] << 1) | t) & 0xFF; in xts_mult_x() 29 t = tt; in xts_mult_x()
|
/optee_os/core/lib/libtomcrypt/src/ciphers/safer/ |
A D | saferp.c | 227 unsigned char t[33]; in saferp_setup() local 249 t[x] = key[x]; in saferp_setup() 252 t[16] = y; in saferp_setup() 263 t[y] = ((t[y]<<3)|(t[y]>>5)) & 255; in saferp_setup() 277 t[x] = key[x]; in saferp_setup() 280 t[24] = y; in saferp_setup() 290 t[y] = ((t[y]<<3)|(t[y]>>5)) & 255; in saferp_setup() 304 t[x] = key[x]; in saferp_setup() 307 t[32] = y; in saferp_setup() 317 t[y] = ((t[y]<<3)|(t[y]>>5)) & 255; in saferp_setup() [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/ia5/ |
A D | der_decode_ia5_string.c | 32 int t, err; in der_decode_ia5_string() local 68 t = der_ia5_value_decode(in[x++]); in der_decode_ia5_string() 69 if (t == -1) { in der_decode_ia5_string() 72 out[y] = t; in der_decode_ia5_string()
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/printable_string/ |
A D | der_decode_printable_string.c | 32 int t, err; in der_decode_printable_string() local 68 t = der_printable_value_decode(in[x++]); in der_decode_printable_string() 69 if (t == -1) { in der_decode_printable_string() 72 out[y] = t; in der_decode_printable_string()
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/teletex_string/ |
A D | der_decode_teletex_string.c | 31 int t, err; in der_decode_teletex_string() local 67 t = der_teletex_value_decode(in[x++]); in der_decode_teletex_string() 68 if (t == -1) { in der_decode_teletex_string() 71 out[y] = t; in der_decode_teletex_string()
|
/optee_os/core/lib/libtomcrypt/ |
A D | sm2-pke.c | 122 uint8_t *t = NULL; in sm2_ltc_pke_decrypt() local 227 t = calloc(1, C2_len); in sm2_ltc_pke_decrypt() 228 if (!t) { in sm2_ltc_pke_decrypt() 237 if (is_zero(t, C2_len)) { in sm2_ltc_pke_decrypt() 246 dst[i] = src[C1_len + i] ^ t[i]; in sm2_ltc_pke_decrypt() 291 free(t); in sm2_ltc_pke_decrypt() 340 uint8_t *t = NULL; in sm2_ltc_pke_encrypt() local 445 t = calloc(1, src_len); in sm2_ltc_pke_encrypt() 446 if (!t) { in sm2_ltc_pke_encrypt() 455 if (is_zero(t, src_len)) { in sm2_ltc_pke_encrypt() [all …]
|