/openthread-latest/third_party/mbedtls/repo/library/ |
D | psa_util.c | 190 size_t *bits) in mbedtls_ecc_group_to_psa() argument 195 *bits = 192; in mbedtls_ecc_group_to_psa() 200 *bits = 224; in mbedtls_ecc_group_to_psa() 205 *bits = 256; in mbedtls_ecc_group_to_psa() 210 *bits = 384; in mbedtls_ecc_group_to_psa() 215 *bits = 521; in mbedtls_ecc_group_to_psa() 220 *bits = 256; in mbedtls_ecc_group_to_psa() 225 *bits = 384; in mbedtls_ecc_group_to_psa() 230 *bits = 512; in mbedtls_ecc_group_to_psa() 235 *bits = 255; in mbedtls_ecc_group_to_psa() [all …]
|
D | psa_crypto_ecp.c | 40 static int check_ecc_parameters(psa_ecc_family_t family, size_t *bits) in check_ecc_parameters() argument 44 switch (*bits) { in check_ecc_parameters() 52 *bits = 521; in check_ecc_parameters() 58 switch (*bits) { in check_ecc_parameters() 67 switch (*bits) { in check_ecc_parameters() 72 *bits = 255; in check_ecc_parameters() 78 switch (*bits) { in check_ecc_parameters() 213 size_t *key_buffer_length, size_t *bits) in mbedtls_psa_ecp_import_key() argument 220 attributes->bits, in mbedtls_psa_ecp_import_key() 230 *bits = ecp->grp.nbits + 1; in mbedtls_psa_ecp_import_key() [all …]
|
D | asn1write.c | 269 size_t bits) in mbedtls_asn1_write_named_bitstring() argument 276 byte_len = (bits + 7) / 8; in mbedtls_asn1_write_named_bitstring() 277 unused_bits = (byte_len * 8) - bits; in mbedtls_asn1_write_named_bitstring() 284 if (bits != 0) { in mbedtls_asn1_write_named_bitstring() 296 bits--; in mbedtls_asn1_write_named_bitstring() 297 if (bits == 0) { in mbedtls_asn1_write_named_bitstring() 301 if (bits % 8 == 0) { in mbedtls_asn1_write_named_bitstring() 307 return mbedtls_asn1_write_bitstring(p, start, buf, bits); in mbedtls_asn1_write_named_bitstring() 311 const unsigned char *buf, size_t bits) in mbedtls_asn1_write_bitstring() argument 316 byte_len = (bits + 7) / 8; in mbedtls_asn1_write_bitstring() [all …]
|
D | psa_crypto_storage.c | 230 uint8_t bits[2]; member 249 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->bits, storage_format->bits, 0); in psa_format_key_data_for_storage() 309 attr->bits = MBEDTLS_GET_UINT16_LE(storage_format->bits, 0); in psa_parse_key_data_from_storage()
|
D | psa_crypto.c | 301 static int psa_is_dh_key_size_valid(size_t bits) in psa_is_dh_key_size_valid() argument 303 switch (bits) { in psa_is_dh_key_size_valid() 610 size_t bits) in psa_validate_unstructured_key_bit_size() argument 622 if (bits != 128 && bits != 192 && bits != 256) { in psa_validate_unstructured_key_bit_size() 629 if (bits != 128 && bits != 192 && bits != 256) { in psa_validate_unstructured_key_bit_size() 636 if (bits != 128 && bits != 192 && bits != 256) { in psa_validate_unstructured_key_bit_size() 643 if (bits != 64 && bits != 128 && bits != 192) { in psa_validate_unstructured_key_bit_size() 650 if (bits != 256) { in psa_validate_unstructured_key_bit_size() 658 if (bits % 8 != 0) { in psa_validate_unstructured_key_bit_size() 739 size_t *key_buffer_length, size_t *bits) in psa_import_key_into_slot() argument [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_asn1write.data | 121 ASN.1 Write mpi, 127*8-1 bits 124 ASN.1 Write mpi, 127*8 bits 127 ASN.1 Write mpi, 127*8+1 bits 130 ASN.1 Write mpi, 255*8-1 bits 133 ASN.1 Write mpi, 255*8 bits 136 ASN.1 Write mpi, 256*8-1 bits 274 ASN.1 Write Named Bitstring / Unused bits #0 277 ASN.1 Write Named Bitstring / Unused bits #1 280 ASN.1 Write Named Bitstring / Unused bits #2 283 ASN.1 Write Named Bitstring / Unused bits #3 [all …]
|
D | test_suite_pkwrite.data | 17 Public key write check EC 192 bits 21 Public key write check EC 192 bits (DER) 25 Public key write check EC 521 bits 29 Public key write check EC 521 bits (DER) 33 Public key write check EC Brainpool 512 bits 37 Public key write check EC Brainpool 512 bits (DER) 73 Private key write check EC 192 bits 77 Private key write check EC 192 bits (DER) 81 Private key write check EC 256 bits (top bit set) 85 Private key write check EC 256 bits (top bit set) (DER) [all …]
|
D | test_suite_debug.data | 41 mbedtls_debug_print_mpi:"":"MyFile":999:"VALUE":"MyFile(0999)\: value of 'VALUE' (0 bits) is\:\nMyF… 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); 40 TEST_EQUAL(psa_get_key_bits(&attributes), bits);
|
D | test_suite_psa_crypto_hash.data | 193 PSA hash finish: SHA3-224 Test Vector NIST 448 bits: "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnl… 197 PSA hash finish: SHA3-256 Test Vector NIST 448 bits: "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnl… 201 PSA hash finish: SHA3-384 Test Vector NIST 448 bits: "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnl… 205 PSA hash finish: SHA3-512 Test Vector NIST 448 bits: "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnl… 209 PSA hash finish: SHA3-224 Test Vector NIST 896 bits: "abcdefghbcdefghicdefghijdefghijkefghijklfghij… 213 PSA hash finish: SHA3-256 Test Vector NIST 896 bits: "abcdefghbcdefghicdefghijdefghijkefghijklfghij… 217 PSA hash finish: SHA3-384 Test Vector NIST 896 bits: "abcdefghbcdefghicdefghijdefghijkefghijklfghij… 221 PSA hash finish: SHA3-512 Test Vector NIST 896 bits: "abcdefghbcdefghicdefghijdefghijkefghijklfghij… 581 PSA hash multi part: SHA3-224 Test Vector NIST 448 bits: "abcdbcdecdefdefgefghfghighijhijkijkljklmk… 585 PSA hash multi part: SHA3-256 Test Vector NIST 448 bits: "abcdbcdecdefdefgefghfghighijhijkijkljklmk… [all …]
|
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 #7 (MD5, 2048 bits RSA) 231 RSA PKCS1 Sign #8 (RAW, 2048 bits RSA) 251 RSA PKCS1 Sign #10 (RIPEMD160, 2048 bits RSA) 255 RSA PKCS1 Verify #10 (RIPEMD160, 2048 bits RSA) 324 RSA Check Public key #4 (N exactly 128 bits) 327 RSA Check Public key #5 (N smaller than 128 bits) [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_se_driver_hal.function | 113 /* If not listed above, assume a multiple of 8 bits. */ 181 size_t *bits) 189 *bits = PSA_BYTES_TO_BITS(data_length); 238 size_t bits; 243 /* A type with at least ARRAY_LENGTH(ram_slots) bits, containing a 276 ram_slots[slot_number].bits = psa_get_key_bits(attributes); 317 size_t *bits) 330 *bits = PSA_BYTES_TO_BITS(data_length); 332 *bits = ecc_curve_bits(PSA_KEY_TYPE_ECC_GET_FAMILY(type), data_length); 333 if (*bits == 0) { [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/scripts/ |
D | generate_psa_tests.py | 28 verb: str, key_type: str, bits: int, 43 .format(verb, short_key_type, bits, adverb)) 91 for bits in kt.sizes_to_test(): 93 'import', kt.expression, bits, 94 psa_information.finish_family_dependencies(import_dependencies, bits), 95 test_case.hex_string(kt.key_material(bits)), 107 'generate', kt.expression, bits, 108 psa_information.finish_family_dependencies(generate_dependencies, bits), 109 str(bits), 144 key_type: str, bits: int, [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/src/ |
D | psa_exercise_key.c | 49 size_t bits; in check_key_attributes_sanity() local 60 bits = psa_get_key_bits(&attributes); in check_key_attributes_sanity() 94 TEST_ASSERT(bits != 0); in check_key_attributes_sanity() 95 TEST_ASSERT(bits <= PSA_MAX_KEY_BITS); in check_key_attributes_sanity() 97 TEST_ASSERT(bits % 8 == 0); in check_key_attributes_sanity() 102 TEST_ASSERT(bits <= PSA_VENDOR_ECC_MAX_CURVE_BITS); in check_key_attributes_sanity() 104 TEST_ASSERT(bits <= PSA_VENDOR_RSA_MAX_KEY_BITS); in check_key_attributes_sanity() 844 psa_key_type_t type, size_t bits, in mbedtls_test_psa_exported_key_sanity_check() argument 847 TEST_ASSERT(exported_length <= PSA_EXPORT_KEY_OUTPUT_SIZE(type, bits)); in mbedtls_test_psa_exported_key_sanity_check() 850 TEST_EQUAL(exported_length, PSA_BITS_TO_BYTES(bits)); in mbedtls_test_psa_exported_key_sanity_check() [all …]
|
/openthread-latest/third_party/mbedtls/repo/3rdparty/p256-m/ |
D | p256-m_driver_entrypoints.c | 67 size_t *bits) in p256_transparent_import_key() argument 70 if (*bits != 0 && *bits != CURVE_BITS) { in p256_transparent_import_key() 78 return *bits == 0 ? PSA_ERROR_NOT_SUPPORTED : PSA_ERROR_INVALID_ARGUMENT; in p256_transparent_import_key() 86 return *bits == 0 ? PSA_ERROR_NOT_SUPPORTED : PSA_ERROR_INVALID_ARGUMENT; in p256_transparent_import_key() 94 *bits = CURVE_BITS; in p256_transparent_import_key() 114 size_t bits = psa_get_key_bits(attributes); in p256_transparent_export_public_key() local 116 if (bits != CURVE_BITS || type != PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)) { in p256_transparent_export_public_key()
|
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/ |
D | psa_util.h | 88 size_t *bits); 103 size_t bits); 165 int mbedtls_ecdsa_raw_to_der(size_t bits, const unsigned char *raw, size_t raw_len, 181 int mbedtls_ecdsa_der_to_raw(size_t bits, const unsigned char *der, size_t der_len,
|
D | ecdsa.h | 44 #define MBEDTLS_ECDSA_MAX_SIG_LEN(bits) \ argument 45 (/*T,L of SEQUENCE*/ ((bits) >= 61 * 8 ? 3 : 2) + \ 46 /*T,L of r,s*/ 2 * (((bits) >= 127 * 8 ? 3 : 2) + \ 47 /*V of r,s*/ ((bits) + 8) / 8))
|
/openthread-latest/third_party/mbedtls/repo/tests/src/drivers/ |
D | test_driver_key_management.c | 271 size_t *bits) in mbedtls_test_transparent_import_key() argument 290 key_buffer_length, bits); in mbedtls_test_transparent_import_key() 297 key_buffer_length, bits); in mbedtls_test_transparent_import_key() 307 key_buffer_length, bits); in mbedtls_test_transparent_import_key() 314 key_buffer_length, bits); in mbedtls_test_transparent_import_key() 324 key_buffer_length, bits); in mbedtls_test_transparent_import_key() 331 key_buffer_length, bits); in mbedtls_test_transparent_import_key() 339 (void) bits; in mbedtls_test_transparent_import_key() 353 size_t *bits) in mbedtls_test_opaque_import_key() argument 374 *bits = PSA_BYTES_TO_BITS(data_length); in mbedtls_test_opaque_import_key() [all …]
|
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | psa_storage.py | 107 bits: int, 115 self.bits = bits #type: int 156 self.lifetime, self.type, self.bits, 182 type=0x2400, bits=128, 193 type='PSA_KEY_TYPE_RAW_DATA', bits=length*8, 201 key = Key(type=0x1001, bits=8,
|
D | psa_information.py | 52 def finish_family_dependency(dep: str, bits: int) -> str: 59 return re.sub(r'_FAMILY_(.*)', r'_\1_' + str(bits), dep) 61 def finish_family_dependencies(dependencies: List[str], bits: int) -> List[str]: 66 return [finish_family_dependency(dep, bits) for dep in dependencies]
|
D | bignum_data.py | 143 def __gen_safe_prime(bits, seed): argument 157 prime = 2*getPrime(bits-1, rng.randbytes)+1 #pylint: disable=no-member
|
/openthread-latest/third_party/tcplp/lib/ |
D | bitmap.h | 37 #define BITS_TO_BYTES(bits) (((bits) >> 3) + (((bits) & 0x7) ? 1 : 0)) argument
|
/openthread-latest/third_party/mbedtls/repo/include/psa/ |
D | crypto_struct.h | 275 psa_key_bits_t MBEDTLS_PRIVATE(bits); 406 size_t bits) in psa_set_key_bits() argument 408 if (bits > PSA_MAX_KEY_BITS) { in psa_set_key_bits() 409 attributes->MBEDTLS_PRIVATE(bits) = PSA_KEY_BITS_TOO_LARGE; in psa_set_key_bits() 411 attributes->MBEDTLS_PRIVATE(bits) = (psa_key_bits_t) bits; in psa_set_key_bits() 418 return attributes->MBEDTLS_PRIVATE(bits); in psa_get_key_bits()
|
/openthread-latest/third_party/mbedtls/repo/scripts/ |
D | ecc-heap.sh | 52 // NIST curves >= 256 bits 56 // SECP "koblitz-like" curve >= 256 bits
|