| /mbedtls/scripts/ |
| A D | config.py | 37 self.value = value 105 self.settings[name].value = value 115 if value is not None: 116 self.settings[name].value = value 119 self.settings[name] = Setting(True, name, value=value) 448 value = setting.value 449 if value is None: 450 value = '' 455 if value: 578 if value: [all …]
|
| A D | code_size_compare.py | 136 return SupportedArch.AARCH64.value 138 return SupportedArch.AARCH32.value 140 return SupportedArch.X86_64.value 142 return SupportedArch.X86.value 162 '-a ' + SupportedArch.AARCH64.value + ' -c ' + SupportedConfig.DEFAULT.value, 163 '-a ' + SupportedArch.AARCH32.value + ' -c ' + SupportedConfig.DEFAULT.value, 164 '-a ' + SupportedArch.X86_64.value + ' -c ' + SupportedConfig.DEFAULT.value, 165 '-a ' + SupportedArch.X86.value + ' -c ' + SupportedConfig.DEFAULT.value, 166 '-a ' + SupportedArch.ARMV8_M.value + ' -c ' + SupportedConfig.TFM_MEDIUM.value, 206 elif self.arch == SupportedArch.ARMV8_M.value and \ [all …]
|
| A D | generate_errors.pl | 72 my ($before, $name, $value, $after) = ($1, $2, $3, $4); 85 push @matches, [$name, $value, $description];
|
| /mbedtls/tests/suites/ |
| A 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… 41 mbedtls_debug_print_mpi:"":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (0 bits) is\:\nMyF… [all …]
|
| A 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]);
|
| A 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));
|
| A 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 …]
|
| A 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 …]
|
| A 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);
|
| A 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 */
|
| /mbedtls/tests/scripts/ |
| A 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()]
|
| A D | generate_test_cert_macros.py | 29 def macro_define_type(value): argument 30 ret = value.split('=', 1) 33 '`{}` is not MACRO=value format'.format(value)) 81 def put_to_column(value, position=0): argument 82 return ' '*position + value
|
| A 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:
|
| A 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/programs/psa/ |
| A D | psa_constant_names.c | 57 unsigned long value) in append_integer() argument 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() 260 (psa_dh_family_t) value); in process_unsigned() 264 (psa_key_type_t) value); in process_unsigned() [all …]
|
| /mbedtls/tests/data_files/ |
| A D | test_certs.h.jinja2 | 11 {% for mode, name, value in macros %} 13 /* This is taken from {{value}}. */ 14 /* BEGIN FILE string macro {{name}} {{value}} */ 16 {% for line in value | read_lines %} 24 /* This is generated from {{value}}. */ 25 /* BEGIN FILE binary macro {{name}} {{value}} */ 27 {% for line in value | read_as_c_array %} 39 #define {{name}} "{{value}}"
|
| /mbedtls/library/ |
| A 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() 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() 978 value = 0; in FN_OID_TYPED_FROM_ASN1() 982 if (value != 0) { in FN_OID_TYPED_FROM_ASN1() 1013 value >>= 7; in oid_subidentifier_num_bytes() 1015 } while (value != 0); in oid_subidentifier_num_bytes() 1030 value >>= 7; in oid_subidentifier_encode_into() [all …]
|
| A 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()
|
| A D | chacha20.c | 27 #define ROTL32(value, amount) \ argument 28 ((uint32_t) ((value) << (amount)) | ((value) >> (32 - (amount))))
|
| A 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()
|
| A D | common.h | 90 #define STATIC_ASSERT_THEN_RETURN(condition, value) \ argument 91 (STATIC_ASSERT_EXPR(condition) ? 0 : (value))
|
| A D | base64_internal.h | 27 unsigned char mbedtls_ct_base64_enc_char(unsigned char value);
|
| /mbedtls/docs/architecture/ |
| A D | mbed-crypto-storage-specification.md | 57 * type (4 bytes): `psa_key_type_t` value 58 * policy usage flags (4 bytes): `psa_key_usage_t` value 207 * type (4 bytes): `psa_key_type_t` value 266 * lifetime (4 bytes): `psa_key_lifetime_t` value. 267 * type (4 bytes): `psa_key_type_t` value. 325 * lifetime (4 bytes): `psa_key_lifetime_t` value. 326 * type (2 bytes): `psa_key_type_t` value. 327 * bits (2 bytes): `psa_key_bits_t` value. 416 * lifetime (4 bytes): `psa_key_lifetime_t` value. 417 * type (2 bytes): `psa_key_type_t` value. [all …]
|
| /mbedtls/scripts/mbedtls_dev/ |
| A D | psa_storage.py | 68 def value(self) -> int: member in Expr 138 *[arg.value() if isinstance(arg, Expr) else arg 172 return self.lifetime.value() >> 8
|
| /mbedtls/docs/ |
| A D | psa-transition.md | 74 …`int`: 0 for success (or occasionally a positive value which is the output length), or a negative … 200 …_WANT_xxx` symbols must be set to a non-zero value. In particular, setting `PSA_WANT_xxx` to an em… 300 …value `PSA_KEY_TYPE_xxx`, the symbol `PSA_WANT_KEY_TYPE_xxx` is defined with a non-zero value if t… 511 …_finish`. If verifying the hash against an expected value, compare the result with the expected va… 572 To verify a MAC against an expected value, use the following process instead: 768 | Mbed TLS DH group P value | PSA DH group family | Bit-size | 790 | ECC key pair | Fixed-length private value (not containing the public key) | 792 | ECC public key (Montgomery curve) | Fixed-length public value | 793 | FFDH key pair | Fixed-length private value (not containing the public key) | 794 | FFDH public key | Fixed-length public value | [all …]
|