/openthread-latest/third_party/mbedtls/repo/tests/src/test_helpers/ |
D | ssl_helpers.c | 116 size_t capacity) in mbedtls_test_ssl_buffer_setup() argument 118 buf->buffer = (unsigned char *) mbedtls_calloc(capacity, in mbedtls_test_ssl_buffer_setup() 123 buf->capacity = capacity; in mbedtls_test_ssl_buffer_setup() 147 if ((buf->content_length + input_len) > buf->capacity) { in mbedtls_test_ssl_buffer_put() 148 input_len = buf->capacity - buf->content_length; in mbedtls_test_ssl_buffer_put() 157 if (buf->start + buf->content_length < buf->capacity) { in mbedtls_test_ssl_buffer_put() 162 > buf->capacity) { in mbedtls_test_ssl_buffer_put() 164 % buf->capacity; in mbedtls_test_ssl_buffer_put() 173 memcpy(buf->buffer + buf->start + buf->content_length - buf->capacity, in mbedtls_test_ssl_buffer_put() 200 if (buf->start + output_len > buf->capacity) { in mbedtls_test_ssl_buffer_get() [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/include/test/ |
D | ssl_helpers.h | 136 size_t capacity; member 147 int capacity; member 240 size_t capacity); 289 mbedtls_test_ssl_message_queue *queue, size_t capacity);
|
D | psa_exercise_key.h | 138 size_t capacity, int key_destroyable);
|
/openthread-latest/third_party/mbedtls/repo/tests/src/ |
D | psa_exercise_key.c | 492 size_t capacity, int key_destroyable) in mbedtls_test_psa_setup_key_derivation_wrap() argument 577 if (capacity != SIZE_MAX) { in mbedtls_test_psa_setup_key_derivation_wrap() 578 PSA_ASSERT(psa_key_derivation_set_capacity(operation, capacity)); in mbedtls_test_psa_setup_key_derivation_wrap() 599 size_t capacity = sizeof(output); in exercise_key_derivation_key() local 605 capacity, key_destroyable)) { in exercise_key_derivation_key() 611 capacity); in exercise_key_derivation_key()
|
/openthread-latest/third_party/mbedtls/repo/library/ |
D | psa_crypto.c | 5552 size_t *capacity) in psa_key_derivation_get_capacity() argument 5559 *capacity = operation->capacity; in psa_key_derivation_get_capacity() 5564 size_t capacity) in psa_key_derivation_set_capacity() argument 5569 if (capacity > operation->capacity) { in psa_key_derivation_set_capacity() 5572 operation->capacity = capacity; in psa_key_derivation_set_capacity() 6023 if (output_length == 0 && operation->capacity == 0) { in psa_key_derivation_output_bytes() 6034 if (output_length > operation->capacity) { in psa_key_derivation_output_bytes() 6035 operation->capacity = 0; in psa_key_derivation_output_bytes() 6042 operation->capacity -= output_length; in psa_key_derivation_output_bytes() 6555 operation->capacity = PSA_HASH_LENGTH(PSA_ALG_SHA_256); in psa_key_derivation_set_maximum_capacity() [all …]
|
D | ssl_tls.c | 6687 size_t capacity) in setup_psa_key_derivation() argument 6735 status = psa_key_derivation_set_capacity(derivation, capacity); in setup_psa_key_derivation()
|
/openthread-latest/third_party/mbedtls/repo/include/psa/ |
D | crypto.h | 3302 size_t *capacity); 3330 size_t capacity);
|
D | crypto_struct.h | 208 size_t MBEDTLS_PRIVATE(capacity);
|
/openthread-latest/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_psa_crypto.data | 5665 PSA key derivation over capacity: HKDF 5669 PSA key derivation over capacity: TLS 1.2 PRF 5857 PSA key derivation: HKDF-Extract SHA-256, RFC5869 #1, out 32+1 (over capacity) 5987 PSA key derivation: HKDF-Expand SHA-256, RFC5869 #1, out 42+1 (over capacity) 6326 PSA key derivation: HKDF SHA-256, request maximum capacity 6330 PSA key derivation: HKDF SHA-1, request maximum capacity 6334 PSA key derivation: HKDF-Expand SHA-256, request maximum capacity 6338 PSA key derivation: HKDF-Expand SHA-1, request maximum capacity 6342 PSA key derivation: HKDF SHA-256, request too much capacity 6346 PSA key derivation: HKDF SHA-1, request too much capacity [all …]
|
D | test_suite_psa_crypto.function | 8758 size_t capacity; 8765 /* A default operation should not be able to report its capacity. */ 8766 TEST_EQUAL(psa_key_derivation_get_capacity(&func, &capacity), 8768 TEST_EQUAL(psa_key_derivation_get_capacity(&init, &capacity), 8770 TEST_EQUAL(psa_key_derivation_get_capacity(&zero, &capacity), 8803 size_t capacity = capacity_arg; 8811 TEST_EQUAL(psa_key_derivation_set_capacity(&operation, capacity), 8958 size_t capacity = sizeof(buffer); 8978 capacity, 0)) { 8986 PSA_ASSERT(psa_key_derivation_output_bytes(&operation, buffer, capacity)); [all …]
|
D | test_suite_ssl.function | 522 TEST_ASSERT(queue.capacity == 3); 541 TEST_ASSERT(queue.capacity == 3); 544 TEST_ASSERT(queue.capacity == 3); 547 TEST_ASSERT(queue.capacity == 3);
|
/openthread-latest/third_party/mbedtls/repo/docs/proposed/ |
D | psa-driver-interface.md | 334 …): update the capacity policy on the operation. See [“Key derivation driver operation capacity”](#… 441 #### Key derivation driver operation capacity 443 …eps track of an operation's capacity and enforces it. The core guarantees that it will not request… 445 …nforce the capacity limitation and must return `PSA_ERROR_INSUFFICIENT_CAPACITY` from any output r… 449 size_t capacity); 451 `capacity` is guaranteed to be less or equal to any value previously set through this entry point, … 453 If this entry point has not been called, the operation has an unlimited capacity.
|