/mbedtls-development/library/ |
A D | aes.c | 851 } t; in mbedtls_internal_aes_encrypt() local 853 t.X[0] = MBEDTLS_GET_UINT32_LE( input, 0 ); t.X[0] ^= *RK++; in mbedtls_internal_aes_encrypt() 860 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() 861 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() 864 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() 895 mbedtls_platform_zeroize( &t, sizeof( t ) ); in mbedtls_internal_aes_encrypt() 915 } t; in mbedtls_internal_aes_decrypt() local 924 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() 925 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() 928 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 | timing.c | 82 struct _hr_time *t = (struct _hr_time *) val; in mbedtls_timing_get_timer() local 86 QueryPerformanceCounter( &t->start ); in mbedtls_timing_get_timer() 95 delta = (unsigned long)( ( now.QuadPart - t->start.QuadPart ) * 1000ul in mbedtls_timing_get_timer() 105 struct _hr_time *t = (struct _hr_time *) val; in mbedtls_timing_get_timer() local 109 gettimeofday( &t->start, NULL ); in mbedtls_timing_get_timer() 117 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer() 118 + ( now.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
|
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 | nist_kw.c | 147 static void calc_a_xor_t( unsigned char A[KW_SEMIBLOCK_LENGTH], uint64_t t ) in calc_a_xor_t() argument 150 for( i = 0; i < sizeof( t ); i++ ) in calc_a_xor_t() 152 A[i] ^= ( t >> ( ( sizeof( t ) - 1 - i ) * 8 ) ) & 0xff; in calc_a_xor_t() 169 uint64_t t = 0; in mbedtls_nist_kw_wrap() local 260 for( t = 1; t <= s; t++ ) in mbedtls_nist_kw_wrap() 271 calc_a_xor_t( A, t ); in mbedtls_nist_kw_wrap() 310 uint64_t t = 0; in unwrap() local 326 for( t = s; t >= 1; t-- ) in unwrap() 328 calc_a_xor_t( A, t ); in unwrap()
|
A D | ssl_cache.c | 60 mbedtls_time_t t = mbedtls_time( NULL ); in ssl_cache_find_entry() local 68 (int) ( t - cur->timestamp ) > cache->timeout ) in ssl_cache_find_entry() 133 mbedtls_time_t t = mbedtls_time( NULL ), oldest = 0; in ssl_cache_pick_writing_slot() local 171 (int) ( t - cur->timestamp ) > cache->timeout ) in ssl_cache_pick_writing_slot() 230 cur->timestamp = t; in ssl_cache_pick_writing_slot()
|
A D | ssl_cookie.c | 155 unsigned long t; in mbedtls_ssl_cookie_write() local 163 t = (unsigned long) mbedtls_time( NULL ); in mbedtls_ssl_cookie_write() 165 t = ctx->serial++; in mbedtls_ssl_cookie_write() 168 MBEDTLS_PUT_UINT32_BE(t, *p, 0); in mbedtls_ssl_cookie_write()
|
A D | aria.c | 395 uint32_t t, u; in aria_rot128() local 401 t = ARIA_P3( b[j] ); // big endian in aria_rot128() 406 t <<= n1; // rotate in aria_rot128() 407 t |= u >> n2; in aria_rot128() 408 t = ARIA_P3( t ); // back to little endian in aria_rot128() 409 r[i] = a[i] ^ t; // store in aria_rot128() 410 t = u; // move to next word in aria_rot128() 498 uint32_t t = ctx->rk[i][k]; in mbedtls_aria_setkey_dec() local 500 ctx->rk[j][k] = t; in mbedtls_aria_setkey_dec()
|
A D | x509.c | 497 static int x509_date_is_valid(const mbedtls_x509_time *t ) in x509_date_is_valid() argument 502 CHECK_RANGE( 0, 9999, t->year ); in x509_date_is_valid() 503 CHECK_RANGE( 0, 23, t->hour ); in x509_date_is_valid() 504 CHECK_RANGE( 0, 59, t->min ); in x509_date_is_valid() 505 CHECK_RANGE( 0, 59, t->sec ); in x509_date_is_valid() 507 switch( t->mon ) in x509_date_is_valid() 516 if( ( !( t->year % 4 ) && t->year % 100 ) || in x509_date_is_valid() 517 !( t->year % 400 ) ) in x509_date_is_valid() 525 CHECK_RANGE( 1, month_len, t->day ); in x509_date_is_valid()
|
A D | x509write_crt.c | 294 const char *t, size_t size ) in x509_write_time() argument 302 if( t[0] == '2' && t[1] == '0' && t[2] < '5' ) in x509_write_time() 305 (const unsigned char *) t + 2, in x509_write_time() 314 (const unsigned char *) t, in x509_write_time()
|
A D | bignum.c | 1454 c = ( t < r[i] ) + z; d[i] = t - r[i]; in mpi_sub_hlp() 1701 t++; in mpi_mul_hlp() 1902 size_t i, n, t, k; in mbedtls_mpi_div_mpi() local 1949 t = Y.n - 1; in mbedtls_mpi_div_mpi() 1954 Z.p[n - t]++; in mbedtls_mpi_div_mpi() 1959 for( i = n; i > t ; i-- ) in mbedtls_mpi_div_mpi() 1973 Z.p[i - t - 1]++; in mbedtls_mpi_div_mpi() 1976 Z.p[i - t - 1]--; in mbedtls_mpi_div_mpi() 1979 T1.p[0] = ( t < 1 ) ? 0 : Y.p[t - 1]; in mbedtls_mpi_div_mpi() 1980 T1.p[1] = Y.p[t]; in mbedtls_mpi_div_mpi() [all …]
|
A D | sha256.c | 158 #define R(t) \ argument 160 local.W[t] = S1(local.W[(t) - 2]) + local.W[(t) - 7] + \ 161 S0(local.W[(t) - 15]) + local.W[(t) - 16] \
|
A D | camellia.c | 323 unsigned char t[64]; in mbedtls_camellia_setkey_enc() local 333 memset( t, 0, 64 ); in mbedtls_camellia_setkey_enc() 345 t[i] = key[i]; in mbedtls_camellia_setkey_enc() 349 t[24 + i] = ~t[16 + i]; in mbedtls_camellia_setkey_enc() 368 KC[i] = MBEDTLS_GET_UINT32_BE( t, i * 4 ); in mbedtls_camellia_setkey_enc()
|
A D | bn_mul.h | 190 : "=m" (t), "=m" (c), "=m" (d), "=m" (s) \ 191 : "m" (t), "m" (s), "m" (d), "m" (c), "m" (b) \ 202 : "=m" (t), "=m" (c), "=m" (d), "=m" (s) \ 203 : "m" (t), "m" (s), "m" (d), "m" (c), "m" (b) \
|
/mbedtls-development/3rdparty/everest/include/everest/kremlin/internal/ |
A D | target.h | 69 #define KRML_EABORT(t, msg) \ argument 71 KRML_HOST_EXIT(255), *((t *)KRML_HOST_MALLOC(sizeof(t))))
|
/mbedtls-development/3rdparty/everest/library/ |
A D | Hacl_Curve25519.c | 121 uint128_t t[5U]; in Hacl_Bignum_Fmul_fmul() local 125 t[_i] = (uint128_t)(uint64_t)0U; in Hacl_Bignum_Fmul_fmul() 137 Hacl_Bignum_Fproduct_carry_wide_(t); in Hacl_Bignum_Fmul_fmul() 138 b4 = t[4U]; in Hacl_Bignum_Fmul_fmul() 139 b0 = t[0U]; in Hacl_Bignum_Fmul_fmul() 142 t[4U] = b4_; in Hacl_Bignum_Fmul_fmul() 143 t[0U] = b0_; in Hacl_Bignum_Fmul_fmul() 220 uint128_t t[5U]; in Hacl_Bignum_Fsquare_fsquare_times() local 224 t[_i] = (uint128_t)(uint64_t)0U; in Hacl_Bignum_Fsquare_fsquare_times() 235 uint128_t t[5U]; in Hacl_Bignum_Fsquare_fsquare_times_inplace() local [all …]
|
/mbedtls-development/3rdparty/everest/library/legacy/ |
A D | Hacl_Curve25519.c | 133 FStar_UInt128_uint128 t[5U]; in Hacl_Bignum_Fmul_fmul() local 148 Hacl_Bignum_Fmul_mul_shift_reduce_(t, tmp, input2); in Hacl_Bignum_Fmul_fmul() 149 Hacl_Bignum_Fproduct_carry_wide_(t); in Hacl_Bignum_Fmul_fmul() 150 b4 = t[4U]; in Hacl_Bignum_Fmul_fmul() 151 b0 = t[0U]; in Hacl_Bignum_Fmul_fmul() 157 t[4U] = b4_; in Hacl_Bignum_Fmul_fmul() 158 t[0U] = b0_; in Hacl_Bignum_Fmul_fmul() 159 Hacl_Bignum_Fproduct_copy_from_wide_(output, t); in Hacl_Bignum_Fmul_fmul() 262 FStar_UInt128_uint128 t[5U]; in Hacl_Bignum_Fsquare_fsquare_times() local 269 Hacl_Bignum_Fsquare_fsquare_times_(output, t, count1); in Hacl_Bignum_Fsquare_fsquare_times() [all …]
|
/mbedtls-development/tests/scripts/ |
A D | translate_ciphers.py | 148 t = {"g": translate_gnutls, "o": translate_ossl}[mode] 149 return " ".join(t(c) for c in names)
|
A D | check-generated-files.sh | 121 # generate_visualc_files enumerates source files (library/*.c). It doesn't
|
/mbedtls-development/programs/ssl/ |
A D | CMakeLists.txt | 23 # process, so it doesn't complain that it doesn't exist yet. Starting from
|
/mbedtls-development/ |
A D | .pylintrc | 13 # We prefer docstrings, but we don't require them on all functions. 27 # Some functions don't need docstrings. 69 # Don't diplay statistics. Just the facts.
|
/mbedtls-development/tests/data_files/dir3/ |
A D | Readme | 1 This is just to make sure files that don't parse as certs are ignored.
|
/mbedtls-development/ChangeLog.d/ |
A D | do-not-use-obsolete-header.txt | 2 * Don't use the obsolete header path sys/fcntl.h in unit tests.
|
A D | 00README.md | 18 We generally don't include changelog entries for: 22 * Changes to parts of the code base that users don't interact with directly, 59 Use “Changes” for anything that doesn't fit in the other categories.
|
/mbedtls-development/tests/data_files/ |
A D | cert_sha224.crt | 16 jq55z+CANkragMk6XQ/t+iXkh/Fq00FS+zbf1JLaMXOLst5dfv3uPQaJHwzX/EaE
|
/mbedtls-development/docs/ |
A D | 3.0-migration-guide.md | 25 * In code, use `#include <mbedtls/build_info.h>`. Don't include `mbedtls/config.h` and don't refer … 31 * Don't include `check_config.h` or `config_psa.h` anymore. 32 * Don't define `MBEDTLS_CONFIG_H` anymore. 108 doesn't have any entropy source, you should use `MBEDTLS_ENTROPY_NV_SEED` 115 This doesn't affect people using the default configuration as it was already 173 - The functions `mbedtls_xxx_process()` were removed. You normally don't need 381 Previously, the documentation didn't state explicitly if it was OK to call 445 This normally doesn't affect your code, unless you use pointers to reference 493 This shouldn't affect users who took care not to include headers that 700 This doesn't affect people using the default configuration. [all …]
|