/mbedtls-development/scripts/ |
A D | config.py | 43 self.value = value 111 self.settings[name].value = value 121 if value is not None: 122 self.settings[name].value = value 125 self.settings[name] = Setting(True, name, value=value) 393 value = setting.value 394 if value is None: 395 value = '' 400 if value: 516 if value: [all …]
|
A D | generate_errors.pl | 84 my ($before, $name, $value, $after) = ($1, $2, $3, $4); 97 push @matches, [$name, $value, $description];
|
/mbedtls-development/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:16:"":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (0 bits) is\:\n… [all …]
|
A D | test_suite_base64.function | 41 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_base64_enc_char( value ); 46 TEST_CF_PUBLIC( &value, sizeof( value ) ); 48 TEST_EQUAL( digit, base64_digits[value] );
|
A D | test_suite_psa_crypto_metadata.function | 70 /* Check that in the value of flags, the bit flag (which should be a macro 75 * be different if the value of the flag bit is only specified under specific 95 /* Check the parity of value. 106 * Return a nonzero value if value has even parity and 0 otherwise. */ 107 int has_even_parity( uint32_t value ) 109 value ^= value >> 16; 110 value ^= value >> 8; 111 value ^= value >> 4; 112 return( 0x9669 & 1 << ( value & 0xf ) ); 114 #define TEST_PARITY( value ) \ [all …]
|
A D | test_suite_debug.function | 86 void mbedtls_debug_print_ret( char * file, int line, char * text, int value, 107 mbedtls_debug_print_ret( &ssl, 0, file, line, text, value); 186 void mbedtls_debug_print_mpi( int radix, char * value, char * file, int line, 209 TEST_ASSERT( mbedtls_test_read_mpi( &val, radix, value ) == 0 );
|
A D | host_test.function | 29 * integer value. 32 * \param value Pointer to int for output value. 36 int verify_int( char *str, int32_t *value ) 70 *value = strtol( str, NULL, 16 ); 72 *value = strtol( str, NULL, 10 ); 331 * \param ref_ret Expected snprintf return value.
|
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 162 /* Internal value checks */
|
A D | test_suite_mpi.function | 11 * constructing the value. */ 87 * number is above some threshold A. The threshold value is heuristic and 1264 * This function assumes that the value of bound is at least 2 and 1273 /* If upper_bound is small, stats[b] is the number of times the value b 1275 * value with bit b set has been generated. */ 1287 /* Consider a bound "small" if it's less than 2^5. This value is chosen 1288 * to be small enough that the probability of missing one value is 1315 uint8_t value; 1317 TEST_ASSERT( value < stats_len ); 1318 ++stats[value]; [all …]
|
A D | test_suite_random.data | 40 # be lower than the value chosen here and are tested separately.
|
A 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-development/tests/scripts/ |
A 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()]
|
A D | test_psa_constant_names.py | 121 for expr, value, output in zip(expressions, values, outputs): 123 sys.stdout.write('{} {}\t{}\n'.format(type_word, value, output)) 127 value=value, 145 error.output, error.value))
|
A D | generate_psa_tests.py | 332 if self.usage.value() & psa_storage.Expr(flag).value() and \ 333 self.usage.value() & psa_storage.Expr(implicit).value() == 0: 712 value = getattr(options, name, None) 713 return default if value is None else value
|
/mbedtls-development/programs/psa/ |
A D | psa_constant_names.c | 69 unsigned long value) in append_integer() argument 210 long value = strtol(*argp, &end, 0); in process_signed() local 215 if (value < min || (errno == ERANGE && value < 0)) { in process_signed() 219 if (value > max || (errno == ERANGE && value > 0)) { in process_signed() 227 (psa_status_t) value); in process_signed() 249 unsigned long value = strtoul(*argp, &end, 0); in process_unsigned() local 254 if (value > max || errno == ERANGE) { in process_unsigned() 262 (psa_algorithm_t) value); in process_unsigned() 270 (psa_dh_family_t) value); in process_unsigned() 274 (psa_key_type_t) value); in process_unsigned() [all …]
|
/mbedtls-development/docs/architecture/ |
A 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 187 * type (4 bytes): `psa_key_type_t` value 188 * policy usage flags (4 bytes): `psa_key_usage_t` value 246 * lifetime (4 bytes): `psa_key_lifetime_t` value. 247 * type (4 bytes): `psa_key_type_t` value. 305 * lifetime (4 bytes): `psa_key_lifetime_t` value. 306 * type (2 bytes): `psa_key_type_t` value. [all …]
|
/mbedtls-development/library/ |
A D | oid.c | 747 unsigned int value; local 760 value = 0; 764 if( ( ( value << 7 ) >> 7 ) != value ) 767 value <<= 7; 768 value += oid->p[i] & 0x7F; 773 ret = mbedtls_snprintf( p, n, ".%u", value ); 775 value = 0;
|
A D | psa_crypto_core.h | 144 uint16_t value ) in psa_key_slot_set_flags() argument 147 ( mask & value ) ); in psa_key_slot_set_flags()
|
A D | chacha20.c | 57 #define ROTL32( value, amount ) \ argument 58 ( (uint32_t) ( (value) << (amount) ) | ( (value) >> ( 32 - (amount) ) ) )
|
A D | x509_crt.c | 1753 other_name->value.hardware_module_name.oid.tag = MBEDTLS_ASN1_OID; in x509_get_other_name() 1754 other_name->value.hardware_module_name.oid.p = p; in x509_get_other_name() 1755 other_name->value.hardware_module_name.oid.len = len; in x509_get_other_name() 1768 other_name->value.hardware_module_name.val.tag = MBEDTLS_ASN1_OCTET_STRING; in x509_get_other_name() 1769 other_name->value.hardware_module_name.val.p = p; in x509_get_other_name() 1770 other_name->value.hardware_module_name.val.len = len; in x509_get_other_name() 1891 if( other_name->value.hardware_module_name.val.len >= n ) in x509_info_subject_alt_name() 1897 memcpy( p, other_name->value.hardware_module_name.val.p, in x509_info_subject_alt_name() 1898 other_name->value.hardware_module_name.val.len ); in x509_info_subject_alt_name() 1899 p += other_name->value.hardware_module_name.val.len; in x509_info_subject_alt_name() [all …]
|
/mbedtls-development/scripts/mbedtls_dev/ |
A D | psa_storage.py | 70 def value(self) -> int: member in Expr 140 *[arg.value() if isinstance(arg, Expr) else arg 169 return self.lifetime.value() >> 8
|
/mbedtls-development/tests/include/test/ |
A D | macros.h | 212 #define STATIC_ASSERT_THEN_RETURN( condition, value ) \ argument 213 ( STATIC_ASSERT_EXPR( condition ) ? 0 : ( value ) )
|
/mbedtls-development/doxygen/ |
A D | mbedtls.doxyfile | 10 # TAG = value [value, ...] 12 # TAG += value [value, ...] 199 # Doxygen uses this value to replace tabs by spaces in code fragments. 204 # as commands in the documentation. An alias has the form "name=value". 208 # You can put \n's in the value part of an alias to insert newlines. 213 # A mapping has the form "name=value". For example adding 677 # If the value of the INPUT tag contains directories, you can use the 738 # commands irrespective of the value of the RECURSIVE tag. 1150 # If the tag value is set to YES, a side panel will be generated 1214 # MATHJAX_RELPATH should be ../mathjax. The default value points to [all …]
|
/mbedtls-development/ChangeLog.d/ |
A D | check-return.txt | 14 value is almost always a bug. Enable the new configuration option
|
/mbedtls-development/docs/proposed/ |
A D | psa-driver-interface.md | 104 …* or the value of the capability's `"algorithms"` property includes an [algorithm specification](#… 110 …* or the value of the capability's `"key_types"` property includes a [key type specification](#key… 113 * or the value of the capability's `"key_sizes"` property includes the key's size. 360 …value of `*bits` against the data and return `PSA_ERROR_INVALID_ARGUMENT` if it does not match. If… 571 …t runs out of entropy as described below. The core sets this value to 0 on entry. The value is not… 588 …oon as a driver returns any value other than `PSA_ERROR_NOT_SUPPORTED` (`PSA_SUCCESS` or a differe… 607 …optional): this many bytes are included in every key context. If omitted, this value defaults to 0. 608 … many bytes are included in every key context for a key pair. If omitted, this value defaults to 0. 609 …any bytes are included in every key context for a public key. If omitted, this value defaults to 0. 818 …paque-drivers) property, `key_buffer_size` has this value, otherwise `key_buffer_size` has the val… [all …]
|