/openthread-3.6.0/third_party/mbedtls/repo/include/psa/ |
D | crypto_extra.h | 591 size_t *bits ) in mbedtls_ecc_group_to_psa() argument 596 *bits = 192; in mbedtls_ecc_group_to_psa() 599 *bits = 224; in mbedtls_ecc_group_to_psa() 602 *bits = 256; in mbedtls_ecc_group_to_psa() 605 *bits = 384; in mbedtls_ecc_group_to_psa() 608 *bits = 521; in mbedtls_ecc_group_to_psa() 611 *bits = 256; in mbedtls_ecc_group_to_psa() 614 *bits = 384; in mbedtls_ecc_group_to_psa() 617 *bits = 512; in mbedtls_ecc_group_to_psa() 620 *bits = 255; in mbedtls_ecc_group_to_psa() [all …]
|
D | crypto_struct.h | 313 psa_key_bits_t bits; member 460 size_t bits) in psa_set_key_bits() argument 462 if( bits > PSA_MAX_KEY_BITS ) in psa_set_key_bits() 463 attributes->core.bits = PSA_KEY_BITS_TOO_LARGE; in psa_set_key_bits() 465 attributes->core.bits = (psa_key_bits_t) bits; in psa_set_key_bits() 471 return( attributes->core.bits ); in psa_get_key_bits()
|
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_asn1write.data | 112 ASN.1 Write mpi, 127*8-1 bits 115 #ASN.1 Write mpi, 127*8 bits 118 ASN.1 Write mpi, 127*8+1 bits 121 ASN.1 Write mpi, 255*8-1 bits 124 #ASN.1 Write mpi, 255*8 bits 127 ASN.1 Write mpi, 256*8-1 bits 265 ASN.1 Write Named Bitstring / Unused bits #0 268 ASN.1 Write Named Bitstring / Unused bits #1 271 ASN.1 Write Named Bitstring / Unused bits #2 274 ASN.1 Write Named Bitstring / Unused bits #3 [all …]
|
D | test_suite_pkwrite.data | 9 Public key write check EC 192 bits 13 Public key write check EC 521 bits 17 Public key write check EC Brainpool 512 bits 29 Private key write check EC 192 bits 33 Private key write check EC 256 bits (top bit set) 37 Private key write check EC 521 bits 41 Private key write check EC 521 bits (top byte is 0) 45 Private key write check EC Brainpool 512 bits
|
D | test_suite_debug.data | 41 mbedtls_debug_print_mpi:16:"":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (0 bits) is\:\n… 44 …"00000000000000":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (0 bits) is\:\nMyFile(0999)… 46 Debug print mbedtls_mpi #2: 3 bits 47 …"00000000000007":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (3 bits) is\:\nMyFile(0999)… 49 Debug print mbedtls_mpi: 49 bits 50 …01020304050607":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (49 bits) is\:\nMyFile(0999)… 52 Debug print mbedtls_mpi: 759 bits 53 …fbb2f958b4424":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (759 bits) is\:\nMyFile(0999)… 55 Debug print mbedtls_mpi: 764 bits #1 56 …fbb2f958b4424":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (764 bits) is\:\nMyFile(0999)… [all …]
|
D | test_suite_psa_crypto_generate_key.function | 23 size_t bits = bits_arg; 28 psa_set_key_bits( &attributes, bits ); 41 TEST_EQUAL( psa_get_key_bits( &attributes ), bits );
|
D | test_suite_rsa.data | 187 RSA PKCS1 Sign #1 (SHA512, 1536 bits RSA) 195 RSA PKCS1 Sign #2 (SHA256, 2048 bits RSA) 207 RSA PKCS1 Sign #3 (SHA224, 2048 bits RSA) 215 RSA PKCS1 Sign #4 (SHA384, 2048 bits RSA) 223 RSA PKCS1 Sign #5 (MD2, 2048 bits RSA) 231 RSA PKCS1 Sign #6 (MD4, 2048 bits RSA) 239 RSA PKCS1 Sign #7 (MD5, 2048 bits RSA) 247 RSA PKCS1 Sign #8 (RAW, 2048 bits RSA) 267 RSA PKCS1 Sign #10 (RIPEMD160, 2048 bits RSA) 271 RSA PKCS1 Verify #10 (RIPEMD160, 2048 bits RSA) [all …]
|
D | test_suite_psa_crypto_not_supported.function | 36 void generate_not_supported( int key_type, int bits ) 43 psa_set_key_bits( &attributes, bits );
|
D | test_suite_psa_crypto_attributes.function | 21 size_t bits = bits_arg; 38 psa_set_key_bits( &attributes, bits ); 46 TEST_EQUAL( psa_get_key_bits( &attributes ), bits );
|
D | test_suite_psa_crypto_se_driver_hal.function | 112 /* If not listed above, assume a multiple of 8 bits. */ 178 size_t *bits ) 186 *bits = PSA_BYTES_TO_BITS( data_length ); 234 size_t bits; 239 /* A type with at least ARRAY_LENGTH(ram_slots) bits, containing a 272 ram_slots[slot_number].bits = psa_get_key_bits( attributes ); 315 size_t *bits ) 327 *bits = PSA_BYTES_TO_BITS( data_length ); 330 *bits = ecc_curve_bits( PSA_KEY_TYPE_ECC_GET_FAMILY( type ), data_length ); 331 if( *bits == 0 ) [all …]
|
/openthread-3.6.0/third_party/mbedtls/repo/tests/scripts/ |
D | generate_psa_tests.py | 45 def finish_family_dependency(dep: str, bits: int) -> str: 52 return re.sub(r'_FAMILY_(.*)', r'_\1_' + str(bits), dep) 54 def finish_family_dependencies(dependencies: List[str], bits: int) -> List[str]: 59 return [finish_family_dependency(dep, bits) for dep in dependencies] 135 verb: str, key_type: str, bits: int, 150 .format(verb, short_key_type, bits, adverb)) 192 for bits in kt.sizes_to_test(): 194 'import', kt.expression, bits, 195 finish_family_dependencies(import_dependencies, bits), 196 test_case.hex_string(kt.key_material(bits)), [all …]
|
/openthread-3.6.0/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | crypto_knowledge.py | 111 def key_material(self, bits: int) -> bytes: 125 if bits not in ASYMMETRIC_KEY_DATA[self.expression]: 127 .format(bits, self.expression)) 128 return ASYMMETRIC_KEY_DATA[self.expression][bits] 129 if bits % 8 != 0: 131 .format(bits, self.expression)) 132 length = bits // 8
|
D | psa_storage.py | 109 bits: int, 117 self.bits = bits #type: int 153 self.lifetime, self.type, self.bits, 179 type=0x2400, bits=128, 190 type='PSA_KEY_TYPE_RAW_DATA', bits=length*8, 198 key = Key(type=0x1001, bits=8,
|
/openthread-3.6.0/third_party/mbedtls/repo/tests/src/ |
D | psa_exercise_key.c | 50 size_t bits; in check_key_attributes_sanity() local 56 bits = psa_get_key_bits( &attributes ); in check_key_attributes_sanity() 93 TEST_ASSERT( bits != 0 ); in check_key_attributes_sanity() 94 TEST_ASSERT( bits <= PSA_MAX_KEY_BITS ); in check_key_attributes_sanity() 96 TEST_ASSERT( bits % 8 == 0 ); in check_key_attributes_sanity() 100 TEST_ASSERT( bits <= PSA_VENDOR_ECC_MAX_CURVE_BITS ); in check_key_attributes_sanity() 102 TEST_ASSERT( bits <= PSA_VENDOR_RSA_MAX_KEY_BITS ); in check_key_attributes_sanity() 637 psa_key_type_t type, size_t bits, in mbedtls_test_psa_exported_key_sanity_check() argument 640 TEST_ASSERT( exported_length <= PSA_EXPORT_KEY_OUTPUT_SIZE( type, bits ) ); in mbedtls_test_psa_exported_key_sanity_check() 643 TEST_EQUAL( exported_length, PSA_BITS_TO_BYTES( bits ) ); in mbedtls_test_psa_exported_key_sanity_check() [all …]
|
/openthread-3.6.0/third_party/tcplp/lib/ |
D | bitmap.h | 37 #define BITS_TO_BYTES(bits) (((bits) >> 3) + (((bits) & 0x7) ? 1 : 0)) argument
|
/openthread-3.6.0/third_party/mbedtls/repo/library/ |
D | asn1write.c | 304 size_t bits ) in mbedtls_asn1_write_named_bitstring() argument 311 byte_len = ( bits + 7 ) / 8; in mbedtls_asn1_write_named_bitstring() 312 unused_bits = ( byte_len * 8 ) - bits; in mbedtls_asn1_write_named_bitstring() 319 if( bits != 0 ) in mbedtls_asn1_write_named_bitstring() 332 bits--; in mbedtls_asn1_write_named_bitstring() 333 if( bits == 0 ) in mbedtls_asn1_write_named_bitstring() 336 if( bits % 8 == 0 ) in mbedtls_asn1_write_named_bitstring() 341 return( mbedtls_asn1_write_bitstring( p, start, buf, bits ) ); in mbedtls_asn1_write_named_bitstring() 345 const unsigned char *buf, size_t bits ) in mbedtls_asn1_write_bitstring() argument 351 byte_len = ( bits + 7 ) / 8; in mbedtls_asn1_write_bitstring() [all …]
|
D | psa_crypto_ecp.c | 171 size_t *key_buffer_length, size_t *bits ) in mbedtls_psa_ecp_import_key() argument 178 attributes->core.bits, in mbedtls_psa_ecp_import_key() 187 *bits = ecp->grp.nbits + 1; in mbedtls_psa_ecp_import_key() 189 *bits = ecp->grp.nbits; in mbedtls_psa_ecp_import_key() 267 attributes->core.type, attributes->core.bits, in mbedtls_psa_ecp_export_public_key() 296 mbedtls_ecc_group_of_psa( curve, attributes->core.bits, 0 ); in mbedtls_psa_ecp_generate_key() 349 attributes->core.bits, in mbedtls_psa_ecdsa_sign_hash() 425 attributes->core.bits, in mbedtls_psa_ecdsa_verify_hash()
|
D | psa_crypto.c | 394 size_t bits, in mbedtls_ecc_group_of_psa() argument 400 switch( bits ) in mbedtls_ecc_group_of_psa() 430 switch( bits ) in mbedtls_ecc_group_of_psa() 448 switch( bits ) in mbedtls_ecc_group_of_psa() 466 switch( bits ) in mbedtls_ecc_group_of_psa() 494 size_t bits ) in validate_unstructured_key_bit_size() argument 505 if( bits != 128 && bits != 192 && bits != 256 ) in validate_unstructured_key_bit_size() 511 if( bits != 128 && bits != 192 && bits != 256 ) in validate_unstructured_key_bit_size() 517 if( bits != 128 && bits != 192 && bits != 256 ) in validate_unstructured_key_bit_size() 523 if( bits != 64 && bits != 128 && bits != 192 ) in validate_unstructured_key_bit_size() [all …]
|
D | psa_crypto_rsa.c | 79 size_t bits; in mbedtls_psa_rsa_load_representation() local 103 bits = PSA_BYTES_TO_BITS( mbedtls_rsa_get_len( mbedtls_pk_rsa( ctx ) ) ); in mbedtls_psa_rsa_load_representation() 104 if( bits > PSA_VENDOR_RSA_MAX_KEY_BITS ) in mbedtls_psa_rsa_load_representation() 136 size_t *key_buffer_length, size_t *bits ) in mbedtls_psa_rsa_import_key() argument 149 *bits = (psa_key_bits_t) PSA_BYTES_TO_BITS( mbedtls_rsa_get_len( rsa ) ); in mbedtls_psa_rsa_import_key() 298 (unsigned int)attributes->core.bits, in mbedtls_psa_rsa_generate_key()
|
D | psa_crypto_storage.c | 242 uint8_t bits[2]; member 260 MBEDTLS_PUT_UINT16_LE( (uint16_t) attr->bits, storage_format->bits, 0 ); in psa_format_key_data_for_storage() 317 attr->bits = MBEDTLS_GET_UINT16_LE( storage_format->bits, 0 ); in psa_parse_key_data_from_storage()
|
D | aesni.c | 449 size_t bits ) in mbedtls_aesni_setkey_enc() argument 451 switch( bits ) in mbedtls_aesni_setkey_enc()
|
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/ |
D | psa_util.h | 167 psa_ecc_family_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument 173 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id() 208 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id() 231 switch( bits ) in mbedtls_psa_get_ecc_oid_from_id() 374 uint16_t tls_ecc_grp_reg_id, size_t *bits ) in mbedtls_psa_parse_tls_ecc_group() argument 381 mbedtls_ecc_group_to_psa( curve_info->grp_id, bits ) ) ); in mbedtls_psa_parse_tls_ecc_group()
|
D | ecdsa.h | 59 #define MBEDTLS_ECDSA_MAX_SIG_LEN( bits ) \ argument 60 ( /*T,L of SEQUENCE*/ ( ( bits ) >= 61 * 8 ? 3 : 2 ) + \ 61 /*T,L of r,s*/ 2 * ( ( ( bits ) >= 127 * 8 ? 3 : 2 ) + \ 62 /*V of r,s*/ ( ( bits ) + 8 ) / 8 ) )
|
D | asn1write.h | 299 const unsigned char *buf, size_t bits ); 321 size_t bits );
|
/openthread-3.6.0/third_party/mbedtls/repo/tests/src/drivers/ |
D | test_driver_key_management.c | 168 size_t *bits) in mbedtls_test_transparent_import_key() argument 186 key_buffer_length, bits ) ); in mbedtls_test_transparent_import_key() 193 key_buffer_length, bits ) ); in mbedtls_test_transparent_import_key() 205 key_buffer_length, bits ) ); in mbedtls_test_transparent_import_key() 212 key_buffer_length, bits ) ); in mbedtls_test_transparent_import_key() 221 (void)bits; in mbedtls_test_transparent_import_key()
|