Home
last modified time | relevance | path

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

1234

/net-tools-3.5.0/mbedtls-2.4.0/library/
Dmd_wrap.c74 static void md2_starts_wrap( void *ctx ) in md2_starts_wrap()
79 static void md2_update_wrap( void *ctx, const unsigned char *input, in md2_update_wrap()
85 static void md2_finish_wrap( void *ctx, unsigned char *output ) in md2_finish_wrap()
92 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_md2_context ) ); in md2_ctx_alloc() local
100 static void md2_ctx_free( void *ctx ) in md2_ctx_free()
112 static void md2_process_wrap( void *ctx, const unsigned char *data ) in md2_process_wrap()
138 static void md4_starts_wrap( void *ctx ) in md4_starts_wrap()
143 static void md4_update_wrap( void *ctx, const unsigned char *input, in md4_update_wrap()
149 static void md4_finish_wrap( void *ctx, unsigned char *output ) in md4_finish_wrap()
156 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_md4_context ) ); in md4_ctx_alloc() local
[all …]
Dcipher_wrap.c80 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_gcm_context ) ); in gcm_ctx_alloc() local
88 static void gcm_ctx_free( void *ctx ) in gcm_ctx_free()
99 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ccm_context ) ); in ccm_ctx_alloc() local
107 static void ccm_ctx_free( void *ctx ) in ccm_ctx_free()
116 static int aes_crypt_ecb_wrap( void *ctx, mbedtls_operation_t operation, in aes_crypt_ecb_wrap()
123 static int aes_crypt_cbc_wrap( void *ctx, mbedtls_operation_t operation, size_t length, in aes_crypt_cbc_wrap()
132 static int aes_crypt_cfb128_wrap( void *ctx, mbedtls_operation_t operation, in aes_crypt_cfb128_wrap()
142 static int aes_crypt_ctr_wrap( void *ctx, size_t length, size_t *nc_off, in aes_crypt_ctr_wrap()
151 static int aes_setkey_dec_wrap( void *ctx, const unsigned char *key, in aes_setkey_dec_wrap()
157 static int aes_setkey_enc_wrap( void *ctx, const unsigned char *key, in aes_setkey_enc_wrap()
[all …]
Dpk.c50 void mbedtls_pk_init( mbedtls_pk_context *ctx ) in mbedtls_pk_init()
62 void mbedtls_pk_free( mbedtls_pk_context *ctx ) in mbedtls_pk_free()
101 int mbedtls_pk_setup( mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info ) in mbedtls_pk_setup()
118 int mbedtls_pk_setup_rsa_alt( mbedtls_pk_context *ctx, void * key, in mbedtls_pk_setup_rsa_alt()
148 int mbedtls_pk_can_do( const mbedtls_pk_context *ctx, mbedtls_pk_type_t type ) in mbedtls_pk_can_do()
177 int mbedtls_pk_verify( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_verify()
196 mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_verify_ext()
248 int mbedtls_pk_sign( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_sign()
267 int mbedtls_pk_decrypt( mbedtls_pk_context *ctx, in mbedtls_pk_decrypt()
285 int mbedtls_pk_encrypt( mbedtls_pk_context *ctx, in mbedtls_pk_encrypt()
[all …]
Dmd.c181 void mbedtls_md_init( mbedtls_md_context_t *ctx ) in mbedtls_md_init()
186 void mbedtls_md_free( mbedtls_md_context_t *ctx ) in mbedtls_md_free()
219 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) in mbedtls_md_init_ctx()
225 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ) in mbedtls_md_setup()
248 int mbedtls_md_starts( mbedtls_md_context_t *ctx ) in mbedtls_md_starts()
258 int mbedtls_md_update( mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen ) in mbedtls_md_update()
268 int mbedtls_md_finish( mbedtls_md_context_t *ctx, unsigned char *output ) in mbedtls_md_finish()
295 mbedtls_md_context_t ctx; in mbedtls_md_file() local
330 int mbedtls_md_hmac_starts( mbedtls_md_context_t *ctx, const unsigned char *key, size_t keylen ) in mbedtls_md_hmac_starts()
369 int mbedtls_md_hmac_update( mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen ) in mbedtls_md_hmac_update()
[all …]
Dx509write_crt.c52 void mbedtls_x509write_crt_init( mbedtls_x509write_cert *ctx ) in mbedtls_x509write_crt_init()
60 void mbedtls_x509write_crt_free( mbedtls_x509write_cert *ctx ) in mbedtls_x509write_crt_free()
71 void mbedtls_x509write_crt_set_version( mbedtls_x509write_cert *ctx, int version ) in mbedtls_x509write_crt_set_version()
76 void mbedtls_x509write_crt_set_md_alg( mbedtls_x509write_cert *ctx, mbedtls_md_type_t md_alg ) in mbedtls_x509write_crt_set_md_alg()
81 void mbedtls_x509write_crt_set_subject_key( mbedtls_x509write_cert *ctx, mbedtls_pk_context *key ) in mbedtls_x509write_crt_set_subject_key()
86 void mbedtls_x509write_crt_set_issuer_key( mbedtls_x509write_cert *ctx, mbedtls_pk_context *key ) in mbedtls_x509write_crt_set_issuer_key()
91 int mbedtls_x509write_crt_set_subject_name( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_subject_name()
97 int mbedtls_x509write_crt_set_issuer_name( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_issuer_name()
103 int mbedtls_x509write_crt_set_serial( mbedtls_x509write_cert *ctx, const mbedtls_mpi *serial ) in mbedtls_x509write_crt_set_serial()
113 int mbedtls_x509write_crt_set_validity( mbedtls_x509write_cert *ctx, const char *not_before, in mbedtls_x509write_crt_set_validity()
[all …]
Dpk_wrap.c66 static size_t rsa_get_bitlen( const void *ctx ) in rsa_get_bitlen()
71 static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_verify_wrap()
91 static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_sign_wrap()
102 static int rsa_decrypt_wrap( void *ctx, in rsa_decrypt_wrap()
114 static int rsa_encrypt_wrap( void *ctx, in rsa_encrypt_wrap()
136 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_context ) ); in rsa_alloc_wrap() local
144 static void rsa_free_wrap( void *ctx ) in rsa_free_wrap()
150 static void rsa_debug( const void *ctx, mbedtls_pk_debug_item *items ) in rsa_debug()
190 static size_t eckey_get_bitlen( const void *ctx ) in eckey_get_bitlen()
206 static int eckey_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_verify_wrap()
[all …]
Dhmac_drbg.c61 void mbedtls_hmac_drbg_init( mbedtls_hmac_drbg_context *ctx ) in mbedtls_hmac_drbg_init()
73 void mbedtls_hmac_drbg_update( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_update()
101 int mbedtls_hmac_drbg_seed_buf( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed_buf()
126 int mbedtls_hmac_drbg_reseed( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_reseed()
167 int mbedtls_hmac_drbg_seed( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed()
223 void mbedtls_hmac_drbg_set_prediction_resistance( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_set_prediction_resistance()
232 void mbedtls_hmac_drbg_set_entropy_len( mbedtls_hmac_drbg_context *ctx, size_t len ) in mbedtls_hmac_drbg_set_entropy_len()
240 void mbedtls_hmac_drbg_set_reseed_interval( mbedtls_hmac_drbg_context *ctx, int interval ) in mbedtls_hmac_drbg_set_reseed_interval()
254 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random_with_add() local
312 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random() local
[all …]
Dmd2.c86 void mbedtls_md2_init( mbedtls_md2_context *ctx ) in mbedtls_md2_init()
91 void mbedtls_md2_free( mbedtls_md2_context *ctx ) in mbedtls_md2_free()
108 void mbedtls_md2_starts( mbedtls_md2_context *ctx ) in mbedtls_md2_starts()
117 void mbedtls_md2_process( mbedtls_md2_context *ctx ) in mbedtls_md2_process()
155 void mbedtls_md2_update( mbedtls_md2_context *ctx, const unsigned char *input, size_t ilen ) in mbedtls_md2_update()
183 void mbedtls_md2_finish( mbedtls_md2_context *ctx, unsigned char output[16] ) in mbedtls_md2_finish()
208 mbedtls_md2_context ctx; in mbedtls_md2() local
Dctr_drbg.c60 void mbedtls_ctr_drbg_init( mbedtls_ctr_drbg_context *ctx ) in mbedtls_ctr_drbg_init()
74 mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_seed_entropy_len()
105 int mbedtls_ctr_drbg_seed( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_seed()
115 void mbedtls_ctr_drbg_free( mbedtls_ctr_drbg_context *ctx ) in mbedtls_ctr_drbg_free()
127 void mbedtls_ctr_drbg_set_prediction_resistance( mbedtls_ctr_drbg_context *ctx, int resistance ) in mbedtls_ctr_drbg_set_prediction_resistance()
132 void mbedtls_ctr_drbg_set_entropy_len( mbedtls_ctr_drbg_context *ctx, size_t len ) in mbedtls_ctr_drbg_set_entropy_len()
137 void mbedtls_ctr_drbg_set_reseed_interval( mbedtls_ctr_drbg_context *ctx, int interval ) in mbedtls_ctr_drbg_set_reseed_interval()
232 static int ctr_drbg_update_internal( mbedtls_ctr_drbg_context *ctx, in ctr_drbg_update_internal()
270 void mbedtls_ctr_drbg_update( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_update()
287 int mbedtls_ctr_drbg_reseed( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_reseed()
[all …]
Dx509write_csr.c51 void mbedtls_x509write_csr_init( mbedtls_x509write_csr *ctx ) in mbedtls_x509write_csr_init()
56 void mbedtls_x509write_csr_free( mbedtls_x509write_csr *ctx ) in mbedtls_x509write_csr_free()
64 void mbedtls_x509write_csr_set_md_alg( mbedtls_x509write_csr *ctx, mbedtls_md_type_t md_alg ) in mbedtls_x509write_csr_set_md_alg()
69 void mbedtls_x509write_csr_set_key( mbedtls_x509write_csr *ctx, mbedtls_pk_context *key ) in mbedtls_x509write_csr_set_key()
74 int mbedtls_x509write_csr_set_subject_name( mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_subject_name()
80 int mbedtls_x509write_csr_set_extension( mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_extension()
88 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage ) in mbedtls_x509write_csr_set_key_usage()
108 int mbedtls_x509write_csr_set_ns_cert_type( mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_ns_cert_type()
129 int mbedtls_x509write_csr_der( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_der()
234 int mbedtls_x509write_csr_pem( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_pem()
Dentropy.c69 void mbedtls_entropy_init( mbedtls_entropy_context *ctx ) in mbedtls_entropy_init()
120 void mbedtls_entropy_free( mbedtls_entropy_context *ctx ) in mbedtls_entropy_free()
131 int mbedtls_entropy_add_source( mbedtls_entropy_context *ctx, in mbedtls_entropy_add_source()
168 static int entropy_update( mbedtls_entropy_context *ctx, unsigned char source_id, in entropy_update()
201 int mbedtls_entropy_update_manual( mbedtls_entropy_context *ctx, in mbedtls_entropy_update_manual()
224 static int entropy_gather_internal( mbedtls_entropy_context *ctx ) in entropy_gather_internal()
267 int mbedtls_entropy_gather( mbedtls_entropy_context *ctx ) in mbedtls_entropy_gather()
289 mbedtls_entropy_context *ctx = (mbedtls_entropy_context *) data; in mbedtls_entropy_func() local
382 int mbedtls_entropy_update_nv_seed( mbedtls_entropy_context *ctx ) in mbedtls_entropy_update_nv_seed()
403 int mbedtls_entropy_write_seed_file( mbedtls_entropy_context *ctx, const char *path ) in mbedtls_entropy_write_seed_file()
[all …]
Dnet_sockets.c128 void mbedtls_net_init( mbedtls_net_context *ctx ) in mbedtls_net_init()
136 int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, const char *port, int proto ) in mbedtls_net_connect()
183 int mbedtls_net_bind( mbedtls_net_context *ctx, const char *bind_ip, const char *port, int proto ) in mbedtls_net_bind()
258 static int net_would_block( const mbedtls_net_context *ctx ) in net_would_block()
270 static int net_would_block( const mbedtls_net_context *ctx ) in net_would_block()
413 int mbedtls_net_set_block( mbedtls_net_context *ctx ) in mbedtls_net_set_block()
424 int mbedtls_net_set_nonblock( mbedtls_net_context *ctx ) in mbedtls_net_set_nonblock()
458 int mbedtls_net_recv( void *ctx, unsigned char *buf, size_t len ) in mbedtls_net_recv()
494 int mbedtls_net_recv_timeout( void *ctx, unsigned char *buf, size_t len, in mbedtls_net_recv_timeout()
538 int mbedtls_net_send( void *ctx, const unsigned char *buf, size_t len ) in mbedtls_net_send()
[all …]
Dblowfish.c81 static uint32_t F( mbedtls_blowfish_context *ctx, uint32_t x ) in F()
100 static void blowfish_enc( mbedtls_blowfish_context *ctx, uint32_t *xl, uint32_t *xr ) in blowfish_enc()
129 static void blowfish_dec( mbedtls_blowfish_context *ctx, uint32_t *xl, uint32_t *xr ) in blowfish_dec()
158 void mbedtls_blowfish_init( mbedtls_blowfish_context *ctx ) in mbedtls_blowfish_init()
163 void mbedtls_blowfish_free( mbedtls_blowfish_context *ctx ) in mbedtls_blowfish_free()
174 int mbedtls_blowfish_setkey( mbedtls_blowfish_context *ctx, const unsigned char *key, in mbedtls_blowfish_setkey()
232 int mbedtls_blowfish_crypt_ecb( mbedtls_blowfish_context *ctx, in mbedtls_blowfish_crypt_ecb()
261 int mbedtls_blowfish_crypt_cbc( mbedtls_blowfish_context *ctx, in mbedtls_blowfish_crypt_cbc()
315 int mbedtls_blowfish_crypt_cfb64( mbedtls_blowfish_context *ctx, in mbedtls_blowfish_crypt_cfb64()
363 int mbedtls_blowfish_crypt_ctr( mbedtls_blowfish_context *ctx, in mbedtls_blowfish_crypt_ctr()
Ddes.c309 void mbedtls_des_init( mbedtls_des_context *ctx ) in mbedtls_des_init()
314 void mbedtls_des_free( mbedtls_des_context *ctx ) in mbedtls_des_free()
322 void mbedtls_des3_init( mbedtls_des3_context *ctx ) in mbedtls_des3_init()
327 void mbedtls_des3_free( mbedtls_des3_context *ctx ) in mbedtls_des3_free()
497 int mbedtls_des_setkey_enc( mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]… in mbedtls_des_setkey_enc()
507 int mbedtls_des_setkey_dec( mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE]… in mbedtls_des_setkey_dec()
550 int mbedtls_des3_set2key_enc( mbedtls_des3_context *ctx, in mbedtls_des3_set2key_enc()
564 int mbedtls_des3_set2key_dec( mbedtls_des3_context *ctx, in mbedtls_des3_set2key_dec()
601 int mbedtls_des3_set3key_enc( mbedtls_des3_context *ctx, in mbedtls_des3_set3key_enc()
615 int mbedtls_des3_set3key_dec( mbedtls_des3_context *ctx, in mbedtls_des3_set3key_dec()
[all …]
Decdh.c88 void mbedtls_ecdh_init( mbedtls_ecdh_context *ctx ) in mbedtls_ecdh_init()
96 void mbedtls_ecdh_free( mbedtls_ecdh_context *ctx ) in mbedtls_ecdh_free()
118 int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_params()
155 int mbedtls_ecdh_read_params( mbedtls_ecdh_context *ctx, in mbedtls_ecdh_read_params()
173 int mbedtls_ecdh_get_params( mbedtls_ecdh_context *ctx, const mbedtls_ecp_keypair *key, in mbedtls_ecdh_get_params()
199 int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_public()
220 int mbedtls_ecdh_read_public( mbedtls_ecdh_context *ctx, in mbedtls_ecdh_read_public()
241 int mbedtls_ecdh_calc_secret( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_calc_secret()
Darc4.c55 void mbedtls_arc4_init( mbedtls_arc4_context *ctx ) in mbedtls_arc4_init()
60 void mbedtls_arc4_free( mbedtls_arc4_context *ctx ) in mbedtls_arc4_free()
71 void mbedtls_arc4_setup( mbedtls_arc4_context *ctx, const unsigned char *key, in mbedtls_arc4_setup()
101 int mbedtls_arc4_crypt( mbedtls_arc4_context *ctx, size_t length, const unsigned char *input, in mbedtls_arc4_crypt()
167 mbedtls_arc4_context ctx; in mbedtls_arc4_self_test() local
Dxtea.c73 void mbedtls_xtea_init( mbedtls_xtea_context *ctx ) in mbedtls_xtea_init()
78 void mbedtls_xtea_free( mbedtls_xtea_context *ctx ) in mbedtls_xtea_free()
89 void mbedtls_xtea_setup( mbedtls_xtea_context *ctx, const unsigned char key[16] ) in mbedtls_xtea_setup()
104 int mbedtls_xtea_crypt_ecb( mbedtls_xtea_context *ctx, int mode, in mbedtls_xtea_crypt_ecb()
147 int mbedtls_xtea_crypt_cbc( mbedtls_xtea_context *ctx, int mode, size_t length, in mbedtls_xtea_crypt_cbc()
244 mbedtls_xtea_context ctx; in mbedtls_xtea_self_test() local
Dcipher.c131 void mbedtls_cipher_init( mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_init()
136 void mbedtls_cipher_free( mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_free()
155 int mbedtls_cipher_setup( mbedtls_cipher_context_t *ctx, const mbedtls_cipher_info_t *cipher_info ) in mbedtls_cipher_setup()
181 int mbedtls_cipher_setkey( mbedtls_cipher_context_t *ctx, const unsigned char *key, in mbedtls_cipher_setkey()
214 int mbedtls_cipher_set_iv( mbedtls_cipher_context_t *ctx, in mbedtls_cipher_set_iv()
243 int mbedtls_cipher_reset( mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_reset()
254 int mbedtls_cipher_update_ad( mbedtls_cipher_context_t *ctx, in mbedtls_cipher_update_ad()
270 int mbedtls_cipher_update( mbedtls_cipher_context_t *ctx, const unsigned char *input, in mbedtls_cipher_update()
626 int mbedtls_cipher_finish( mbedtls_cipher_context_t *ctx, in mbedtls_cipher_finish()
706 int mbedtls_cipher_set_padding_mode( mbedtls_cipher_context_t *ctx, mbedtls_cipher_padding_t mode ) in mbedtls_cipher_set_padding_mode()
[all …]
Dssl_ticket.c50 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()
94 static int ssl_ticket_update_keys( mbedtls_ssl_ticket_context *ctx ) in ssl_ticket_update_keys()
122 int mbedtls_ssl_ticket_setup( mbedtls_ssl_ticket_context *ctx, in mbedtls_ssl_ticket_setup()
293 mbedtls_ssl_ticket_context *ctx = p_ticket; in mbedtls_ssl_ticket_write() local
368 mbedtls_ssl_ticket_context *ctx, in ssl_ticket_select_key()
389 mbedtls_ssl_ticket_context *ctx = p_ticket; in mbedtls_ssl_ticket_parse() local
477 void mbedtls_ssl_ticket_free( mbedtls_ssl_ticket_context *ctx ) in mbedtls_ssl_ticket_free()
Dssl_cookie.c78 void mbedtls_ssl_cookie_init( mbedtls_ssl_cookie_ctx *ctx ) in mbedtls_ssl_cookie_init()
91 void mbedtls_ssl_cookie_set_timeout( mbedtls_ssl_cookie_ctx *ctx, unsigned long delay ) in mbedtls_ssl_cookie_set_timeout()
96 void mbedtls_ssl_cookie_free( mbedtls_ssl_cookie_ctx *ctx ) in mbedtls_ssl_cookie_free()
107 int mbedtls_ssl_cookie_setup( mbedtls_ssl_cookie_ctx *ctx, in mbedtls_ssl_cookie_setup()
165 mbedtls_ssl_cookie_ctx *ctx = (mbedtls_ssl_cookie_ctx *) p_ctx; in mbedtls_ssl_cookie_write() local
213 mbedtls_ssl_cookie_ctx *ctx = (mbedtls_ssl_cookie_ctx *) p_ctx; in mbedtls_ssl_cookie_check() local
Dgcm.c88 void mbedtls_gcm_init( mbedtls_gcm_context *ctx ) in mbedtls_gcm_init()
101 static int gcm_gen_table( mbedtls_gcm_context *ctx ) in gcm_gen_table()
161 int mbedtls_gcm_setkey( mbedtls_gcm_context *ctx, in mbedtls_gcm_setkey()
210 static void gcm_mult( mbedtls_gcm_context *ctx, const unsigned char x[16], in gcm_mult()
266 int mbedtls_gcm_starts( mbedtls_gcm_context *ctx, in mbedtls_gcm_starts()
347 int mbedtls_gcm_update( mbedtls_gcm_context *ctx, in mbedtls_gcm_update()
406 int mbedtls_gcm_finish( mbedtls_gcm_context *ctx, in mbedtls_gcm_finish()
441 int mbedtls_gcm_crypt_and_tag( mbedtls_gcm_context *ctx, in mbedtls_gcm_crypt_and_tag()
467 int mbedtls_gcm_auth_decrypt( mbedtls_gcm_context *ctx, in mbedtls_gcm_auth_decrypt()
503 void mbedtls_gcm_free( mbedtls_gcm_context *ctx ) in mbedtls_gcm_free()
[all …]
Dsha1.c78 void mbedtls_sha1_init( mbedtls_sha1_context *ctx ) in mbedtls_sha1_init()
83 void mbedtls_sha1_free( mbedtls_sha1_context *ctx ) in mbedtls_sha1_free()
100 void mbedtls_sha1_starts( mbedtls_sha1_context *ctx ) in mbedtls_sha1_starts()
113 void mbedtls_sha1_process( mbedtls_sha1_context *ctx, const unsigned char data[64] ) in mbedtls_sha1_process()
273 void mbedtls_sha1_update( mbedtls_sha1_context *ctx, const unsigned char *input, size_t ilen ) in mbedtls_sha1_update()
321 void mbedtls_sha1_finish( mbedtls_sha1_context *ctx, unsigned char output[20] ) in mbedtls_sha1_finish()
354 mbedtls_sha1_context ctx; in mbedtls_sha1() local
397 mbedtls_sha1_context ctx; in mbedtls_sha1_self_test() local
/net-tools-3.5.0/tinydtls-0.8.2/
Dhmac.c51 dtls_hmac_context_free(dtls_hmac_context_t *ctx) { in dtls_hmac_context_free()
65 dtls_hmac_context_free(dtls_hmac_context_t *ctx) { in dtls_hmac_context_free()
76 dtls_hmac_update(dtls_hmac_context_t *ctx, in dtls_hmac_update()
84 dtls_hmac_context_t *ctx; in dtls_hmac_new() local
94 dtls_hmac_init(dtls_hmac_context_t *ctx, const unsigned char *key, size_t klen) { in dtls_hmac_init()
121 dtls_hmac_free(dtls_hmac_context_t *ctx) { in dtls_hmac_free()
127 dtls_hmac_finalize(dtls_hmac_context_t *ctx, unsigned char *result) { in dtls_hmac_finalize()
151 dtls_hmac_context_t *ctx; in main() local
Ddtls.c200 dtls_send(dtls_context_t *ctx, dtls_peer_t *peer, unsigned char type, in dtls_send()
212 dtls_get_peer(const dtls_context_t *ctx, const session_t *session) { in dtls_get_peer()
227 dtls_add_peer(dtls_context_t *ctx, dtls_peer_t *peer) { in dtls_add_peer()
236 dtls_write(struct dtls_context_t *ctx, in dtls_write()
286 dtls_create_cookie(dtls_context_t *ctx, in dtls_create_cookie()
481 static inline int is_psk_supported(dtls_context_t *ctx) in is_psk_supported()
491 static inline int is_ecdsa_supported(dtls_context_t *ctx, int is_client) in is_ecdsa_supported()
503 static inline int is_ecdsa_client_auth_supported(dtls_context_t *ctx) in is_ecdsa_client_auth_supported()
522 known_cipher(dtls_context_t *ctx, dtls_cipher_t code, int is_client) { in known_cipher()
599 calculate_key_block(dtls_context_t *ctx, in calculate_key_block()
[all …]
/net-tools-3.5.0/tinydtls-0.8.2/examples/contiki/
Ddtls-server.c82 read_from_peer(struct dtls_context_t *ctx, in read_from_peer()
94 send_to_peer(struct dtls_context_t *ctx, in send_to_peer()
120 get_psk_info(struct dtls_context_t *ctx, const session_t *session, in get_psk_info()
164 get_ecdsa_key(struct dtls_context_t *ctx, in get_ecdsa_key()
179 verify_ecdsa_key(struct dtls_context_t *ctx, in verify_ecdsa_key()
192 dtls_handle_read(dtls_context_t *ctx) { in dtls_handle_read()

1234