Home
last modified time | relevance | path

Searched refs:static (Results 1 – 25 of 64) sorted by relevance

123

/mbedtls-latest/tests/suites/
Dtest_suite_psa_crypto_se_driver_hal_mocks.function13 static struct {
19 static struct {
27 static struct {
36 static struct {
43 static struct {
50 static struct {
59 static struct {
68 static struct {
73 static struct {
80 static void psa_purge_storage(void)
[all …]
Dtest_suite_psa_crypto_se_driver_hal.function113 static size_t ecc_curve_bits(psa_ecc_family_t curve, size_t data_length)
140 static validate_slot_number_directions_t validate_slot_number_directions;
143 static psa_status_t validate_slot_number_as_directed(
161 static psa_key_slot_number_t shadow_counter;
162 static void counter_reset(void)
166 static psa_status_t counter_allocate(psa_drv_se_context_t *context,
189 static psa_status_t null_import(psa_drv_se_context_t *context,
209 static psa_status_t null_generate(psa_drv_se_context_t *context,
231 static psa_status_t null_destroy(psa_drv_se_context_t *context,
254 static ram_slot_t ram_slots[16];
[all …]
Dtest_suite_ecjpake.function5 static const unsigned char ecjpake_test_x1[] = {
11 static const unsigned char ecjpake_test_x2[] = {
17 static const unsigned char ecjpake_test_x3[] = {
23 static const unsigned char ecjpake_test_x4[] = {
29 static const unsigned char ecjpake_test_X1[] = {
38 static const unsigned char ecjpake_test_X2[] = {
47 static const unsigned char ecjpake_test_X3[] = {
56 static const unsigned char ecjpake_test_X4[] = {
66 static int ecjpake_test_load(mbedtls_ecjpake_context *ctx,
Dhost_test.function11 static int verify_string(char **str)
35 static int verify_int(char *str, intmax_t *p_value)
83 static int get_line(FILE *f, char *buf, size_t len)
134 static int parse_arguments(char *buf, size_t len, char **params,
204 static int convert_params(size_t cnt, char **params,
280 static int test_snprintf(size_t n, const char *ref_buf, int ref_ret)
308 static int run_test_snprintf(void)
325 static void write_outcome_entry(FILE *outcome_file,
330 static const char *platform = NULL;
331 static const char *configuration = NULL;
[all …]
Dtest_suite_psa_crypto_init.function11 static int check_stats(void)
55 static int fake_entropy_source(void *state_arg,
80 static uint32_t custom_entropy_sources_mask;
81 static fake_entropy_state_t fake_entropy_state;
85 static void custom_entropy_init(mbedtls_entropy_context *ctx)
139 static void *thread_psa_init_function(void *ctx)
196 static unsigned char seed[ENTROPY_MIN_NV_SEED_SIZE];
Dtest_suite_entropy.function25 static int entropy_dummy_source(void *arg, unsigned char *output,
57 static void entropy_clear_sources(mbedtls_entropy_context *ctx)
68 static unsigned char buffer_seed[MBEDTLS_ENTROPY_BLOCK_SIZE];
70 static int buffer_nv_seed_read(unsigned char *buf, size_t buf_len)
80 static int buffer_nv_seed_write(unsigned char *buf, size_t buf_len)
95 static int write_nv_seed(unsigned char *buf, size_t buf_len)
119 static int read_nv_seed(unsigned char *buf, size_t buf_len)
Dtest_suite_psa_crypto_storage_format.function19 static int test_written_key(const psa_key_attributes_t *attributes,
53 static int can_export(const psa_key_attributes_t *attributes)
65 static int is_accelerated_rsa(psa_algorithm_t alg)
89 static int can_exercise(const psa_key_attributes_t *attributes)
145 static int test_read_key(const psa_key_attributes_t *expected_attributes,
Dtest_suite_gcm.function7 static int check_multipart(mbedtls_gcm_context *ctx,
35 * count as an overflow for memory sanitizers and static checkers. */
65 static void check_cipher_with_empty_ad(mbedtls_gcm_context *ctx,
89 * count as an overflow for memory sanitizers and static checkers. */
107 static void check_empty_cipher_with_ad(mbedtls_gcm_context *ctx,
137 static void check_no_cipher_no_ad(mbedtls_gcm_context *ctx,
156 static void gcm_reset_ctx(mbedtls_gcm_context *ctx, const uint8_t *key,
Dmain_test.function72 static int get_expression(int32_t exp_id, intmax_t *out_value)
103 static int dep_check(int dep_id)
158 static int dispatch_test(size_t func_idx, void **params)
196 static int check_test(size_t func_idx)
Dtest_suite_pkcs1_v15.function138 static unsigned char N[128] = {
156 static unsigned char E[1] = { 0x03 };
157 static unsigned char P[64] = {
167 static unsigned char Q[64] = {
179 static unsigned char default_content[128] = {
Dtest_suite_psa_its.function30 static void psa_its_fill_filename(psa_storage_uid_t uid, char *filename)
45 static psa_storage_uid_t uid_max = 0;
47 static void cleanup(void)
68 static psa_status_t psa_its_set_wrap(psa_storage_uid_t uid,
Dtest_suite_x509parse.function66 static int verify_none(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
76 static int verify_all(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
88 static int ca_callback_fail(void *data, mbedtls_x509_crt const *child,
98 static int ca_callback(void *data, mbedtls_x509_crt const *child,
148 static int verify_fatal(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
165 static char *mystrsep(char **stringp, const char *delim)
198 static void verify_print_init(verify_print_context *ctx)
204 static int verify_print(void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags)
232 static int verify_parse_san(mbedtls_x509_subject_alternative_name *san,
324 static int parse_crt_ext_cb(void *p_ctx, mbedtls_x509_crt const *crt, mbedtls_x509_buf const *oid,
[all …]
Dtest_suite_ctr_drbg.function19 static size_t test_offset_idx = 0;
20 static size_t test_max_idx = 0;
21 static int mbedtls_test_entropy_func(void *data, unsigned char *buf, size_t len)
32 static void ctr_drbg_validate_internal(int reseed_mode, data_t *nonce,
98 static const int thread_random_reps = 10;
Dtest_suite_pkwrite.function14 static void fix_new_lines(unsigned char *in_str, size_t *len)
32 static int pk_write_any_key(mbedtls_pk_context *pk, unsigned char **p,
69 static void pk_write_check_common(char *key_file, int is_public_key, int is_der)
Dhelpers.function69 static int redirect_output(FILE *out_stream, const char *path)
98 static int restore_output(FILE *out_stream, int dup_fd)
Dtest_suite_dhm.function4 static int check_get_value(const mbedtls_dhm_context *ctx,
24 static int check_dhm_param_output(const mbedtls_mpi *expected,
55 static int check_dhm_params(const mbedtls_dhm_context *ctx,
Dtest_suite_psa_crypto_metadata.function109 static int has_even_parity(uint32_t value)
119 static void algorithm_classification(psa_algorithm_t alg, unsigned flags)
158 static void key_type_classification(psa_key_type_t type, unsigned flags)
195 static void mac_algorithm_core(psa_algorithm_t alg, int classification_flags,
221 static void aead_algorithm_core(psa_algorithm_t alg, int classification_flags,
Dtest_suite_x509write.function18 static int mbedtls_rsa_decrypt_func(void *ctx, size_t *olen,
25 static int mbedtls_rsa_sign_func(void *ctx,
33 static size_t mbedtls_rsa_key_len_func(void *ctx)
41 static int x509_crt_verifycsr(const unsigned char *buf, size_t buflen)
101 static int csr_set_extended_key_usage(mbedtls_x509write_csr *ctx,
Dtest_suite_pk.function190 static int get_predefined_key_data(int is_ec, int group_id_or_keybits,
224 static psa_status_t pk_psa_import_key(const unsigned char *key_data, size_t key_len,
257 static int pk_setup(mbedtls_pk_context *pk, mbedtls_pk_type_t pk_type, int curve_or_keybits)
323 static psa_status_t pk_psa_setup(psa_key_type_t type, size_t bits,
368 static psa_key_usage_t pk_get_psa_attributes_implied_usage(
396 static int pk_public_same(const mbedtls_pk_context *pk1,
471 static int mbedtls_rsa_decrypt_func(void *ctx, size_t *olen,
479 static int mbedtls_rsa_sign_func(void *ctx,
490 static size_t mbedtls_rsa_key_len_func(void *ctx)
503 static int pk_setup_for_type(mbedtls_pk_type_t pk_type, int want_pair,
[all …]
Dtest_suite_pkparse.function18 static int test_psa_bridge(const mbedtls_pk_context *ctx,
87 static int pk_can_ecdsa(const mbedtls_pk_context *ctx)
/mbedtls-latest/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja73 static inline psa_status_t psa_driver_wrapper_init( void )
97 static inline void psa_driver_wrapper_free( void )
112 static inline psa_status_t psa_driver_wrapper_sign_message(
187 static inline psa_status_t psa_driver_wrapper_verify_message(
258 static inline psa_status_t psa_driver_wrapper_sign_hash(
362 static inline psa_status_t psa_driver_wrapper_verify_hash(
463 static inline uint32_t psa_driver_wrapper_sign_hash_get_num_ops(
487 static inline uint32_t psa_driver_wrapper_verify_hash_get_num_ops(
512 static inline psa_status_t psa_driver_wrapper_sign_hash_start(
557 static inline psa_status_t psa_driver_wrapper_sign_hash_complete(
[all …]
/mbedtls-latest/docs/architecture/
Dpsa-keystore-design.md69static key slots](#static-key-store) with dynamic key data): the key store is a statically allocat…
70 * Fully [static key store](#static-key-store) (since Mbed TLS 3.6.3): the key store is a statically…
79 The static key store could become a runtime decision, where only keys larger than some threshold re…
87 * With a [static key store](#static-key-store), there is a single, statically allocated slice, with…
92 …n in the volatile key identifier is different for a [static](#volatile-key-identifiers-in-the-stat…
96 The static key store is the historical implementation. The key store is a statically allocated arra…
98static key store: a hybrid variant (default), and a fully-static variant enabled by the configurat…
100 #### Volatile key identifiers in the static key store
104 #### Key creation with a static key store
108 #### Freeing a key slot with a static key store
[all …]
/mbedtls-latest/library/
DMakefile210 .PHONY: all static shared clean
213 all: static
215 all: shared static
218 static: libmbedcrypto.a libmbedx509.a libmbedtls.a target
258 … -o $@ $(OBJS_TLS) -lws2_32 -lwinmm -lgdi32 -L. -lmbedx509 -lmbedcrypto -static-libgcc $(LOCAL_LDF…
287 …mplib,$@.a -o $@ $(OBJS_X509) -lws2_32 -lwinmm -lgdi32 -L. -lmbedcrypto -static-libgcc $(LOCAL_LDF…
316 …,$@ -Wl,--out-implib,$@.a -o $@ $(OBJS_CRYPTO) -lws2_32 -lwinmm -lgdi32 -static-libgcc $(LOCAL_LDF…
DCMakeLists.txt1 option(USE_STATIC_MBEDTLS_LIBRARY "Build Mbed TLS static library." ON)
245 message(FATAL_ERROR "Need to choose static or shared mbedtls build!")
/mbedtls-latest/scripts/data_files/
Dversion_features.fmt16 static const char * const features[] = {

123