Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 84) sorted by relevance

1234

/mbedtls-3.7.0/library/
Dcipher_wrap.c123 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context)); in gcm_ctx_alloc() local
132 static void gcm_ctx_free(void *ctx) in gcm_ctx_free()
145 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ccm_context)); in ccm_ctx_alloc() local
154 static void ccm_ctx_free(void *ctx) in ccm_ctx_free()
163 static int aes_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_ecb_wrap()
170 static int aes_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in aes_crypt_cbc_wrap()
179 static int aes_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_cfb128_wrap()
189 static int aes_crypt_ofb_wrap(void *ctx, size_t length, size_t *iv_off, in aes_crypt_ofb_wrap()
198 static int aes_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aes_crypt_ctr_wrap()
208 static int aes_crypt_xts_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_xts_wrap()
[all …]
Dx509write_crt.c40 void mbedtls_x509write_crt_init(mbedtls_x509write_cert *ctx) in mbedtls_x509write_crt_init()
47 void mbedtls_x509write_crt_free(mbedtls_x509write_cert *ctx) in mbedtls_x509write_crt_free()
56 void mbedtls_x509write_crt_set_version(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_version()
62 void mbedtls_x509write_crt_set_md_alg(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_md_alg()
68 void mbedtls_x509write_crt_set_subject_key(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_subject_key()
74 void mbedtls_x509write_crt_set_issuer_key(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_issuer_key()
80 int mbedtls_x509write_crt_set_subject_name(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_subject_name()
86 int mbedtls_x509write_crt_set_issuer_name(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_issuer_name()
93 int mbedtls_x509write_crt_set_serial(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_serial()
116 int mbedtls_x509write_crt_set_serial_raw(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_serial_raw()
[all …]
Decdh.c30 const mbedtls_ecdh_context *ctx) in mbedtls_ecdh_grp_id()
134 static void ecdh_init_internal(mbedtls_ecdh_context_mbed *ctx) in ecdh_init_internal()
147 mbedtls_ecp_group_id mbedtls_ecdh_get_grp_id(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_get_grp_id()
159 void mbedtls_ecdh_init(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_init()
177 static int ecdh_setup_internal(mbedtls_ecdh_context_mbed *ctx, in ecdh_setup_internal()
193 int mbedtls_ecdh_setup(mbedtls_ecdh_context *ctx, mbedtls_ecp_group_id grp_id) in mbedtls_ecdh_setup()
216 static void ecdh_free_internal(mbedtls_ecdh_context_mbed *ctx) in ecdh_free_internal()
233 void mbedtls_ecdh_enable_restart(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_enable_restart()
242 void mbedtls_ecdh_free(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_free()
273 static int ecdh_make_params_internal(mbedtls_ecdh_context_mbed *ctx, in ecdh_make_params_internal()
[all …]
Dhmac_drbg.c33 void mbedtls_hmac_drbg_init(mbedtls_hmac_drbg_context *ctx) in mbedtls_hmac_drbg_init()
43 int mbedtls_hmac_drbg_update(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_update()
97 int mbedtls_hmac_drbg_seed_buf(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed_buf()
134 static int hmac_drbg_reseed_core(mbedtls_hmac_drbg_context *ctx, in hmac_drbg_reseed_core()
210 int mbedtls_hmac_drbg_reseed(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_reseed()
222 int mbedtls_hmac_drbg_seed(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed()
280 void mbedtls_hmac_drbg_set_prediction_resistance(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_set_prediction_resistance()
289 void mbedtls_hmac_drbg_set_entropy_len(mbedtls_hmac_drbg_context *ctx, size_t len) in mbedtls_hmac_drbg_set_entropy_len()
297 void mbedtls_hmac_drbg_set_reseed_interval(mbedtls_hmac_drbg_context *ctx, int interval) in mbedtls_hmac_drbg_set_reseed_interval()
311 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random_with_add() local
[all …]
Dchachapoly.c34 static int chachapoly_pad_aad(mbedtls_chachapoly_context *ctx) in chachapoly_pad_aad()
55 static int chachapoly_pad_ciphertext(mbedtls_chachapoly_context *ctx) in chachapoly_pad_ciphertext()
70 void mbedtls_chachapoly_init(mbedtls_chachapoly_context *ctx) in mbedtls_chachapoly_init()
80 void mbedtls_chachapoly_free(mbedtls_chachapoly_context *ctx) in mbedtls_chachapoly_free()
94 int mbedtls_chachapoly_setkey(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_setkey()
104 int mbedtls_chachapoly_starts(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_starts()
143 int mbedtls_chachapoly_update_aad(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update_aad()
156 int mbedtls_chachapoly_update(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update()
204 int mbedtls_chachapoly_finish(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_finish()
244 static int chachapoly_crypt_and_tag(mbedtls_chachapoly_context *ctx, in chachapoly_crypt_and_tag()
[all …]
Dx509write_csr.c39 void mbedtls_x509write_csr_init(mbedtls_x509write_csr *ctx) in mbedtls_x509write_csr_init()
44 void mbedtls_x509write_csr_free(mbedtls_x509write_csr *ctx) in mbedtls_x509write_csr_free()
52 void mbedtls_x509write_csr_set_md_alg(mbedtls_x509write_csr *ctx, mbedtls_md_type_t md_alg) in mbedtls_x509write_csr_set_md_alg()
57 void mbedtls_x509write_csr_set_key(mbedtls_x509write_csr *ctx, mbedtls_pk_context *key) in mbedtls_x509write_csr_set_key()
62 int mbedtls_x509write_csr_set_subject_name(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_subject_name()
68 int mbedtls_x509write_csr_set_extension(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_extension()
77 int mbedtls_x509write_csr_set_subject_alternative_name(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_subject_alternative_name()
83 int mbedtls_x509write_csr_set_key_usage(mbedtls_x509write_csr *ctx, unsigned char key_usage) in mbedtls_x509write_csr_set_key_usage()
106 int mbedtls_x509write_csr_set_ns_cert_type(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_ns_cert_type()
130 static int x509write_csr_der_internal(mbedtls_x509write_csr *ctx, in x509write_csr_der_internal()
[all …]
Dentropy.c27 void mbedtls_entropy_init(mbedtls_entropy_context *ctx) in mbedtls_entropy_init()
62 void mbedtls_entropy_free(mbedtls_entropy_context *ctx) in mbedtls_entropy_free()
82 int mbedtls_entropy_add_source(mbedtls_entropy_context *ctx, in mbedtls_entropy_add_source()
120 static int entropy_update(mbedtls_entropy_context *ctx, unsigned char source_id, in entropy_update()
169 int mbedtls_entropy_update_manual(mbedtls_entropy_context *ctx, in mbedtls_entropy_update_manual()
194 static int entropy_gather_internal(mbedtls_entropy_context *ctx) in entropy_gather_internal()
245 int mbedtls_entropy_gather(mbedtls_entropy_context *ctx) in mbedtls_entropy_gather()
270 mbedtls_entropy_context *ctx = (mbedtls_entropy_context *) data; in mbedtls_entropy_func() local
379 int mbedtls_entropy_update_nv_seed(mbedtls_entropy_context *ctx) in mbedtls_entropy_update_nv_seed()
402 int mbedtls_entropy_write_seed_file(mbedtls_entropy_context *ctx, const char *path) in mbedtls_entropy_write_seed_file()
[all …]
Dnet_sockets.c150 void mbedtls_net_init(mbedtls_net_context *ctx) in mbedtls_net_init()
158 int mbedtls_net_connect(mbedtls_net_context *ctx, const char *host, in mbedtls_net_connect()
205 int mbedtls_net_bind(mbedtls_net_context *ctx, const char *bind_ip, const char *port, int proto) in mbedtls_net_bind()
277 static int net_would_block(const mbedtls_net_context *ctx) in net_would_block()
289 static int net_would_block(const mbedtls_net_context *ctx) in net_would_block()
427 int mbedtls_net_set_block(mbedtls_net_context *ctx) in mbedtls_net_set_block()
438 int mbedtls_net_set_nonblock(mbedtls_net_context *ctx) in mbedtls_net_set_nonblock()
453 int mbedtls_net_poll(mbedtls_net_context *ctx, uint32_t rw, uint32_t timeout) in mbedtls_net_poll()
540 int mbedtls_net_recv(void *ctx, unsigned char *buf, size_t len) in mbedtls_net_recv()
581 int mbedtls_net_recv_timeout(void *ctx, unsigned char *buf, in mbedtls_net_recv_timeout()
[all …]
Dctr_drbg.c73 void mbedtls_ctr_drbg_init(mbedtls_ctr_drbg_context *ctx) in mbedtls_ctr_drbg_init()
93 void mbedtls_ctr_drbg_free(mbedtls_ctr_drbg_context *ctx) in mbedtls_ctr_drbg_free()
115 void mbedtls_ctr_drbg_set_prediction_resistance(mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_set_prediction_resistance()
121 void mbedtls_ctr_drbg_set_entropy_len(mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_set_entropy_len()
127 int mbedtls_ctr_drbg_set_nonce_len(mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_set_nonce_len()
155 void mbedtls_ctr_drbg_set_reseed_interval(mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_set_reseed_interval()
332 static int ctr_drbg_update_internal(mbedtls_ctr_drbg_context *ctx, in ctr_drbg_update_internal()
411 int mbedtls_ctr_drbg_update(mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_update()
447 static int mbedtls_ctr_drbg_reseed_internal(mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_reseed_internal()
504 int mbedtls_ctr_drbg_reseed(mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_reseed()
[all …]
Ddes.c265 void mbedtls_des_init(mbedtls_des_context *ctx) in mbedtls_des_init()
270 void mbedtls_des_free(mbedtls_des_context *ctx) in mbedtls_des_free()
279 void mbedtls_des3_init(mbedtls_des3_context *ctx) in mbedtls_des3_init()
284 void mbedtls_des3_free(mbedtls_des3_context *ctx) in mbedtls_des3_free()
464 int mbedtls_des_setkey_enc(mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_setkey_enc()
474 int mbedtls_des_setkey_dec(mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]) in mbedtls_des_setkey_dec()
515 int mbedtls_des3_set2key_enc(mbedtls_des3_context *ctx, in mbedtls_des3_set2key_enc()
529 int mbedtls_des3_set2key_dec(mbedtls_des3_context *ctx, in mbedtls_des3_set2key_dec()
565 int mbedtls_des3_set3key_enc(mbedtls_des3_context *ctx, in mbedtls_des3_set3key_enc()
579 int mbedtls_des3_set3key_dec(mbedtls_des3_context *ctx, in mbedtls_des3_set3key_dec()
[all …]
Dccm.c47 void mbedtls_ccm_init(mbedtls_ccm_context *ctx) in mbedtls_ccm_init()
52 int mbedtls_ccm_setkey(mbedtls_ccm_context *ctx, in mbedtls_ccm_setkey()
100 void mbedtls_ccm_free(mbedtls_ccm_context *ctx) in mbedtls_ccm_free()
123 static int mbedtls_ccm_crypt(mbedtls_ccm_context *ctx, in mbedtls_ccm_crypt()
149 static void mbedtls_ccm_clear_state(mbedtls_ccm_context *ctx) in mbedtls_ccm_clear_state()
156 static int ccm_calculate_first_block_if_ready(mbedtls_ccm_context *ctx) in ccm_calculate_first_block_if_ready()
222 int mbedtls_ccm_starts(mbedtls_ccm_context *ctx, in mbedtls_ccm_starts()
260 int mbedtls_ccm_set_lengths(mbedtls_ccm_context *ctx, in mbedtls_ccm_set_lengths()
289 int mbedtls_ccm_update_ad(mbedtls_ccm_context *ctx, in mbedtls_ccm_update_ad()
358 int mbedtls_ccm_update(mbedtls_ccm_context *ctx, in mbedtls_ccm_update()
[all …]
Dmd.c255 void mbedtls_md_init(mbedtls_md_context_t *ctx) in mbedtls_md_init()
261 void mbedtls_md_free(mbedtls_md_context_t *ctx) in mbedtls_md_free()
418 int mbedtls_md_setup(mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac) in mbedtls_md_setup()
510 int mbedtls_md_starts(mbedtls_md_context_t *ctx) in mbedtls_md_starts()
571 int mbedtls_md_update(mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen) in mbedtls_md_update()
627 int mbedtls_md_finish(mbedtls_md_context_t *ctx, unsigned char *output) in mbedtls_md_finish()
909 const mbedtls_md_context_t *ctx) in mbedtls_md_info_from_ctx()
924 mbedtls_md_context_t ctx; in mbedtls_md_file() local
969 int mbedtls_md_hmac_starts(mbedtls_md_context_t *ctx, const unsigned char *key, size_t keylen) in mbedtls_md_hmac_starts()
1017 int mbedtls_md_hmac_update(mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen) in mbedtls_md_hmac_update()
[all …]
Dblock_cipher.c52 void mbedtls_block_cipher_free(mbedtls_block_cipher_context_t *ctx) in mbedtls_block_cipher_free()
82 int mbedtls_block_cipher_setup(mbedtls_block_cipher_context_t *ctx, in mbedtls_block_cipher_setup()
122 int mbedtls_block_cipher_setkey(mbedtls_block_cipher_context_t *ctx, in mbedtls_block_cipher_setkey()
164 int mbedtls_block_cipher_encrypt(mbedtls_block_cipher_context_t *ctx, in mbedtls_block_cipher_encrypt()
Ddhm.c98 void mbedtls_dhm_init(mbedtls_dhm_context *ctx) in mbedtls_dhm_init()
103 size_t mbedtls_dhm_get_bitlen(const mbedtls_dhm_context *ctx) in mbedtls_dhm_get_bitlen()
108 size_t mbedtls_dhm_get_len(const mbedtls_dhm_context *ctx) in mbedtls_dhm_get_len()
113 int mbedtls_dhm_get_value(const mbedtls_dhm_context *ctx, in mbedtls_dhm_get_value()
146 int mbedtls_dhm_read_params(mbedtls_dhm_context *ctx, in mbedtls_dhm_read_params()
180 static int dhm_make_common(mbedtls_dhm_context *ctx, int x_size, in dhm_make_common()
223 int mbedtls_dhm_make_params(mbedtls_dhm_context *ctx, int x_size, in mbedtls_dhm_make_params()
272 int mbedtls_dhm_set_group(mbedtls_dhm_context *ctx, in mbedtls_dhm_set_group()
289 int mbedtls_dhm_read_public(mbedtls_dhm_context *ctx, in mbedtls_dhm_read_public()
308 int mbedtls_dhm_make_public(mbedtls_dhm_context *ctx, int x_size, in mbedtls_dhm_make_public()
[all …]
Dsha3.c95 #define ABSORB(ctx, idx, v) do { ctx->state[(idx) >> 3] ^= ((uint64_t) (v)) << (((idx) & 0x7) << 3)… argument
97 #define SQUEEZE(ctx, idx) ((uint8_t) (ctx->state[(idx) >> 3] >> (((idx) & 0x7) << 3))) argument
101 static void keccak_f1600(mbedtls_sha3_context *ctx) in keccak_f1600()
247 void mbedtls_sha3_init(mbedtls_sha3_context *ctx) in mbedtls_sha3_init()
252 void mbedtls_sha3_free(mbedtls_sha3_context *ctx) in mbedtls_sha3_free()
270 int mbedtls_sha3_starts(mbedtls_sha3_context *ctx, mbedtls_sha3_id id) in mbedtls_sha3_starts()
302 int mbedtls_sha3_update(mbedtls_sha3_context *ctx, in mbedtls_sha3_update()
342 int mbedtls_sha3_finish(mbedtls_sha3_context *ctx, in mbedtls_sha3_finish()
383 mbedtls_sha3_context ctx; in mbedtls_sha3() local
592 mbedtls_sha3_context ctx; in mbedtls_sha3_long_kat_test() local
Dlms.c225 void mbedtls_lms_public_init(mbedtls_lms_public_t *ctx) in mbedtls_lms_public_init()
230 void mbedtls_lms_public_free(mbedtls_lms_public_t *ctx) in mbedtls_lms_public_free()
235 int mbedtls_lms_import_public_key(mbedtls_lms_public_t *ctx, in mbedtls_lms_import_public_key()
269 int mbedtls_lms_export_public_key(const mbedtls_lms_public_t *ctx, in mbedtls_lms_export_public_key()
297 int mbedtls_lms_verify(const mbedtls_lms_public_t *ctx, in mbedtls_lms_verify()
427 static int calculate_merkle_tree(const mbedtls_lms_private_t *ctx, in calculate_merkle_tree()
483 static int get_merkle_path(mbedtls_lms_private_t *ctx, in get_merkle_path()
524 void mbedtls_lms_private_init(mbedtls_lms_private_t *ctx) in mbedtls_lms_private_init()
529 void mbedtls_lms_private_free(mbedtls_lms_private_t *ctx) in mbedtls_lms_private_free()
554 int mbedtls_lms_generate_private_key(mbedtls_lms_private_t *ctx, in mbedtls_lms_generate_private_key()
[all …]
Dssl_ticket.c36 void mbedtls_ssl_ticket_init(mbedtls_ssl_ticket_context *ctx) in mbedtls_ssl_ticket_init()
64 static int ssl_ticket_gen_key(mbedtls_ssl_ticket_context *ctx, in ssl_ticket_gen_key()
118 static int ssl_ticket_update_keys(mbedtls_ssl_ticket_context *ctx) in ssl_ticket_update_keys()
154 int mbedtls_ssl_ticket_rotate(mbedtls_ssl_ticket_context *ctx, in mbedtls_ssl_ticket_rotate()
214 int mbedtls_ssl_ticket_setup(mbedtls_ssl_ticket_context *ctx, in mbedtls_ssl_ticket_setup()
307 mbedtls_ssl_ticket_context *ctx = p_ticket; in mbedtls_ssl_ticket_write() local
401 mbedtls_ssl_ticket_context *ctx, in ssl_ticket_select_key()
424 mbedtls_ssl_ticket_context *ctx = p_ticket; in mbedtls_ssl_ticket_parse() local
535 void mbedtls_ssl_ticket_free(mbedtls_ssl_ticket_context *ctx) in mbedtls_ssl_ticket_free()
Dgcm.c53 void mbedtls_gcm_init(mbedtls_gcm_context *ctx) in mbedtls_gcm_init()
58 static inline void gcm_set_acceleration(mbedtls_gcm_context *ctx) in gcm_set_acceleration()
99 static int gcm_gen_table(mbedtls_gcm_context *ctx) in gcm_gen_table()
162 int mbedtls_gcm_setkey(mbedtls_gcm_context *ctx, in mbedtls_gcm_setkey()
347 static void gcm_mult(mbedtls_gcm_context *ctx, const unsigned char x[16], in gcm_mult()
377 int mbedtls_gcm_starts(mbedtls_gcm_context *ctx, in mbedtls_gcm_starts()
467 int mbedtls_gcm_update_ad(mbedtls_gcm_context *ctx, in mbedtls_gcm_update_ad()
534 static int gcm_mask(mbedtls_gcm_context *ctx, in gcm_mask()
564 int mbedtls_gcm_update(mbedtls_gcm_context *ctx, in mbedtls_gcm_update()
650 int mbedtls_gcm_finish(mbedtls_gcm_context *ctx, in mbedtls_gcm_finish()
[all …]
Dpk.c45 void mbedtls_pk_init(mbedtls_pk_context *ctx) in mbedtls_pk_init()
63 void mbedtls_pk_free(mbedtls_pk_context *ctx) in mbedtls_pk_free()
88 void mbedtls_pk_restart_init(mbedtls_pk_restart_ctx *ctx) in mbedtls_pk_restart_init()
97 void mbedtls_pk_restart_free(mbedtls_pk_restart_ctx *ctx) in mbedtls_pk_restart_free()
140 int mbedtls_pk_setup(mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info) in mbedtls_pk_setup()
160 int mbedtls_pk_setup_opaque(mbedtls_pk_context *ctx, in mbedtls_pk_setup_opaque()
199 int mbedtls_pk_setup_rsa_alt(mbedtls_pk_context *ctx, void *key, in mbedtls_pk_setup_rsa_alt()
231 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type) in mbedtls_pk_can_do()
247 int mbedtls_pk_can_do_ext(const mbedtls_pk_context *ctx, psa_algorithm_t alg, in mbedtls_pk_can_do_ext()
1016 static int pk_restart_setup(mbedtls_pk_restart_ctx *ctx, in pk_restart_setup()
[all …]
Dssl_cookie.c61 void mbedtls_ssl_cookie_init(mbedtls_ssl_cookie_ctx *ctx) in mbedtls_ssl_cookie_init()
80 void mbedtls_ssl_cookie_set_timeout(mbedtls_ssl_cookie_ctx *ctx, unsigned long delay) in mbedtls_ssl_cookie_set_timeout()
85 void mbedtls_ssl_cookie_free(mbedtls_ssl_cookie_ctx *ctx) in mbedtls_ssl_cookie_free()
100 int mbedtls_ssl_cookie_setup(mbedtls_ssl_cookie_ctx *ctx, in mbedtls_ssl_cookie_setup()
195 mbedtls_ssl_cookie_ctx *ctx = (mbedtls_ssl_cookie_ctx *) p_ctx; in mbedtls_ssl_cookie_write() local
286 mbedtls_ssl_cookie_ctx *ctx = (mbedtls_ssl_cookie_ctx *) p_ctx; in mbedtls_ssl_cookie_check() local
Dchacha20.c143 void mbedtls_chacha20_init(mbedtls_chacha20_context *ctx) in mbedtls_chacha20_init()
152 void mbedtls_chacha20_free(mbedtls_chacha20_context *ctx) in mbedtls_chacha20_free()
159 int mbedtls_chacha20_setkey(mbedtls_chacha20_context *ctx, in mbedtls_chacha20_setkey()
181 int mbedtls_chacha20_starts(mbedtls_chacha20_context *ctx, in mbedtls_chacha20_starts()
201 int mbedtls_chacha20_update(mbedtls_chacha20_context *ctx, in mbedtls_chacha20_update()
252 mbedtls_chacha20_context ctx; in mbedtls_chacha20_crypt() local
Dcipher.c201 void mbedtls_cipher_init(mbedtls_cipher_context_t *ctx) in mbedtls_cipher_init()
206 void mbedtls_cipher_free(mbedtls_cipher_context_t *ctx) in mbedtls_cipher_free()
245 int mbedtls_cipher_setup(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_setup()
267 int mbedtls_cipher_setup_psa(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_setup_psa()
302 int mbedtls_cipher_setkey(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_setkey()
412 int mbedtls_cipher_set_iv(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_set_iv()
511 int mbedtls_cipher_reset(mbedtls_cipher_context_t *ctx) in mbedtls_cipher_reset()
531 int mbedtls_cipher_update_ad(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_update_ad()
579 int mbedtls_cipher_update(mbedtls_cipher_context_t *ctx, const unsigned char *input, in mbedtls_cipher_update()
1011 int mbedtls_cipher_finish(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_finish()
[all …]
Drsa.c571 int mbedtls_rsa_import(mbedtls_rsa_context *ctx, in mbedtls_rsa_import()
593 int mbedtls_rsa_import_raw(mbedtls_rsa_context *ctx, in mbedtls_rsa_import_raw()
637 static int rsa_check_context(mbedtls_rsa_context const *ctx, int is_priv, in rsa_check_context()
721 int mbedtls_rsa_complete(mbedtls_rsa_context *ctx) in mbedtls_rsa_complete()
819 int mbedtls_rsa_export_raw(const mbedtls_rsa_context *ctx, in mbedtls_rsa_export_raw()
871 int mbedtls_rsa_export(const mbedtls_rsa_context *ctx, in mbedtls_rsa_export()
914 int mbedtls_rsa_export_crt(const mbedtls_rsa_context *ctx, in mbedtls_rsa_export_crt()
952 void mbedtls_rsa_init(mbedtls_rsa_context *ctx) in mbedtls_rsa_init()
970 int mbedtls_rsa_set_padding(mbedtls_rsa_context *ctx, int padding, in mbedtls_rsa_set_padding()
1006 int mbedtls_rsa_get_padding_mode(const mbedtls_rsa_context *ctx) in mbedtls_rsa_get_padding_mode()
[all …]
/mbedtls-3.7.0/3rdparty/everest/library/
Dx25519.c42 void mbedtls_x25519_init( mbedtls_x25519_context *ctx ) in mbedtls_x25519_init()
50 void mbedtls_x25519_free( mbedtls_x25519_context *ctx ) in mbedtls_x25519_free()
59 int mbedtls_x25519_make_params( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_make_params()
90 int mbedtls_x25519_read_params( mbedtls_x25519_context *ctx, in mbedtls_x25519_read_params()
104 int mbedtls_x25519_get_params( mbedtls_x25519_context *ctx, const mbedtls_ecp_keypair *key, in mbedtls_x25519_get_params()
119 int mbedtls_x25519_calc_secret( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_calc_secret()
145 int mbedtls_x25519_make_public( mbedtls_x25519_context *ctx, size_t *olen, in mbedtls_x25519_make_public()
174 int mbedtls_x25519_read_public( mbedtls_x25519_context *ctx, in mbedtls_x25519_read_public()
Deverest.c35 int mbedtls_everest_setup( mbedtls_ecdh_context_everest *ctx, int grp_id ) in mbedtls_everest_setup()
43 void mbedtls_everest_free( mbedtls_ecdh_context_everest *ctx ) in mbedtls_everest_free()
48 int mbedtls_everest_make_params( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_make_params()
57 int mbedtls_everest_read_params( mbedtls_ecdh_context_everest *ctx, in mbedtls_everest_read_params()
65 int mbedtls_everest_get_params( mbedtls_ecdh_context_everest *ctx, in mbedtls_everest_get_params()
76 int mbedtls_everest_make_public( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_make_public()
85 int mbedtls_everest_read_public( mbedtls_ecdh_context_everest *ctx, in mbedtls_everest_read_public()
92 int mbedtls_everest_calc_secret( mbedtls_ecdh_context_everest *ctx, size_t *olen, in mbedtls_everest_calc_secret()

1234