Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 71) sorted by relevance

123

/mbedtls-3.4.0/scripts/
Dconfig.py45 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 …]
Dgenerate_errors.pl84 my ($before, $name, $value, $after) = ($1, $2, $3, $4);
97 push @matches, [$name, $value, $description];
/mbedtls-3.4.0/tests/suites/
Dtest_suite_debug.data16 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 …]
Dtest_suite_base64.function42 for( unsigned value = 0; value < 64; value++ )
44 mbedtls_test_set_step( value );
45 TEST_CF_SECRET( &value, sizeof( value ) );
46 unsigned char digit = mbedtls_ct_base64_enc_char( value );
47 TEST_CF_PUBLIC( &value, sizeof( value ) );
49 TEST_EQUAL( digit, base64_digits[value] );
Dtest_suite_psa_crypto_metadata.function72 /* 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 …]
Dtest_suite_debug.function87 void mbedtls_debug_print_ret( char * file, int line, char * text, int value,
108 mbedtls_debug_print_ret( &ssl, 0, file, line, text, value);
187 void mbedtls_debug_print_mpi( char * value, char * file, int line,
210 TEST_ASSERT( mbedtls_test_read_mpi( &val, value ) == 0 );
Dtest_suite_bignum.function13 * constructing the value. */
20 /* The value 0 must be represented with the sign +1. A "negative zero"
100 * number is above some threshold A. The threshold value is heuristic and
998 * bit of value in the output. This means there are some values we can't
1301 * This function assumes that the value of bound is at least 2 and
1310 /* If upper_bound is small, stats[b] is the number of times the value b
1312 * value with bit b set has been generated. */
1324 /* Consider a bound "small" if it's less than 2^5. This value is chosen
1325 * to be small enough that the probability of missing one value is
1352 uint8_t value;
[all …]
Dhost_test.function29 * 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.
Dtest_suite_dhm.function21 /* 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 */
Dtest_suite_asn1parse.data229 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)
Dtest_suite_ccm.function603 // use hardcoded value for tag length. It is not a part of this test
677 add_second_buffer[1] = 0xAB; // some magic value
707 // use hardcoded value for tag length. It is a not a part of this test
735 // use hardcoded value for tag length. It is not a part of this test
769 // use hardcoded value for tag length. It is a not a part of this test
799 msg_second_buffer[1] = 0xAB; // some magic value
804 // use hardcoded value for tag length. It is a not a part of this test
/mbedtls-3.4.0/tests/scripts/
Dpsa_collect_statuses.py54 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()]
Dtest_psa_constant_names.py139 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))
Ddepends.py193 for key, value in sorted(self.config_settings.items()):
194 if value is True:
196 elif value is False:
199 args = ['set', key, value]
314 for key, value in sorted(config_settings.items()):
315 if value is not False:
/mbedtls-3.4.0/programs/psa/
Dpsa_constant_names.c69 unsigned long value) in append_integer() argument
71 size_t n = snprintf(*buffer, buffer_size - *required_size, format, value); in append_integer()
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()
266 (psa_ecc_family_t) value); in process_unsigned()
[all …]
/mbedtls-3.4.0/library/
Dconstant_time.c71 unsigned mbedtls_ct_uint_mask( unsigned value ) in mbedtls_ct_uint_mask() argument
79 return( - ( ( value | - value ) >> ( sizeof( value ) * 8 - 1 ) ) ); in mbedtls_ct_uint_mask()
87 size_t mbedtls_ct_size_mask( size_t value ) in mbedtls_ct_size_mask() argument
95 return( - ( ( value | - value ) >> ( sizeof( value ) * 8 - 1 ) ) ); in mbedtls_ct_size_mask()
105 mbedtls_mpi_uint mbedtls_ct_mpi_uint_mask( mbedtls_mpi_uint value ) in mbedtls_ct_mpi_uint_mask() argument
113 return( - ( ( value | - value ) >> ( sizeof( value ) * 8 - 1 ) ) ); in mbedtls_ct_mpi_uint_mask()
331 unsigned char mbedtls_ct_base64_enc_char( unsigned char value ) in mbedtls_ct_base64_enc_char() argument
337 digit |= mbedtls_ct_uchar_mask_of_range( 0, 25, value ) & ( 'A' + value ); in mbedtls_ct_base64_enc_char()
338 digit |= mbedtls_ct_uchar_mask_of_range( 26, 51, value ) & ( 'a' + value - 26 ); in mbedtls_ct_base64_enc_char()
339 digit |= mbedtls_ct_uchar_mask_of_range( 52, 61, value ) & ( '0' + value - 52 ); in mbedtls_ct_base64_enc_char()
[all …]
Dconstant_time_internal.h47 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 );
Doid.c741 unsigned int value; local
754 value = 0;
758 if( ( ( value << 7 ) >> 7 ) != value )
761 value <<= 7;
762 value += oid->p[i] & 0x7F;
767 ret = mbedtls_snprintf( p, n, ".%u", value );
769 value = 0;
Dchacha20.c39 #define ROTL32( value, amount ) \ argument
40 ( (uint32_t) ( (value) << (amount) ) | ( (value) >> ( 32 - (amount) ) ) )
Dpsa_crypto_core.h144 uint16_t value ) in psa_key_slot_set_flags() argument
147 ( mask & value ) ); in psa_key_slot_set_flags()
Dx509_crt.c1754 other_name->value.hardware_module_name.oid.tag = MBEDTLS_ASN1_OID; in x509_get_other_name()
1755 other_name->value.hardware_module_name.oid.p = p; in x509_get_other_name()
1756 other_name->value.hardware_module_name.oid.len = len; in x509_get_other_name()
1769 other_name->value.hardware_module_name.val.tag = MBEDTLS_ASN1_OCTET_STRING; in x509_get_other_name()
1770 other_name->value.hardware_module_name.val.p = p; in x509_get_other_name()
1771 other_name->value.hardware_module_name.val.len = len; in x509_get_other_name()
1880 &other_name->value.hardware_module_name.oid ) != 0 ) in x509_info_subject_alt_name()
1887 … ret = mbedtls_oid_get_numeric_string( p, n, &other_name->value.hardware_module_name.oid ); in x509_info_subject_alt_name()
1893 for( i = 0; i < other_name->value.hardware_module_name.val.len; i++ ) in x509_info_subject_alt_name()
1895 … ret = mbedtls_snprintf( p, n, "%02X", other_name->value.hardware_module_name.val.p[i] ); in x509_info_subject_alt_name()
/mbedtls-3.4.0/docs/architecture/
Dmbed-crypto-storage-specification.md41 …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.4.0/scripts/mbedtls_dev/
Dpsa_storage.py75 def value(self) -> int: member in Expr
145 *[arg.value() if isinstance(arg, Expr) else arg
179 return self.lifetime.value() >> 8
/mbedtls-3.4.0/tests/include/test/
Dmacros.h225 #define STATIC_ASSERT_THEN_RETURN( condition, value ) \
226 ( STATIC_ASSERT_EXPR( condition ) ? 0 : ( value ) )
/mbedtls-3.4.0/docs/proposed/
Dpsa-driver-interface.md82 …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.
364value of `*bits` against the data and return `PSA_ERROR_INVALID_ARGUMENT` if it does not match. If…
399 …n the `output` buffer, in bits. This must be at least `1` on success. The value is ignored on fail…
[all …]

123