Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 12 of 12) sorted by relevance

/mbedtls-latest/tests/src/test_helpers/
Dssl_helpers.c116 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 …]
/mbedtls-latest/tests/include/test/
Dssl_helpers.h136 size_t capacity; member
147 int capacity; member
240 size_t capacity);
289 mbedtls_test_ssl_message_queue *queue, size_t capacity);
Dpsa_exercise_key.h138 size_t capacity, int key_destroyable);
/mbedtls-latest/tests/src/
Dpsa_exercise_key.c492 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()
/mbedtls-latest/library/
Dpsa_crypto.c5610 size_t *capacity) argument
5617 *capacity = operation->capacity;
5622 size_t capacity) argument
5627 if (capacity > operation->capacity) {
5630 operation->capacity = capacity;
6081 if (output_length == 0 && operation->capacity == 0) {
6092 if (output_length > operation->capacity) {
6093 operation->capacity = 0;
6100 operation->capacity -= output_length;
6630 operation->capacity = PSA_HASH_LENGTH(PSA_ALG_SHA_256);
[all …]
Dssl_tls.c6652 size_t capacity) in setup_psa_key_derivation() argument
6700 status = psa_key_derivation_set_capacity(derivation, capacity); in setup_psa_key_derivation()
/mbedtls-latest/include/psa/
Dcrypto.h3305 size_t *capacity);
3333 size_t capacity);
Dcrypto_struct.h208 size_t MBEDTLS_PRIVATE(capacity);
/mbedtls-latest/tests/suites/
Dtest_suite_psa_crypto.data5681 PSA key derivation over capacity: HKDF
5685 PSA key derivation over capacity: TLS 1.2 PRF
5873 PSA key derivation: HKDF-Extract SHA-256, RFC5869 #1, out 32+1 (over capacity)
6003 PSA key derivation: HKDF-Expand SHA-256, RFC5869 #1, out 42+1 (over capacity)
6342 PSA key derivation: HKDF SHA-256, request maximum capacity
6346 PSA key derivation: HKDF SHA-1, request maximum capacity
6350 PSA key derivation: HKDF-Expand SHA-256, request maximum capacity
6354 PSA key derivation: HKDF-Expand SHA-1, request maximum capacity
6358 PSA key derivation: HKDF SHA-256, request too much capacity
6362 PSA key derivation: HKDF SHA-1, request too much capacity
[all …]
Dtest_suite_psa_crypto.function8738 size_t capacity;
8745 /* A default operation should not be able to report its capacity. */
8746 TEST_EQUAL(psa_key_derivation_get_capacity(&func, &capacity),
8748 TEST_EQUAL(psa_key_derivation_get_capacity(&init, &capacity),
8750 TEST_EQUAL(psa_key_derivation_get_capacity(&zero, &capacity),
8783 size_t capacity = capacity_arg;
8791 TEST_EQUAL(psa_key_derivation_set_capacity(&operation, capacity),
8938 size_t capacity = sizeof(buffer);
8958 capacity, 0)) {
8966 PSA_ASSERT(psa_key_derivation_output_bytes(&operation, buffer, capacity));
[all …]
Dtest_suite_ssl.function522 TEST_ASSERT(queue.capacity == 3);
541 TEST_ASSERT(queue.capacity == 3);
544 TEST_ASSERT(queue.capacity == 3);
547 TEST_ASSERT(queue.capacity == 3);
/mbedtls-latest/docs/proposed/
Dpsa-driver-interface.md334 …): 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.