Home
last modified time | relevance | path

Searched full:cache (Results 1 – 25 of 35) sorted by relevance

12

/mbedtls-3.5.0/library/
Dssl_cache.c2 * SSL session cache implementation
35 void mbedtls_ssl_cache_init(mbedtls_ssl_cache_context *cache) in mbedtls_ssl_cache_init() argument
37 memset(cache, 0, sizeof(mbedtls_ssl_cache_context)); in mbedtls_ssl_cache_init()
39 cache->timeout = MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT; in mbedtls_ssl_cache_init()
40 cache->max_entries = MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES; in mbedtls_ssl_cache_init()
43 mbedtls_mutex_init(&cache->mutex); in mbedtls_ssl_cache_init()
48 static int ssl_cache_find_entry(mbedtls_ssl_cache_context *cache, in ssl_cache_find_entry() argument
59 for (cur = cache->chain; cur != NULL; cur = cur->next) { in ssl_cache_find_entry()
61 if (cache->timeout != 0 && in ssl_cache_find_entry()
62 (int) (t - cur->timestamp) > cache->timeout) { in ssl_cache_find_entry()
[all …]
Dcipher.c593 * If there is not enough data for a full block, cache it. in mbedtls_cipher_update()
632 * Cache final, incomplete block in mbedtls_cipher_update()
635 /* Encryption: only cache partial blocks in mbedtls_cipher_update()
637 * Decryption w/o padding: only cache partial blocks in mbedtls_cipher_update()
Dconstant_time.c931 * to a shared memory cache), and branches (especially visible to in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
932 * an adversary who has access to a shared code cache or to a shared in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
998 * through memory or cache access patterns. */ in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
/mbedtls-3.5.0/include/mbedtls/
Dssl_cache.h4 * \brief SSL session cache implementation
47 #define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /*!< Maximum entries in cache */
60 * \brief This structure is used for storing cache entries
77 * \brief Cache context
81 int MBEDTLS_PRIVATE(timeout); /*!< cache entry timeout */
89 * \brief Initialize an SSL cache context
91 * \param cache SSL cache context
93 void mbedtls_ssl_cache_init(mbedtls_ssl_cache_context *cache);
96 * \brief Cache get callback implementation
99 * \param data The SSL cache context to use.
[all …]
Dssl.h845 * \brief Callback type: server-side session cache getter
847 * The session cache is logically a key value store, with
853 * \param data The address of the session cache structure to query.
872 * \brief Callback type: server-side session cache setter
874 * The session cache is logically a key value store, with
880 * \param data The address of the session cache structure to modify.
884 * session cache.
1413 /** Callback to retrieve a session from the cache */
1415 /** Callback to store a session into the cache */
1417 void *MBEDTLS_PRIVATE(p_cache); /*!< context for cache callbacks */
[all …]
Dmbedtls_config.h3219 * Enable simple SSL cache implementation.
3718 /* SSL Cache options */
3720 //#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES 50 /**< Maximum entries in cache */
/mbedtls-3.5.0/programs/x509/
Dload_roots.c75 " iterations=%%d Iteration count (not including cache priming); default: 1\n" \
76 " prime=%%d Prime the disk read cache? Default: 1 (yes)\n" \
86 int prime_cache; /* Prime the disk read cache? */
/mbedtls-3.5.0/programs/ssl/
Dssl_server.c92 mbedtls_ssl_cache_context cache; in main() local
100 mbedtls_ssl_cache_init(&cache); in main()
192 mbedtls_ssl_conf_session_cache(&conf, &cache, in main()
352 mbedtls_ssl_cache_free(&cache); in main()
Ddtls_server.c106 mbedtls_ssl_cache_context cache; in main() local
115 mbedtls_ssl_cache_init(&cache); in main()
212 mbedtls_ssl_conf_session_cache(&conf, &cache, in main()
393 mbedtls_ssl_cache_free(&cache); in main()
Dssl_pthread_server.c306 mbedtls_ssl_cache_context cache; in main() local
314 mbedtls_ssl_cache_init(&cache); in main()
407 mbedtls_ssl_conf_session_cache(&conf, &cache, in main()
471 mbedtls_ssl_cache_free(&cache); in main()
Dssl_server2.c325 " cache_max=%%d default: cache default (50)\n" \
329 " cache_timeout=%%d default: cache default (1d)\n"
670 int cache_max; /* max number of session cache entries */
672 int cache_timeout; /* expiration delay of session cache entries*/
674 int cache_remove; /* enable / disable cache removement */
1518 mbedtls_ssl_cache_context cache; in main() local
1615 mbedtls_ssl_cache_init(&cache); in main()
2918 mbedtls_ssl_cache_set_max_entries(&cache, opt.cache_max); in main()
2923 mbedtls_ssl_cache_set_timeout(&cache, opt.cache_timeout); in main()
2927 mbedtls_ssl_conf_session_cache(&conf, &cache, in main()
[all …]
/mbedtls-3.5.0/tests/
DDescriptions.txt21 covered by compat.sh: session resumption (using session cache or tickets),
Dssl-opt.sh26 # (session resumption from cache or ticket, renego, etc).
3686 -S "session successfully restored from cache" \
3701 -S "session successfully restored from cache" \
3707 run_test "Session resume using tickets: cache disabled" \
3716 -S "session successfully restored from cache" \
3731 -S "session successfully restored from cache" \
3746 -S "session successfully restored from cache" \
3770 -S "session successfully restored from cache" \
3784 -S "session successfully restored from cache" \
3799 -S "session successfully restored from cache" \
[all …]
/mbedtls-3.5.0/tests/scripts/
Ddocker_env.sh76 --cache-from=${DOCKER_IMAGE_TAG} \
/mbedtls-3.5.0/docs/
D3.0-migration-guide.md897 ### Session Cache API Change
900 to configure a custom session cache implementation different
903 Those users will need to modify the API of their session cache
919 onwards, portable session cache implementations must not access fields of
921 find themselves unable to migrate their session cache functionality without
/mbedtls-3.5.0/tests/src/test_helpers/
Dssl_helpers.c92 opts->cache = NULL; in mbedtls_test_init_handshake_options()
93 ASSERT_ALLOC(opts->cache, 1); in mbedtls_test_init_handshake_options()
94 mbedtls_ssl_cache_init(opts->cache); in mbedtls_test_init_handshake_options()
104 mbedtls_ssl_cache_free(opts->cache); in mbedtls_test_free_handshake_options()
105 mbedtls_free(opts->cache); in mbedtls_test_free_handshake_options()
814 if (endpoint_type == MBEDTLS_SSL_IS_SERVER && options->cache != NULL) { in mbedtls_test_ssl_endpoint_init()
815 mbedtls_ssl_conf_session_cache(&(ep->conf), options->cache, in mbedtls_test_ssl_endpoint_init()
/mbedtls-3.5.0/
DSECURITY.md54 to. Typical attack vectors include cache timings, memory bus contention and
D.travis.yml6 cache: ccache
DCMakeLists.txt117CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan MemSanDbg …
DChangeLog71 * Add new API mbedtls_ssl_cache_remove for cache entry removal by
98 * Zeroize SSL cache entries when they are freed.
325 Wenjian HE, Sharad Sinha, and Wei ZHANG. See "Cache Side-channel Attacks
945 * The getter and setter API of the SSL session cache (used for
1668 fixes a local Lucky 13 cache attack found and reported by Tuba Yavuz,
2671 plaintext of messages under some conditions by using a cache attack
2682 previous entry) by using a cache attack targeting the SSL input record
3347 against side-channel attacks like the cache attack described in
3968 * Add countermeasure against "Lucky 13 strikes back" cache-based attack,
4567 * Add countermeasure against "Lucky 13 strikes back" cache-based attack,
[all …]
DREADME.md176 CMake cache. This can be done with the following command using GNU find:
/mbedtls-3.5.0/scripts/mbedtls_dev/
Dpsa_storage.py46 """Cache of known values of expressions."""
/mbedtls-3.5.0/tests/include/test/
Dpsa_crypto_helpers.h73 /** Purge the in-memory cache of persistent keys recorded with
Dssl_helpers.h100 mbedtls_ssl_cache_context *cache; member
/mbedtls-3.5.0/tests/suites/
Dtest_suite_ssl.function3050 srv_pattern.pattern = cli_pattern.pattern = "cache did not store session";
3095 /* Make sure that the cache did not store the session */

12