Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 45) sorted by relevance

12

/optee_os/out/arm/core/
A Dtee.symb_sizes12 000000000e12c8b4 0000000000000e50 T inflate
57 000000000e14bf8c 00000000000003bc T qsort
68 000000000e11c110 0000000000000358 T vm_remap
83 000000000e12db44 00000000000002ec T adler32_z
90 000000000e14af74 00000000000002c8 T bget
97 000000000e14b2c4 0000000000000290 T brel
207 000000000e100000 0000000000000190 T _start
504 000000000e14b604 00000000000000c8 T bpool
575 000000000e14b554 00000000000000b0 T bgetr
725 000000000e14b23c 0000000000000088 T bgetz
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/
A Dcamellia.c234 T[x + 16] = 0; in camellia_setup()
250 kL[x] = T[x]; in camellia_setup()
251 kR[x] = T[x + 16]; in camellia_setup()
255 T[x] = T[x - 32] ^ T[x - 16]; in camellia_setup()
259 LOAD64H(A, T+32); LOAD64H(B, T+40); in camellia_setup()
262 STORE64H(A, T+32); STORE64H(B, T+40); in camellia_setup()
268 LOAD64H(A, T+32); LOAD64H(B, T+40); in camellia_setup()
271 STORE64H(A, T+32); STORE64H(B, T+40); in camellia_setup()
289 rot_128(kL, 15, T+32); in camellia_setup()
345 LOAD64H(A, T+32); LOAD64H(B, T+40); in camellia_setup()
[all …]
A Dkseed.c189 T = G( G(T2 + (R1 ^ K1)) + T2); \
190 L2 ^= T; \
191 L1 ^= (T + G(T2 + (R1 ^ K1))); \
242 ulong32 T, T2; in rounds() local
/optee_os/lib/libmbedtls/mbedtls/library/
A Ddes.c257 T = (((X) >> 4) ^ (Y)) & 0x0F0F0F0F; (Y) ^= T; (X) ^= (T << 4); \
258 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
259 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
260 T = (((Y) >> 8) ^ (X)) & 0x00FF00FF; (X) ^= T; (Y) ^= (T << 8); \
262 T = ((X) ^ (Y)) & 0xAAAAAAAA; (Y) ^= T; (X) ^= T; \
273 T = ((X) ^ (Y)) & 0xAAAAAAAA; (X) ^= T; (Y) ^= T; \
275 T = (((Y) >> 8) ^ (X)) & 0x00FF00FF; (X) ^= T; (Y) ^= (T << 8); \
276 T = (((Y) >> 2) ^ (X)) & 0x33333333; (X) ^= T; (Y) ^= (T << 2); \
277 T = (((X) >> 16) ^ (Y)) & 0x0000FFFF; (Y) ^= T; (X) ^= (T << 16); \
432 T = ((Y >> 4) ^ X) & 0x0F0F0F0F; X ^= T; Y ^= (T << 4); in mbedtls_des_setkey()
[all …]
A Dpkwrite.c77 mbedtls_mpi T; in pk_write_rsa_pubkey() local
79 mbedtls_mpi_init( &T ); in pk_write_rsa_pubkey()
83 ( ret = mbedtls_asn1_write_mpi( p, start, &T ) ) < 0 ) in pk_write_rsa_pubkey()
89 ( ret = mbedtls_asn1_write_mpi( p, start, &T ) ) < 0 ) in pk_write_rsa_pubkey()
95 mbedtls_mpi_free( &T ); in pk_write_rsa_pubkey()
336 mbedtls_mpi_init( &T ); in mbedtls_pk_write_key_der()
340 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
346 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
364 if ( ( ret = mbedtls_rsa_export( rsa, NULL, &T, in mbedtls_pk_write_key_der()
385 if ( ( ret = mbedtls_rsa_export( rsa, &T, NULL, in mbedtls_pk_write_key_der()
[all …]
A Decp.c326 ctx->T = NULL; in ecp_restart_rsm_init()
707 grp->T = NULL; in mbedtls_ecp_group_init()
1957 MBEDTLS_MPI_CHK( ecp_add_mixed( grp, &T[i + j], &T[j], &T[i] ) ); in ecp_precompute_comb()
2330 T = grp->T; in ecp_mul_comb()
2339 T = rs_ctx->rsm->T; in ecp_mul_comb()
2372 grp->T = T; in ecp_mul_comb()
2389 if( T == grp->T ) in ecp_mul_comb()
2390 T = NULL; in ecp_mul_comb()
2398 rs_ctx->rsm->T = T; in ecp_mul_comb()
2399 T = NULL; in ecp_mul_comb()
[all …]
A Drsa_internal.c73 mbedtls_mpi T; /* Holds largest odd divisor of DE - 1 */ in mbedtls_rsa_deduce_primes() local
105 mbedtls_mpi_init( &T ); in mbedtls_rsa_deduce_primes()
108 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T, D, E ) ); in mbedtls_rsa_deduce_primes()
109 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_int( &T, &T, 1 ) ); in mbedtls_rsa_deduce_primes()
111 if( ( order = (uint16_t) mbedtls_mpi_lsb( &T ) ) == 0 ) in mbedtls_rsa_deduce_primes()
118 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &T, order ) ); in mbedtls_rsa_deduce_primes()
140 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &K, &K, &T, N, in mbedtls_rsa_deduce_primes()
189 mbedtls_mpi_free( &T ); in mbedtls_rsa_deduce_primes()
A Dpkparse.c712 mbedtls_mpi T; in pk_parse_key_pkcs1_der() local
713 mbedtls_mpi_init( &T ); in pk_parse_key_pkcs1_der()
754 ( ret = mbedtls_rsa_import( rsa, &T, NULL, NULL, in pk_parse_key_pkcs1_der()
761 NULL, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
767 &T, NULL ) ) != 0 ) in pk_parse_key_pkcs1_der()
772 ( ret = mbedtls_rsa_import( rsa, NULL, &T, NULL, in pk_parse_key_pkcs1_der()
778 ( ret = mbedtls_rsa_import( rsa, NULL, NULL, &T, in pk_parse_key_pkcs1_der()
796 ( ret = mbedtls_mpi_copy( &rsa->DP, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
801 ( ret = mbedtls_mpi_copy( &rsa->DQ, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
806 ( ret = mbedtls_mpi_copy( &rsa->QP, &T ) ) != 0 ) in pk_parse_key_pkcs1_der()
[all …]
A Dbignum.c309 mbedtls_mpi T; in mbedtls_mpi_swap() local
626 mbedtls_mpi T; in mbedtls_mpi_read_string() local
682 mbedtls_mpi_free( &T ); in mbedtls_mpi_read_string()
735 mbedtls_mpi T; in mbedtls_mpi_write_string() local
797 if( T.s == -1 ) in mbedtls_mpi_write_string()
798 T.s = 1; in mbedtls_mpi_write_string()
808 mbedtls_mpi_free( &T ); in mbedtls_mpi_write_string()
1428 const mbedtls_mpi *T = A; A = X; B = T; in mbedtls_mpi_add_abs() local
2224 memset( T->p, 0, T->n * ciL ); in mpi_montmul()
2226 d = T->p; in mpi_montmul()
[all …]
A Drsa.c737 mbedtls_mpi T; in mbedtls_rsa_public() local
745 mbedtls_mpi_init( &T ); in mbedtls_rsa_public()
761 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &T, &T, &ctx->E, &ctx->N, &ctx->RN ) ); in mbedtls_rsa_public()
770 mbedtls_mpi_free( &T ); in mbedtls_rsa_public()
877 mbedtls_mpi T; in mbedtls_rsa_private() local
924 mbedtls_mpi_init( &T ); in mbedtls_rsa_private()
965 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T, &T, &ctx->Vi ) ); in mbedtls_rsa_private()
966 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &T, &T, &ctx->N ) ); in mbedtls_rsa_private()
1011 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &T, &T, D, &ctx->N, &ctx->RN ) ); in mbedtls_rsa_private()
1043 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T, &T, &ctx->Vf ) ); in mbedtls_rsa_private()
[all …]
/optee_os/core/lib/libtomcrypt/src/modes/xts/
A Dxts_decrypt.c30 P[x] = C[x] ^ T[x]; in _tweak_uncrypt()
38 *(LTC_FAST_TYPE_PTR_CAST(&P[x])) ^= *(LTC_FAST_TYPE_PTR_CAST(&T[x])); in _tweak_uncrypt()
42 P[x] = P[x] ^ T[x]; in _tweak_uncrypt()
47 xts_mult_x(T); in _tweak_uncrypt()
63 unsigned char PP[16], CC[16], T[16]; in xts_decrypt() local
104 XMEMCPY(T, tweak, sizeof(T)); in xts_decrypt()
107 if ((err = cipher_descriptor[xts->cipher]->ecb_encrypt(tweak, T, &xts->key2)) != CRYPT_OK) { in xts_decrypt()
112 if ((err = _tweak_uncrypt(ct, pt, T, xts)) != CRYPT_OK) { in xts_decrypt()
122 XMEMCPY(CC, T, 16); in xts_decrypt()
140 if ((err = _tweak_uncrypt(CC, pt, T, xts)) != CRYPT_OK) { in xts_decrypt()
[all …]
A Dxts_encrypt.c30 C[x] = P[x] ^ T[x]; in _tweak_crypt()
40 *(LTC_FAST_TYPE_PTR_CAST(&C[x])) ^= *(LTC_FAST_TYPE_PTR_CAST(&T[x])); in _tweak_crypt()
44 C[x] = C[x] ^ T[x]; in _tweak_crypt()
49 xts_mult_x(T); in _tweak_crypt()
65 unsigned char PP[16], CC[16], T[16]; in xts_encrypt() local
106 XMEMCPY(T, tweak, sizeof(T)); in xts_encrypt()
110 if ((err = cipher_descriptor[xts->cipher]->ecb_encrypt(tweak, T, &xts->key2)) != CRYPT_OK) { in xts_encrypt()
115 if ((err = _tweak_crypt(pt, ct, T, xts)) != CRYPT_OK) { in xts_encrypt()
126 if ((err = _tweak_crypt(pt, CC, T, xts)) != CRYPT_OK) { in xts_encrypt()
141 if ((err = _tweak_crypt(PP, ct, T, xts)) != CRYPT_OK) { in xts_encrypt()
[all …]
A Dxts_test.c202 unsigned char OUT[512], Torg[16], T[16]; in xts_test()
246 XMEMCPY(T, Torg, sizeof(T)); in xts_test()
248 err = xts_encrypt(tests[i].PTX, tests[i].PTLEN, OUT, T, &xts); in xts_test()
254 err = xts_encrypt(tests[i].PTX, len, OUT, T, &xts); in xts_test()
259 err = xts_encrypt(&tests[i].PTX[len], len, &OUT[len], T, &xts); in xts_test()
271 XMEMCPY(T, Torg, sizeof(T)); in xts_test()
273 err = xts_decrypt(tests[i].CTX, tests[i].PTLEN, OUT, T, &xts); in xts_test()
279 err = xts_decrypt(tests[i].CTX, len, OUT, T, &xts); in xts_test()
284 err = xts_decrypt(&tests[i].CTX[len], len, &OUT[len], T, &xts); in xts_test()
/optee_os/core/lib/libtomcrypt/src/encauth/gcm/
A Dgcm_test.c38 unsigned char T[16]; in gcm_test()
328 unsigned char out[2][128], T[2][16]; in gcm_test()
341 y = sizeof(T[0]); in gcm_test()
345 if ((err = gcm_done(&gcm, T[0], &y)) != CRYPT_OK) return err; in gcm_test()
346 …if (compare_testvector(T[0], y, tests[0].T, 16, "GCM Encrypt Tag-special", 0)) return CRYPT_F… in gcm_test()
349 y = sizeof(T[0]); in gcm_test()
354 out[0], T[0], &y, GCM_ENCRYPT)) != CRYPT_OK) { in gcm_test()
362 if (compare_testvector(T[0], y, tests[x].T, 16, "GCM Encrypt Tag", x)) { in gcm_test()
366 y = sizeof(T[1]); in gcm_test()
367 XMEMCPY(T[1], tests[x].T, 16); in gcm_test()
[all …]
A Dgcm_mult_h.c25 unsigned char T[16]; in gcm_mult_h() local
33 asm("movdqa %%xmm0,(%0)"::"r"(&T)); in gcm_mult_h()
36 XMEMCPY(T, &gcm->PC[0][I[0]][0], 16); in gcm_mult_h()
40 *(LTC_FAST_TYPE_PTR_CAST(T + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&gcm->PC[x][I[x]][y])); in gcm_mult_h()
44 T[y] ^= gcm->PC[x][I[x]][y]; in gcm_mult_h()
50 gcm_gf_mult(gcm->H, I, T); in gcm_mult_h()
52 XMEMCPY(I, T, 16); in gcm_mult_h()
/optee_os/core/lib/libtomcrypt/src/misc/hkdf/
A Dhkdf.c47 unsigned char *T, *dat; in hkdf_expand() local
68 if (T == NULL) { in hkdf_expand()
72 XMEMCPY(T + hashsize, info, infolen); in hkdf_expand()
76 dat = T + hashsize; in hkdf_expand()
83 T[Tlen - 1] = ++N; in hkdf_expand()
86 zeromem(T, Tlen); in hkdf_expand()
87 XFREE(T); in hkdf_expand()
97 XMEMCPY(T, out + hashsize * (N-1), hashsize); in hkdf_expand()
99 dat = T; in hkdf_expand()
103 zeromem(T, Tlen); in hkdf_expand()
[all …]
/optee_os/core/lib/libtomcrypt/src/hashes/whirl/
A Dwhirl.c62 ulong64 K[2][8], T[3][8]; in _whirlpool_compress() local
69 LOAD64H(T[0][x], buf + (8 * x)); in _whirlpool_compress()
70 T[2][x] = T[0][x]; in _whirlpool_compress()
71 T[0][x] ^= K[0][x]; in _whirlpool_compress()
86 T[1][y] = theta_pi_gamma(T[0], y) ^ K[1][y]; in _whirlpool_compress()
99 T[0][y] = theta_pi_gamma(T[1], y) ^ K[0][y]; in _whirlpool_compress()
105 md->whirlpool.state[x] ^= T[0][x] ^ T[2][x]; in _whirlpool_compress()
/optee_os/core/lib/libtomcrypt/src/mac/f9/
A Df9_test.c29 unsigned char K[16], M[128], T[4]; in f9_test()
49 unsigned char T[16]; in f9_test()
60 … if ((err = f9_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK) { in f9_test()
63 if (compare_testvector(T, taglen, tests[x].T, 4, "F9", x)) { in f9_test()
/optee_os/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_test.c29 unsigned char K[16], M[34], T[16]; in xcbc_test()
97 unsigned char T[16]; in xcbc_test()
110 …if ((err = xcbc_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK)… in xcbc_test()
113 if (compare_testvector(T, taglen, tests[x].T, 16, "XCBC", x)) { in xcbc_test()
/optee_os/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_test.c203 const unsigned char T[] = { 0xD0,0xC5,0x15,0xF4,0xD1,0xCD,0xD4,0xFD, in ocb3_test()
263 if (compare_testvector(outtag, len, T, sizeof(T), "OCB3 Tag", x) || in ocb3_test()
273 outct, T, sizeof(T), &res)) != CRYPT_OK) { in ocb3_test()
292 …if (compare_testvector(outtag, len, T, sizeof(T), "OCB3 Tag.enc", x)) return CRYPT_FAIL_T… in ocb3_test()
300 …if (compare_testvector(outtag, len, T, sizeof(T), "OCB3 Tag.dec", x)) return CRYPT_FAIL_T… in ocb3_test()
/optee_os/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_setiv.c30 unsigned char T[16]; in lrw_setiv() local
54 XMEMCPY(T, &lrw->PC[0][IV[0]][0], 16); in lrw_setiv()
58 *(LTC_FAST_TYPE_PTR_CAST(T + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&lrw->PC[x][IV[x]][y])); in lrw_setiv()
62 T[y] ^= lrw->PC[x][IV[x]][y]; in lrw_setiv()
66 XMEMCPY(lrw->pad, T, 16); in lrw_setiv()
/optee_os/core/lib/libtomcrypt/src/hashes/chc/
A Dchc.c133 unsigned char T[2][MAXBLOCKSIZE]; in chc_compress() local
144 XMEMCPY(T[1], buf, cipher_blocksize); in chc_compress()
145 cipher_descriptor[cipher_idx]->ecb_encrypt(buf, T[0], key); in chc_compress()
147 md->chc.state[x] ^= T[0][x] ^ T[1][x]; in chc_compress()
150 zeromem(T, sizeof(T)); in chc_compress()
/optee_os/core/lib/libtomcrypt/src/mac/pelican/
A Dpelican_test.c25 unsigned char K[32], MSG[64], T[16]; in pelican_test()
101 if (compare_testvector(out, 16, tests[x].T, 16, "PELICAN", x)) { in pelican_test()
/optee_os/core/lib/libtomcrypt/src/math/
A Dgmp_desc.c294 mpz_t t1, C, Q, S, Z, M, T, R, two; in sqrtmod_prime() local
311 mpz_init(T); mpz_init(R); mpz_init(two); in sqrtmod_prime()
358 mpz_powm(T, n, Q, prime); in sqrtmod_prime()
365 mpz_set(t1, T); in sqrtmod_prime()
389 mpz_mul(T, T, C); in sqrtmod_prime()
390 mpz_mod(T, T, prime); in sqrtmod_prime()
399 mpz_clear(T); mpz_clear(R); mpz_clear(two); in sqrtmod_prime()
/optee_os/core/crypto/
A Dsm3.c53 uint32_t T[64]; in sm3_process() local
58 T[j] = 0x79CC4519; in sm3_process()
60 T[j] = 0x7A879D8A; in sm3_process()
118 SS1 = ROTL(ROTL(A, 12) + E + ROTL(T[j], j), 7); in sm3_process()
133 SS1 = ROTL(ROTL(A, 12) + E + ROTL(T[j], j), 7); in sm3_process()

Completed in 86 milliseconds

12