/mbedtls-latest/scripts/ |
D | config.py | 34 def __init__(self, active, name, value='', section=None): argument 37 self.value = value 85 return self.settings[name].value 96 return self.settings[name].value 100 def __setitem__(self, name, value): argument 105 self.settings[name].value = value 107 def set(self, name, value=None): argument 115 if value is not None: 116 self.settings[name].value = value 119 self.settings[name] = Setting(True, name, value=value) [all …]
|
D | code_size_compare.py | 137 return SupportedArch.AARCH64.value 139 return SupportedArch.AARCH32.value 141 return SupportedArch.X86_64.value 143 return SupportedArch.X86.value 163 '-a ' + SupportedArch.AARCH64.value + ' -c ' + SupportedConfig.DEFAULT.value, 164 '-a ' + SupportedArch.AARCH32.value + ' -c ' + SupportedConfig.DEFAULT.value, 165 '-a ' + SupportedArch.X86_64.value + ' -c ' + SupportedConfig.DEFAULT.value, 166 '-a ' + SupportedArch.X86.value + ' -c ' + SupportedConfig.DEFAULT.value, 167 '-a ' + SupportedArch.ARMV8_M.value + ' -c ' + SupportedConfig.TFM_MEDIUM.value, 203 if self.config == SupportedConfig.DEFAULT.value and \ [all …]
|
D | generate_errors.pl | 72 my ($before, $name, $value, $after) = ($1, $2, $3, $4); 85 push @matches, [$name, $value, $description];
|
/mbedtls-latest/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 | 22 for (unsigned value = 0; value < 64; value++) { 23 mbedtls_test_set_step(value); 24 TEST_CF_SECRET(&value, sizeof(value)); 25 unsigned char digit = mbedtls_ct_base64_enc_char(value); 26 TEST_CF_PUBLIC(&value, sizeof(value)); 28 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 static 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_platform_printf.function | 48 long value) 53 const size_t n = sizeof(value) * 2; 58 memset(expected + 1, 'f', sizeof(value) * 2 - 1); 61 TEST_EQUAL(n, mbedtls_snprintf(output, n + 1, format, value));
|
D | test_suite_debug.function | 94 void mbedtls_debug_print_ret(char *file, int line, char *text, int value, 118 mbedtls_debug_print_ret(&ssl, 0, file, line, text, value); 206 void mbedtls_debug_print_mpi(char *value, char *file, int line, 232 TEST_ASSERT(mbedtls_test_read_mpi(&val, value) == 0);
|
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_ccm.function | 632 // use hardcoded value for tag length. It is not a part of this test 712 add_second_buffer[1] = 0xAB; // some magic value 745 // use hardcoded value for tag length. It is a not a part of this test 775 // use hardcoded value for tag length. It is not a part of this test 811 // use hardcoded value for tag length. It is a not a part of this test 842 msg_second_buffer[1] = 0xAB; // some magic value 848 // use hardcoded value for tag length. It is a not a part of this test
|
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)
|
/mbedtls-latest/programs/psa/ |
D | psa_constant_names.c | 57 unsigned long value) in append_integer() argument 59 size_t n = snprintf(*buffer, buffer_size - *required_size, format, value); in append_integer() 200 long value = strtol(*argp, &end, 0); in process_signed() local 205 if (value < min || (errno == ERANGE && value < 0)) { in process_signed() 209 if (value > max || (errno == ERANGE && value > 0)) { in process_signed() 217 (psa_status_t) value); in process_signed() 239 unsigned long value = strtoul(*argp, &end, 0); in process_unsigned() local 244 if (value > max || errno == ERANGE) { in process_unsigned() 252 (psa_algorithm_t) value); in process_unsigned() 256 (psa_ecc_family_t) value); in process_unsigned() [all …]
|
/mbedtls-latest/tests/scripts/ |
D | psa_collect_statuses.py | 42 value, function, tail = line.split(':', 2) 46 if value not in self.functions[function]: 47 fdata[value] = [] 48 fdata[value].append(tail) 49 self.codes.add(int(value)) 53 values = [str(value) for value in self.codes] 56 for value, name in zip(values, output.rstrip().split('\n')): 57 self.status_names[value] = name 66 names = [self.status_names[value] for value in fdata.keys()]
|
D | depends.py | 123 def set_config_option_value(conf, option, colors, value: Union[bool, str]): 131 if value is False: 134 elif value is True: 138 log_command(['config.py', 'set', option, value]) 139 conf.set(option, value) 185 for key, value in sorted(self.config_settings.items()): 186 ret = set_config_option_value(conf, key, colors, value) 304 for key, value in sorted(config_settings.items()): 305 if value is not False:
|
D | test_psa_constant_names.py | 127 for expr, value, output in zip(expressions, values, outputs): 129 sys.stdout.write('{} {}\t{}\n'.format(type_word, value, output)) 133 value=value, 151 error.output, error.value))
|
/mbedtls-latest/library/ |
D | oid.c | 928 unsigned int value = 0; in FN_OID_TYPED_FROM_ASN1() local 942 if (value > (UINT_MAX >> 7)) { in FN_OID_TYPED_FROM_ASN1() 945 if ((value == 0) && ((oid->p[i]) == 0x80)) { in FN_OID_TYPED_FROM_ASN1() 950 value <<= 7; in FN_OID_TYPED_FROM_ASN1() 951 value |= oid->p[i] & 0x7F; in FN_OID_TYPED_FROM_ASN1() 959 if (value >= 80) { in FN_OID_TYPED_FROM_ASN1() 961 component2 = value - 80; in FN_OID_TYPED_FROM_ASN1() 962 } else if (value >= 40) { in FN_OID_TYPED_FROM_ASN1() 964 component2 = value - 40; in FN_OID_TYPED_FROM_ASN1() 967 component2 = value; in FN_OID_TYPED_FROM_ASN1() [all …]
|
D | base64.c | 26 unsigned char mbedtls_ct_base64_enc_char(unsigned char value) in mbedtls_ct_base64_enc_char() argument 32 digit |= mbedtls_ct_uchar_in_range_if(0, 25, value, 'A' + value); in mbedtls_ct_base64_enc_char() 33 digit |= mbedtls_ct_uchar_in_range_if(26, 51, value, 'a' + value - 26); in mbedtls_ct_base64_enc_char() 34 digit |= mbedtls_ct_uchar_in_range_if(52, 61, value, '0' + value - 52); in mbedtls_ct_base64_enc_char() 35 digit |= mbedtls_ct_uchar_in_range_if(62, 62, value, '+'); in mbedtls_ct_base64_enc_char() 36 digit |= mbedtls_ct_uchar_in_range_if(63, 63, value, '/'); in mbedtls_ct_base64_enc_char()
|
D | x509.c | 1187 other_name->value.hardware_module_name.oid.tag = MBEDTLS_ASN1_OID; in x509_get_other_name() 1188 other_name->value.hardware_module_name.oid.p = p; in x509_get_other_name() 1189 other_name->value.hardware_module_name.oid.len = len; in x509_get_other_name() 1197 other_name->value.hardware_module_name.val.tag = MBEDTLS_ASN1_OCTET_STRING; in x509_get_other_name() 1198 other_name->value.hardware_module_name.val.p = p; in x509_get_other_name() 1199 other_name->value.hardware_module_name.val.len = len; in x509_get_other_name() 1560 … &other_name->value.hardware_module_name.oid); in mbedtls_x509_info_subject_alt_name() 1567 for (i = 0; i < other_name->value.hardware_module_name.val.len; i++) { in mbedtls_x509_info_subject_alt_name() 1571 other_name->value.hardware_module_name.val.p[i]); in mbedtls_x509_info_subject_alt_name()
|
D | chacha20.c | 27 #define ROTL32(value, amount) \ argument 28 ((uint32_t) ((value) << (amount)) | ((value) >> (32 - (amount))))
|
D | common.h | 90 #define STATIC_ASSERT_THEN_RETURN(condition, value) \ argument 91 (STATIC_ASSERT_EXPR(condition) ? 0 : (value))
|
D | debug.c | 342 mbedtls_debug_print_mpi(ssl, level, file, line, name, items[i].value); in debug_print_pk() 347 mbedtls_debug_print_ecp(ssl, level, file, line, name, items[i].value); in debug_print_pk() 352 mbedtls_debug_print_psa_ec(ssl, level, file, line, name, items[i].value); in debug_print_pk()
|
/mbedtls-latest/docs/architecture/ |
D | mbed-crypto-storage-specification.md | 43 …nternal header (note that despite the name, this value is actually one plus the maximum permitted … 57 * type (4 bytes): `psa_key_type_t` value 58 * policy usage flags (4 bytes): `psa_key_usage_t` value 59 * policy usage algorithm (4 bytes): `psa_algorithm_t` value 83 …configuration value `CRYPTO_STORAGE_FILE_LOCATION` allows storing the key files in a directory oth… 116 …name is just the key identifier as defined in the PSA crypto specification. This is a 32-bit value. 117 …lling partition identifier provided to the server by the partition manager. This is a 64-bit value. 121 …d, therefore the storage format is not compatible (despite using the same value in the version fie… 135 Assumption: the owner identifier is a nonzero value of type `int32_t`. 166 It would simplify things to always have a 32-bit owner, with a nonzero value, and thus reserve the … [all …]
|
/mbedtls-latest/docs/ |
D | psa-transition.md | 74 …`int`: 0 for success (or occasionally a positive value which is the output length), or a negative … 76 …0ba5c6a7565aff3c36677c1f9): `PSA_SUCCESS == 0` for success, or a negative value [`PSA_ERROR_xxx`](… 200 …_WANT_xxx` symbols must be set to a non-zero value. In particular, setting `PSA_WANT_xxx` to an em… 262 * To compare a MAC with a reference value, use `psa_mac_verify` rather than `psa_mac_compute` follo… 300 …value `PSA_KEY_TYPE_xxx`, the symbol `PSA_WANT_KEY_TYPE_xxx` is defined with a non-zero value if t… 348 …44d4536939d9c64025) to set the key type to the desired `PSA_KEY_TYPE_xxx` value (see “[Cipher mech… 350 …baa0279475ea3fd3bcdc98) to set the algorithm to the desired `PSA_ALG_xxx` value (see “[Cipher mech… 452 …value of type [`psa_algorithm_t`](https://mbed-tls.readthedocs.io/projects/api/en/development/api/… 465 …value `PSA_KEY_TYPE_xxx`, the symbol `PSA_WANT_KEY_TYPE_xxx` is defined with a non-zero value if t… 504 …11b12156). In addition, to compare the hash of a message with an expected value, you can call [`ps… [all …]
|
/mbedtls-latest/docs/proposed/ |
D | psa-driver-interface.md | 84 …t drivers, optional for opaque drivers, integer or string). The [location value](#lifetimes-and-lo… 110 …* or the value of the capability's `"algorithms"` property includes an [algorithm specification](#… 116 …* or the value of the capability's `"key_types"` property includes a [key type specification](#key… 119 * or the value of the capability's `"key_sizes"` property includes the key's size. 221 …ls the driver's `"hash_compute"` entry point and compares the result with the reference hash value. 222 …plicable driver's `"mac_compute"` entry point and compares the result with the reference MAC value. 223 … because the core can call the `"mac_compute"` entry point and compare with the expected MAC value. 264 … driver's *prefix*`_hash_finish` entry point and compares the result with the reference hash value. 369 …erivation_get_input_type()` determines whether a given step is present and how to access its value: 375 …integer. Call `psa_crypto_driver_key_derivation_get_input_integer()` to retrieve the integer value. [all …]
|