/mbedtls-3.5.0/scripts/ |
D | config.py | 45 def __init__(self, active, name, value='', section=None): argument 48 self.value = value 96 return self.settings[name].value 107 return self.settings[name].value 111 def __setitem__(self, name, value): argument 116 self.settings[name].value = value 118 def set(self, name, value=None): argument 126 if value is not None: 127 self.settings[name].value = value 130 self.settings[name] = Setting(True, name, value=value) [all …]
|
D | generate_errors.pl | 84 my ($before, $name, $value, $after) = ($1, $2, $3, $4); 97 push @matches, [$name, $value, $description];
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_debug.data | 16 Debug print return value #1 17 mbedtls_debug_print_ret:"MyFile":999:"Test return value":0:"MyFile(0999)\: Test return value() retu… 19 Debug print return value #2 20 mbedtls_debug_print_ret:"MyFile":999:"Test return value":-0x1000:"MyFile(0999)\: Test return value(… 22 Debug print return value #3 23 mbedtls_debug_print_ret:"MyFile":999:"Test return value":-0xFFFF:"MyFile(0999)\: Test return value(… 26 mbedtls_debug_print_buf:"MyFile":999:"Test return value":"":"MyFile(0999)\: dumping 'Test return va… 29 …bedtls_debug_print_buf:"MyFile":999:"Test return value":"00":"MyFile(0999)\: dumping 'Test return … 32 …int_buf:"MyFile":999:"Test return value":"000102030405060708090A0B0C0D0E0F":"MyFile(0999)\: dumpin… 35 …nt_buf:"MyFile":999:"Test return value":"000102030405060708090A0B0C0D0E0F00":"MyFile(0999)\: dumpi… [all …]
|
D | test_suite_base64.function | 42 for (unsigned value = 0; value < 64; value++) { 43 mbedtls_test_set_step(value); 44 TEST_CF_SECRET(&value, sizeof(value)); 45 unsigned char digit = mbedtls_ct_base64_enc_char(value); 46 TEST_CF_PUBLIC(&value, sizeof(value)); 48 TEST_EQUAL(digit, base64_digits[value]);
|
D | test_suite_psa_crypto_metadata.function | 72 /* Check that in the value of flags, the bit flag (which should be a macro 77 * be different if the value of the flag bit is only specified under specific 97 /* Check the parity of value. 108 * Return a nonzero value if value has even parity and 0 otherwise. */ 109 int has_even_parity(uint32_t value) 111 value ^= value >> 16; 112 value ^= value >> 8; 113 value ^= value >> 4; 114 return 0x9669 & 1 << (value & 0xf); 116 #define TEST_PARITY(value) \ [all …]
|
D | test_suite_bignum_random.function | 70 * number is above some threshold A. The threshold value is heuristic and 269 * This function assumes that the value of bound is at least 2 and 280 /* If upper_bound is small, stats[b] is the number of times the value b 282 * value with bit b set has been generated. */ 293 /* Consider a bound "small" if it's less than 2^5. This value is chosen 294 * to be small enough that the probability of missing one value is 321 uint8_t value; 322 TEST_EQUAL(0, mbedtls_mpi_write_binary(&R, &value, 1)); 323 TEST_ASSERT(value < stats_len); 324 ++stats[value]; [all …]
|
D | test_suite_debug.function | 90 void mbedtls_debug_print_ret(char *file, int line, char *text, int value, 111 mbedtls_debug_print_ret(&ssl, 0, file, line, text, value); 190 void mbedtls_debug_print_mpi(char *value, char *file, int line, 213 TEST_ASSERT(mbedtls_test_read_mpi(&val, value) == 0);
|
D | host_test.function | 28 * integer value. 31 * \param value Pointer to int for output value. 35 int verify_int(char *str, int32_t *value) 64 *value = strtol(str, NULL, 16); 66 *value = strtol(str, NULL, 10); 294 * \param ref_ret Expected snprintf return value.
|
D | test_suite_dhm.function | 21 /* Sanity checks on a Diffie-Hellman parameter: check the length-value 22 * syntax and check that the value is the expected one (taken from the 167 /* Internal value checks */
|
D | test_suite_asn1parse.data | 229 INTEGER with 127 value octets 232 INTEGER with 127 value octets (long length encoding) 235 INTEGER with 128 value octets 238 INTEGER with 128 value octets (leading 0 in length)
|
D | test_suite_ccm.function | 605 // use hardcoded value for tag length. It is not a part of this test 680 add_second_buffer[1] = 0xAB; // some magic value 710 // use hardcoded value for tag length. It is a not a part of this test 738 // use hardcoded value for tag length. It is not a part of this test 772 // use hardcoded value for tag length. It is a not a part of this test 802 msg_second_buffer[1] = 0xAB; // some magic value 807 // use hardcoded value for tag length. It is a not a part of this test
|
/mbedtls-3.5.0/tests/scripts/ |
D | psa_collect_statuses.py | 54 value, function, tail = line.split(':', 2) 58 if value not in self.functions[function]: 59 fdata[value] = [] 60 fdata[value].append(tail) 61 self.codes.add(int(value)) 65 values = [str(value) for value in self.codes] 68 for value, name in zip(values, output.rstrip().split('\n')): 69 self.status_names[value] = name 78 names = [self.status_names[value] for value in fdata.keys()]
|
D | depends.py | 137 def set_config_option_value(conf, option, colors, value: Union[bool, str]): 145 if value is False: 148 elif value is True: 152 log_command(['config.py', 'set', option, value]) 153 conf.set(option, value) 198 for key, value in sorted(self.config_settings.items()): 199 ret = set_config_option_value(conf, key, colors, value) 312 for key, value in sorted(config_settings.items()): 313 if value is not False:
|
D | test_psa_constant_names.py | 139 for expr, value, output in zip(expressions, values, outputs): 141 sys.stdout.write('{} {}\t{}\n'.format(type_word, value, output)) 145 value=value, 163 error.output, error.value))
|
/mbedtls-3.5.0/programs/psa/ |
D | psa_constant_names.c | 69 unsigned long value) in append_integer() argument 71 size_t n = snprintf(*buffer, buffer_size - *required_size, format, value); in append_integer() 212 long value = strtol(*argp, &end, 0); in process_signed() local 217 if (value < min || (errno == ERANGE && value < 0)) { in process_signed() 221 if (value > max || (errno == ERANGE && value > 0)) { in process_signed() 229 (psa_status_t) value); in process_signed() 251 unsigned long value = strtoul(*argp, &end, 0); in process_unsigned() local 256 if (value > max || errno == ERANGE) { in process_unsigned() 264 (psa_algorithm_t) value); in process_unsigned() 268 (psa_ecc_family_t) value); in process_unsigned() [all …]
|
/mbedtls-3.5.0/library/ |
D | constant_time.c | 122 unsigned mbedtls_ct_uint_mask(unsigned value) in mbedtls_ct_uint_mask() argument 130 return -((value | -value) >> (sizeof(value) * 8 - 1)); in mbedtls_ct_uint_mask() 138 size_t mbedtls_ct_size_mask(size_t value) in mbedtls_ct_size_mask() argument 146 return -((value | -value) >> (sizeof(value) * 8 - 1)); in mbedtls_ct_size_mask() 156 mbedtls_mpi_uint mbedtls_ct_mpi_uint_mask(mbedtls_mpi_uint value) in mbedtls_ct_mpi_uint_mask() argument 164 return -((value | -value) >> (sizeof(value) * 8 - 1)); in mbedtls_ct_mpi_uint_mask() 383 unsigned char mbedtls_ct_base64_enc_char(unsigned char value) in mbedtls_ct_base64_enc_char() argument 389 digit |= mbedtls_ct_uchar_mask_of_range(0, 25, value) & ('A' + value); in mbedtls_ct_base64_enc_char() 390 digit |= mbedtls_ct_uchar_mask_of_range(26, 51, value) & ('a' + value - 26); in mbedtls_ct_base64_enc_char() 391 digit |= mbedtls_ct_uchar_mask_of_range(52, 61, value) & ('0' + value - 52); in mbedtls_ct_base64_enc_char() [all …]
|
D | oid.c | 823 unsigned int value = 0; in FN_OID_TYPED_FROM_ASN1() local 837 if (value > (UINT_MAX >> 7)) { in FN_OID_TYPED_FROM_ASN1() 840 if ((value == 0) && ((oid->p[i]) == 0x80)) { in FN_OID_TYPED_FROM_ASN1() 845 value <<= 7; in FN_OID_TYPED_FROM_ASN1() 846 value |= oid->p[i] & 0x7F; in FN_OID_TYPED_FROM_ASN1() 854 if (value >= 80) { in FN_OID_TYPED_FROM_ASN1() 856 component2 = value - 80; in FN_OID_TYPED_FROM_ASN1() 857 } else if (value >= 40) { in FN_OID_TYPED_FROM_ASN1() 859 component2 = value - 40; in FN_OID_TYPED_FROM_ASN1() 862 component2 = value; in FN_OID_TYPED_FROM_ASN1() [all …]
|
D | constant_time_internal.h | 47 unsigned mbedtls_ct_uint_mask(unsigned value); 62 size_t mbedtls_ct_size_mask(size_t value); 79 mbedtls_mpi_uint mbedtls_ct_mpi_uint_mask(mbedtls_mpi_uint value); 199 unsigned char mbedtls_ct_base64_enc_char(unsigned char value);
|
D | x509.c | 1185 other_name->value.hardware_module_name.oid.tag = MBEDTLS_ASN1_OID; in x509_get_other_name() 1186 other_name->value.hardware_module_name.oid.p = p; in x509_get_other_name() 1187 other_name->value.hardware_module_name.oid.len = len; in x509_get_other_name() 1195 other_name->value.hardware_module_name.val.tag = MBEDTLS_ASN1_OCTET_STRING; in x509_get_other_name() 1196 other_name->value.hardware_module_name.val.p = p; in x509_get_other_name() 1197 other_name->value.hardware_module_name.val.len = len; in x509_get_other_name() 1488 &other_name->value.hardware_module_name.oid) != 0) { in mbedtls_x509_info_subject_alt_name() 1497 … &other_name->value.hardware_module_name.oid); in mbedtls_x509_info_subject_alt_name() 1504 for (i = 0; i < other_name->value.hardware_module_name.val.len; i++) { in mbedtls_x509_info_subject_alt_name() 1508 other_name->value.hardware_module_name.val.p[i]); in mbedtls_x509_info_subject_alt_name()
|
D | chacha20.c | 39 #define ROTL32(value, amount) \ argument 40 ((uint32_t) ((value) << (amount)) | ((value) >> (32 - (amount))))
|
D | psa_crypto_core.h | 155 uint16_t value) in psa_key_slot_set_flags() argument 158 (mask & value)); in psa_key_slot_set_flags()
|
/mbedtls-3.5.0/docs/architecture/ |
D | mbed-crypto-storage-specification.md | 41 …nternal header (note that despite the name, this value is actually one plus the maximum permitted … 55 * type (4 bytes): `psa_key_type_t` value 56 * policy usage flags (4 bytes): `psa_key_usage_t` value 57 * policy usage algorithm (4 bytes): `psa_algorithm_t` value 81 …configuration value `CRYPTO_STORAGE_FILE_LOCATION` allows storing the key files in a directory oth… 114 …name is just the key identifier as defined in the PSA crypto specification. This is a 32-bit value. 115 …lling partition identifier provided to the server by the partition manager. This is a 64-bit value. 119 …d, therefore the storage format is not compatible (despite using the same value in the version fie… 133 Assumption: the owner identifier is a nonzero value of type `int32_t`. 164 It would simplify things to always have a 32-bit owner, with a nonzero value, and thus reserve the … [all …]
|
/mbedtls-3.5.0/scripts/mbedtls_dev/ |
D | psa_storage.py | 75 def value(self) -> int: member in Expr 145 *[arg.value() if isinstance(arg, Expr) else arg 179 return self.lifetime.value() >> 8
|
/mbedtls-3.5.0/tests/include/test/ |
D | macros.h | 225 #define STATIC_ASSERT_THEN_RETURN(condition, value) \ 226 (STATIC_ASSERT_EXPR(condition) ? 0 : (value))
|
/mbedtls-3.5.0/docs/proposed/ |
D | psa-driver-interface.md | 82 …t drivers, optional for opaque drivers, integer or string). The [location value](#lifetimes-and-lo… 108 …* or the value of the capability's `"algorithms"` property includes an [algorithm specification](#… 114 …* or the value of the capability's `"key_types"` property includes a [key type specification](#key… 117 * or the value of the capability's `"key_sizes"` property includes the key's size. 219 …ls the driver's `"hash_compute"` entry point and compares the result with the reference hash value. 220 …plicable driver's `"mac_compute"` entry point and compares the result with the reference MAC value. 221 … because the core can call the `"mac_compute"` entry point and compare with the expected MAC value. 262 … driver's *prefix*`_hash_finish` entry point and compares the result with the reference hash value. 407 * `PSA_SUCCESS`: value has been successfully obtained 533 …value of `*bits` against the data and return `PSA_ERROR_INVALID_ARGUMENT` if it does not match. If… [all …]
|