/mbedtls-development/3rdparty/everest/library/kremlib/ |
A D | FStar_UInt128_extracted.c | 27 return (a ^ ((a ^ b) | ((a - b) ^ b))) >> (uint32_t)63U; in FStar_UInt128_constant_time_carry() 38 flat = { a.low + b.low, a.high + b.high + FStar_UInt128_carry(a.low + b.low, b.low) }; in FStar_UInt128_add() 46 flat = { a.low + b.low, a.high + b.high + FStar_UInt128_carry(a.low + b.low, b.low) }; in FStar_UInt128_add_underspec() 53 flat = { a.low + b.low, a.high + b.high + FStar_UInt128_carry(a.low + b.low, b.low) }; in FStar_UInt128_add_mod() 60 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub() 68 flat = { a.low - b.low, a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }; in FStar_UInt128_sub_underspec() 201 return a.low == b.low && a.high == b.high; in FStar_UInt128_eq() 206 return a.high > b.high || (a.high == b.high && a.low > b.low); in FStar_UInt128_gt() 211 return a.high < b.high || (a.high == b.high && a.low < b.low); in FStar_UInt128_lt() 216 return a.high > b.high || (a.high == b.high && a.low >= b.low); in FStar_UInt128_gte() [all …]
|
A D | FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.c | 13 uint64_t FStar_UInt64_eq_mask(uint64_t a, uint64_t b) in FStar_UInt64_eq_mask() argument 15 uint64_t x = a ^ b; in FStar_UInt64_eq_mask() 25 uint64_t y = b; in FStar_UInt64_gte_mask() 37 uint32_t x = a ^ b; in FStar_UInt32_eq_mask() 47 uint32_t y = b; in FStar_UInt32_gte_mask() 59 uint16_t x = a ^ b; in FStar_UInt16_eq_mask() 69 uint16_t y = b; in FStar_UInt16_gte_mask() 79 uint8_t FStar_UInt8_eq_mask(uint8_t a, uint8_t b) in FStar_UInt8_eq_mask() argument 81 uint8_t x = a ^ b; in FStar_UInt8_eq_mask() 88 uint8_t FStar_UInt8_gte_mask(uint8_t a, uint8_t b) in FStar_UInt8_gte_mask() argument [all …]
|
/mbedtls-development/3rdparty/everest/include/everest/kremlin/ |
A D | c_endianness.h | 189 #define load16_le(b) (le16toh(load16(b))) argument 190 #define store16_le(b, i) (store16(b, htole16(i))) argument 191 #define load16_be(b) (be16toh(load16(b))) argument 192 #define store16_be(b, i) (store16(b, htobe16(i))) argument 194 #define load32_le(b) (le32toh(load32(b))) argument 195 #define store32_le(b, i) (store32(b, htole32(i))) argument 196 #define load32_be(b) (be32toh(load32(b))) argument 197 #define store32_be(b, i) (store32(b, htobe32(i))) argument 199 #define load64_le(b) (le64toh(load64(b))) argument 200 #define store64_le(b, i) (store64(b, htole64(i))) argument [all …]
|
/mbedtls-development/library/ |
A D | bn_mul.h | 57 MBEDTLS_BYTES_TO_T_UINT_4( a, b, 0, 0 ) 511 : "m" (s), "m" (d), "m" (c), "m" (b) \ 543 : "m" (s), "m" (d), "m" (c), "m" (b) \ 625 : "m" (s), "m" (d), "m" (c), "m" (b) \ 698 : "m" (s), "m" (d), "m" (c), "m" (b) \ 717 : "r" (b), "0" (s), "1" (d), "2" (c) \ 744 : "m" (s), "m" (d), "m" (c), "m" (b) \ 830 __asm mov ebx, b 936 r = *(s++) * (mbedtls_t_udbl) b; \ 951 b0 = ( b << biH ) >> biH; \ [all …]
|
A D | aria.c | 219 *b = ( (uint32_t) sa[ MBEDTLS_BYTE_0( *b ) ] ) ^ in aria_sl() 346 uint32_t a, b, c, d; in aria_fo_xor() local 349 b = p[1] ^ k[1]; in aria_fo_xor() 357 r[1] = b ^ x[1]; in aria_fo_xor() 368 uint32_t a, b, c, d; in aria_fe_xor() local 371 b = p[1] ^ k[1]; in aria_fe_xor() 379 r[1] = b ^ x[1]; in aria_fe_xor() 523 uint32_t a, b, c, d; in mbedtls_aria_crypt_ecb() local 537 b ^= ctx->rk[i][1]; in mbedtls_aria_crypt_ecb() 546 b ^= ctx->rk[i][1]; in mbedtls_aria_crypt_ecb() [all …]
|
A D | chacha20.c | 81 size_t b, in chacha20_quarter_round() argument 86 state[a] += state[b]; in chacha20_quarter_round() 92 state[b] ^= state[c]; in chacha20_quarter_round() 93 state[b] = ROTL32( state[b], 12 ); in chacha20_quarter_round() 96 state[a] += state[b]; in chacha20_quarter_round() 102 state[b] ^= state[c]; in chacha20_quarter_round() 103 state[b] = ROTL32( state[b], 7 ); in chacha20_quarter_round()
|
/mbedtls-development/3rdparty/everest/include/everest/kremlib/ |
A D | FStar_UInt128.h | 26 FStar_UInt128_uint128 FStar_UInt128_add(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 29 FStar_UInt128_add_underspec(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 33 FStar_UInt128_uint128 FStar_UInt128_sub(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 36 FStar_UInt128_sub_underspec(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 40 FStar_UInt128_uint128 FStar_UInt128_logand(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 44 FStar_UInt128_uint128 FStar_UInt128_logor(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 52 bool FStar_UInt128_eq(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 54 bool FStar_UInt128_gt(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 56 bool FStar_UInt128_lt(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); 58 bool FStar_UInt128_gte(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); [all …]
|
A D | FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.h | 77 uint64_t FStar_UInt64_eq_mask(uint64_t a, uint64_t b); 79 uint64_t FStar_UInt64_gte_mask(uint64_t a, uint64_t b); 141 uint32_t FStar_UInt32_eq_mask(uint32_t a, uint32_t b); 143 uint32_t FStar_UInt32_gte_mask(uint32_t a, uint32_t b); 205 uint16_t FStar_UInt16_eq_mask(uint16_t a, uint16_t b); 207 uint16_t FStar_UInt16_gte_mask(uint16_t a, uint16_t b); 269 uint8_t FStar_UInt8_eq_mask(uint8_t a, uint8_t b); 271 uint8_t FStar_UInt8_gte_mask(uint8_t a, uint8_t b);
|
/mbedtls-development/tests/suites/ |
A D | test_suite_debug.data | 32 …value' (16 bytes)\nMyFile(0999)\: 0000\: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f .......… 35 …value' (17 bytes)\nMyFile(0999)\: 0000\: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f .......… 38 …b 0c 0d 0e 0f ................\nMyFile(0999)\: 0010\: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d … 53 …b 10 7c 09\nMyFile(0999)\: 18 2b 5e dc d9 55 ad ac 41 8b f4 91 8e 28 89 af\nMyFile(0999)\: 48 e1… 56 …b 10 7c\nMyFile(0999)\: 09 18 2b 5e dc d9 55 ad ac 41 8b f4 91 8e 28 89\nMyFile(0999)\: af 48 e1… 59 …b 10 7c\nMyFile(0999)\: 09 18 2b 5e dc d9 55 ad ac 41 8b f4 91 8e 28 89\nMyFile(0999)\: af 48 e1… 63 …b fd 36 ee 82 65 2e\nMyFile(0999)\: 15 61 5e 89 bf b8 e8 45 90 db ee 88 16 52 d3 f1\nMyFile(0999)… 67 …b 34 41 37 58 2f 87 56 fe fc 89 ba 29 43\nMyFile(0999)\: 4b 4e e0 6e c3 0e 57 53 33 39 58 d4 52 b…
|
/mbedtls-development/tests/include/test/ |
A D | macros.h | 247 #define GET_UINT32_BE(n,b,i) \ argument 249 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \ 250 | ( (uint32_t) (b)[(i) + 1] << 16 ) \ 251 | ( (uint32_t) (b)[(i) + 2] << 8 ) \ 252 | ( (uint32_t) (b)[(i) + 3] ); \ 257 #define PUT_UINT32_BE(n,b,i) \ argument 259 (b)[(i) ] = (unsigned char) ( (n) >> 24 ); \ 260 (b)[(i) + 1] = (unsigned char) ( (n) >> 16 ); \ 261 (b)[(i) + 2] = (unsigned char) ( (n) >> 8 ); \ 262 (b)[(i) + 3] = (unsigned char) ( (n) ); \
|
/mbedtls-development/tests/scripts/ |
A D | check_files.py | 194 b'bash': 'sh', 195 b'perl': 'pl', 196 b'python3': 'py', 197 b'sh': 'sh', 215 if first_line.startswith(b'#!'): 243 if f.read(1) != b"\n": 273 return b"\r" in line 287 return not line.endswith(b"\r\n") or b"\r" in line[:-2] 313 return b"\t" in line 324 if line.startswith(b'<<<<<<< ') or line.startswith(b'>>>>>>> '): [all …]
|
/mbedtls-development/scripts/ |
A D | make_generated_files.bat | 4 perl scripts\generate_errors.pl || exit /b 1 5 perl scripts\generate_query_config.pl || exit /b 1 6 perl scripts\generate_features.pl || exit /b 1 7 perl scripts\generate_visualc_files.pl || exit /b 1 8 python scripts\generate_psa_constants.py || exit /b 1 9 python tests\scripts\generate_psa_tests.py || exit /b 1
|
/mbedtls-development/tests/data_files/ |
A D | dh.optlen.pem | 5 80:0a:bf:e7:dc:66:7a:a1:7b:cd:7c:04:61:4b:c2: 6 21:a6:54:82:cc:c0:4b:60:46:02:b0:e1:31:90:8a: 7 93:8e:a1:1b:48:dc:51:5d:ab:7a:bc:bb:1e:0c:7f: 10 5f:5b:f0:0d:f8:28:80:60:20:e8:75:c0:09:26:e4: 12 7c:63:96:b9:24:46:21:be:2b:00:b6:3c:65:92:53: 17 ec:b0:55:6f:b7:13:12:a8:d7:c9:3b:b2:89:8e:a0: 27 6a:57:8d:70:c5:c5:60:ad:2b:db:92:4c:4a:4d:be: 31 2d:52:13:ed:4a:5f:1f:5b:a8:b5:e1:ed:3d:a9:51: 35 5b:2e:a1:fa:34:40:5d:83:98:2f:ba:40:e6:d8:52: 36 da:3d:91:01:9b:f2:35:11:31:42:54:dc:21:1a:90: [all …]
|
A D | server9-with-ca.crt | 36 58:08:94:a5:ec:9b:c5:8b:df:1a:1e:99:38:99:87: 37 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 39 cb:44:a2:72:0b:c2:e5:40:f9:3e:e5:a6:0e:b3:f9: 40 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90: 43 58:26:22:03:5b:d4:b4:d5:fb:f5:e3:96:2e:70:c0: 49 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9: 64 b8:fd:54:d8:00:54:90:8b:25:b0:27:dd:95:cd:a2:f7:84:07: 69 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: 70 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5: 73 66:d9:1f:9b:f5:13:48:b0:4d:14:d1:de:b2:24:d9:78:7d:f5: [all …]
|
A D | server10_int3_int-ca2_ca.crt | 57 58:08:94:a5:ec:9b:c5:8b:df:1a:1e:99:38:99:87: 58 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 60 cb:44:a2:72:0b:c2:e5:40:f9:3e:e5:a6:0e:b3:f9: 61 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90: 64 58:26:22:03:5b:d4:b4:d5:fb:f5:e3:96:2e:70:c0: 70 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9: 85 b8:fd:54:d8:00:54:90:8b:25:b0:27:dd:95:cd:a2:f7:84:07: 90 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: 91 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5: 94 66:d9:1f:9b:f5:13:48:b0:4d:14:d1:de:b2:24:d9:78:7d:f5: [all …]
|
A D | dh.998.pem | 3 39:5f:30:c0:7b:06:b7:6a:49:c6:c0:81:1f:39:77: 7 9d:8a:e5:85:3c:71:e3:4b:3e:1e:b9:80:e3:cc:7a: 8 fd:84:05:b0:df:36:15:29:4e:3e:23:3b:c3:ae:6b:
|
A D | dh.1000.pem | 8 77:33:a9:8a:90:94:21:ff:84:d2:7b:36:39:9b:e5: 9 f0:88:2b:35:98:64:28:58:27:be:fa:bf:e3:60:cc: 10 c4:61:60:59:78:a7:e1:a3:b3:a7:3e:7e:5b:a8:d7: 18 c1:d4:3e:7e:fb:d8:2c:bf:7b:63:70:99:9e:c4:ac:
|
A D | dh.999.pem | 7 69:be:45:71:6e:ac:c5:56:d8:22:9e:c4:9c:23:2b: 8 bd:6d:3b:b6:02:4f:5d:12:a7:ac:90:b8:9e:be:93: 10 68:6d:b7:e8:e8:df:d6:1b:82:93:d9:21:4a:ea:71:
|
/mbedtls-development/tests/data_files/dir3/ |
A D | test-ca.crt | 17 58:08:94:a5:ec:9b:c5:8b:df:1a:1e:99:38:99:87: 18 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 20 cb:44:a2:72:0b:c2:e5:40:f9:3e:e5:a6:0e:b3:f9: 21 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90: 24 58:26:22:03:5b:d4:b4:d5:fb:f5:e3:96:2e:70:c0: 30 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9: 45 b8:fd:54:d8:00:54:90:8b:25:b0:27:dd:95:cd:a2:f7:84:07: 50 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: 51 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5: 54 66:d9:1f:9b:f5:13:48:b0:4d:14:d1:de:b2:24:d9:78:7d:f5: [all …]
|
/mbedtls-development/tests/data_files/dir1/ |
A D | test-ca.crt | 17 58:08:94:a5:ec:9b:c5:8b:df:1a:1e:99:38:99:87: 18 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 20 cb:44:a2:72:0b:c2:e5:40:f9:3e:e5:a6:0e:b3:f9: 21 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90: 24 58:26:22:03:5b:d4:b4:d5:fb:f5:e3:96:2e:70:c0: 30 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9: 45 b8:fd:54:d8:00:54:90:8b:25:b0:27:dd:95:cd:a2:f7:84:07: 50 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: 51 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5: 54 66:d9:1f:9b:f5:13:48:b0:4d:14:d1:de:b2:24:d9:78:7d:f5: [all …]
|
/mbedtls-development/tests/data_files/dir2/ |
A D | test-ca.crt | 17 58:08:94:a5:ec:9b:c5:8b:df:1a:1e:99:38:99:87: 18 1e:7b:c0:8d:39:df:38:5d:70:78:07:d3:9e:d9:93: 20 cb:44:a2:72:0b:c2:e5:40:f9:3e:e5:a6:0e:b3:f9: 21 ec:4a:63:c0:b8:29:00:74:9c:57:3b:a8:a5:04:90: 24 58:26:22:03:5b:d4:b4:d5:fb:f5:e3:96:2e:70:c0: 30 65:64:09:ea:0c:6e:8e:1b:17:a0:71:c8:b3:9b:c9: 45 b8:fd:54:d8:00:54:90:8b:25:b0:27:dd:95:cd:a2:f7:84:07: 50 8b:9b:e0:d5:dc:67:ed:8c:6b:33:d7:74:22:3c:4c:db:b5:8d: 51 2a:ce:2c:0d:08:59:05:09:05:a6:39:9f:b3:67:1b:e2:83:e5: 54 66:d9:1f:9b:f5:13:48:b0:4d:14:d1:de:b2:24:d9:78:7d:f5: [all …]
|
/mbedtls-development/3rdparty/everest/library/ |
A D | Hacl_Curve25519.c | 33 uint64_t b4 = b[4U]; in Hacl_Bignum_Modulo_carry_top() 34 uint64_t b0 = b[0U]; in Hacl_Bignum_Modulo_carry_top() 37 b[4U] = b4_; in Hacl_Bignum_Modulo_carry_top() 38 b[0U] = b0_; in Hacl_Bignum_Modulo_carry_top() 256 uint64_t *b; in Hacl_Bignum_Crecip_crecip() local 278 b = buf + (uint32_t)10U; in Hacl_Bignum_Crecip_crecip() 295 uint64_t yi = b[i]; in Hacl_Bignum_fsum() 308 memcpy(tmp, b, (uint32_t)5U * sizeof b[0U]); in Hacl_Bignum_fdifference() 349 uint64_t xi = b[i]; in Hacl_Bignum_fscalar() 380 uint64_t bi = b[i]; in Hacl_EC_Point_swap_conditional_step() [all …]
|
/mbedtls-development/3rdparty/everest/library/legacy/ |
A D | Hacl_Curve25519.c | 36 uint64_t b4 = b[4U]; in Hacl_Bignum_Modulo_carry_top() 37 uint64_t b0 = b[0U]; in Hacl_Bignum_Modulo_carry_top() 40 b[4U] = b4_; in Hacl_Bignum_Modulo_carry_top() 41 b[0U] = b0_; in Hacl_Bignum_Modulo_carry_top() 298 uint64_t *b; in Hacl_Bignum_Crecip_crecip() local 320 b = buf + (uint32_t)10U; in Hacl_Bignum_Crecip_crecip() 337 uint64_t yi = b[i]; in Hacl_Bignum_fsum() 350 memcpy(tmp, b, (uint32_t)5U * sizeof b[0U]); in Hacl_Bignum_fdifference() 391 uint64_t xi = b[i]; in Hacl_Bignum_fscalar() 425 uint64_t bi = b[i]; in Hacl_EC_Point_swap_conditional_step() [all …]
|
/mbedtls-development/scripts/mbedtls_dev/ |
A D | crypto_knowledge.py | 112 DATA_BLOCK = b'Here\000is key\240data' 137 des3 = b'dEs kEy\001dEs kEy\002dEs kEy\004' 139 return b''.join([self.DATA_BLOCK] * (length // len(self.DATA_BLOCK)) +
|
/mbedtls-development/include/mbedtls/ |
A D | bignum.h | 699 mbedtls_mpi_sint b ); 714 mbedtls_mpi_sint b ); 745 mbedtls_mpi_uint b ); 787 mbedtls_mpi_sint b ); 826 mbedtls_mpi_sint b );
|