Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 169) sorted by relevance

1234567

/mbedtls-development/library/
A Decdh.c233 ecdh_init_internal( &ctx->ctx.mbed_ecdh ); in mbedtls_ecdh_setup()
286 ecdh_free_internal( &ctx->ctx.mbed_ecdh ); in mbedtls_ecdh_free()
325 if( ( ret = ecdh_gen_public_restartable( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_params_internal()
329 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_params_internal()
546 if( ( ret = ecdh_gen_public_restartable( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_public_internal()
550 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_public_internal()
657 if( ctx == NULL || ctx->grp.pbits == 0 ) in ecdh_calc_secret_internal()
668 if( ( ret = ecdh_compute_shared_restartable( &ctx->grp, &ctx->z, &ctx->Qp, in ecdh_calc_secret_internal()
675 if( ( ret = mbedtls_ecdh_compute_shared( &ctx->grp, &ctx->z, &ctx->Qp, in ecdh_calc_secret_internal()
742 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_tls13_make_params_internal()
[all …]
A Dccm.c180 ctx->y[0] |= ( ctx->add_len > 0 ) << 6; in ccm_calculate_first_block_if_ready()
181 ctx->y[0] |= ( ( ctx->tag_len - 2 ) / 2 ) << 3; in ccm_calculate_first_block_if_ready()
182 ctx->y[0] |= ctx->q - 1; in ccm_calculate_first_block_if_ready()
194 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in ccm_calculate_first_block_if_ready()
226 ctx->ctr[0] = ctx->q - 1; in mbedtls_ccm_starts()
228 memset( ctx->ctr + 1 + iv_len, 0, ctx->q ); in mbedtls_ccm_starts()
299 else if ( ctx->processed + add_len > ctx->add_len ) in mbedtls_ccm_update_ad()
330 if( ctx->processed == ctx->add_len ) in mbedtls_ccm_update_ad()
359 if( ctx->tag_len != 0 && ctx->processed + input_len > ctx->plaintext_len ) in mbedtls_ccm_update()
464 if( ctx->plaintext_len > 0 && ctx->processed != ctx->plaintext_len ) in mbedtls_ccm_finish()
[all …]
A Dcipher.c172 if( ctx == NULL ) in mbedtls_cipher_free()
199 if( ctx->cmac_ctx ) in mbedtls_cipher_free()
208 ctx->cipher_info->base->ctx_free_func( ctx->cipher_ctx ); in mbedtls_cipher_free()
645 ctx->operation, block_size, ctx->iv, in mbedtls_cipher_update()
689 ctx->operation, ilen, ctx->iv, input, output ) ) ) in mbedtls_cipher_update()
705 ctx->operation, ilen, &ctx->unprocessed_len, ctx->iv, in mbedtls_cipher_update()
736 ilen, &ctx->unprocessed_len, ctx->iv, in mbedtls_cipher_update()
756 ret = ctx->cipher_info->base->xts_func( ctx->cipher_ctx, in mbedtls_cipher_update()
757 ctx->operation, ilen, ctx->iv, input, output ); in mbedtls_cipher_update()
1021 ctx->add_padding( ctx->unprocessed_data, mbedtls_cipher_get_iv_size( ctx ), in mbedtls_cipher_finish()
[all …]
A Dhmac_drbg.c98 if( ( ret = mbedtls_md_hmac_finish( &ctx->md_ctx, ctx->V ) ) != 0 ) in mbedtls_hmac_drbg_update()
128 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, in mbedtls_hmac_drbg_seed_buf()
171 if( ( ret = ctx->f_entropy( ctx->p_entropy, in hmac_drbg_reseed_core()
189 if( ( ret = ctx->f_entropy( ctx->p_entropy, in hmac_drbg_reseed_core()
212 ctx->reseed_counter = 1; in hmac_drbg_reseed_core()
260 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, md_size ) ) != 0 ) in mbedtls_hmac_drbg_seed()
304 ctx->entropy_len = len; in mbedtls_hmac_drbg_set_entropy_len()
340 ctx->reseed_counter > ctx->reseed_interval ) ) in mbedtls_hmac_drbg_random_with_add()
366 if( ( ret = mbedtls_md_hmac_finish( &ctx->md_ctx, ctx->V ) ) != 0 ) in mbedtls_hmac_drbg_random_with_add()
380 ctx->reseed_counter++; in mbedtls_hmac_drbg_random_with_add()
[all …]
A Dmd.c237 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_free()
425 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_starts()
465 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_update()
505 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_finish()
632 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_starts()
649 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts()
674 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_update()
686 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_finish()
689 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_finish()
709 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_reset()
[all …]
A Ddhm.c234 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->GX, &ctx->G, &ctx->X, in dhm_make_common()
399 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->Vi, &ctx->Vi, &ctx->Vi ) ); in dhm_update_blinding()
400 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->Vi, &ctx->Vi, &ctx->P ) ); in dhm_update_blinding()
402 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->Vf, &ctx->Vf, &ctx->Vf ) ); in dhm_update_blinding()
403 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->Vf, &ctx->Vf, &ctx->P ) ); in dhm_update_blinding()
420 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->Vf, &ctx->Vf, &ctx->P ) ); in dhm_update_blinding()
421 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( &ctx->Vf, &ctx->Vf, &ctx->P ) ); in dhm_update_blinding()
423 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->Vf, &ctx->Vf, &ctx->P ) ); in dhm_update_blinding()
425 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->Vf, &ctx->Vf, &ctx->X, &ctx->P, &ctx->RP ) ); in dhm_update_blinding()
468 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->K, &ctx->K, &ctx->Vf ) ); in mbedtls_dhm_calc_secret()
[all …]
A Dchachapoly.c98 ctx->aad_len = 0U; in mbedtls_chachapoly_init()
99 ctx->ciphertext_len = 0U; in mbedtls_chachapoly_init()
106 if( ctx == NULL ) in mbedtls_chachapoly_free()
111 ctx->aad_len = 0U; in mbedtls_chachapoly_free()
112 ctx->ciphertext_len = 0U; in mbedtls_chachapoly_free()
158 ctx->aad_len = 0U; in mbedtls_chachapoly_starts()
159 ctx->ciphertext_len = 0U; in mbedtls_chachapoly_starts()
161 ctx->mode = mode; in mbedtls_chachapoly_starts()
179 ctx->aad_len += aad_len; in mbedtls_chachapoly_update_aad()
209 ctx->ciphertext_len += len; in mbedtls_chachapoly_update()
[all …]
A Dpk.c72 ctx->pk_info->ctx_free_func( ctx->pk_ctx ); in mbedtls_pk_free()
93 if( ctx == NULL || ctx->pk_info == NULL || in mbedtls_pk_restart_free()
99 ctx->pk_info->rs_free_func( ctx->rs_ctx ); in mbedtls_pk_restart_free()
161 if( ctx == NULL || ctx->pk_info != NULL ) in mbedtls_pk_setup_opaque()
225 if( ctx == NULL || ctx->pk_info == NULL ) in mbedtls_pk_can_do()
256 if( ctx == NULL || ctx->pk_info != NULL ) in pk_restart_setup()
301 ret = ctx->pk_info->verify_rs_func( ctx->pk_ctx, in mbedtls_pk_verify_restartable()
549 if( ctx == NULL || ctx->pk_info == NULL ) in mbedtls_pk_get_bitlen()
567 ctx->pk_info->debug_func( ctx->pk_ctx, items ); in mbedtls_pk_debug()
576 if( ctx == NULL || ctx->pk_info == NULL ) in mbedtls_pk_get_name()
[all …]
A Dgcm.c266 memset( ctx->y, 0x00, sizeof(ctx->y) ); in mbedtls_gcm_starts()
291 gcm_mult( ctx, ctx->y, ctx->y ); in mbedtls_gcm_starts()
300 gcm_mult( ctx, ctx->y, ctx->y ); in mbedtls_gcm_starts()
354 gcm_mult( ctx, ctx->buf, ctx->buf ); in mbedtls_gcm_update_ad()
368 gcm_mult( ctx, ctx->buf, ctx->buf ); in mbedtls_gcm_update_ad()
462 gcm_mult( ctx, ctx->buf, ctx->buf ); in mbedtls_gcm_update()
476 gcm_mult( ctx, ctx->buf, ctx->buf ); in mbedtls_gcm_update()
492 gcm_mult( ctx, ctx->buf, ctx->buf ); in mbedtls_gcm_update()
534 gcm_mult( ctx, ctx->buf, ctx->buf ); in mbedtls_gcm_finish()
541 gcm_mult( ctx, ctx->buf, ctx->buf ); in mbedtls_gcm_finish()
[all …]
A Dssl_ticket.c102 ((void) ctx); in ssl_ticket_update_keys()
107 uint32_t key_time = ctx->keys[ctx->active].generation_time; in ssl_ticket_update_keys()
115 ctx->active = 1 - ctx->active; in ssl_ticket_update_keys()
117 return( ssl_ticket_gen_key( ctx, ctx->active ) ); in ssl_ticket_update_keys()
152 ret = mbedtls_cipher_setup_psa( &ctx->keys[0].ctx, in mbedtls_ssl_ticket_setup()
164 ret = mbedtls_cipher_setup_psa( &ctx->keys[1].ctx, in mbedtls_ssl_ticket_setup()
214 if( ctx == NULL || ctx->f_rng == NULL ) in mbedtls_ssl_ticket_write()
229 key = &ctx->keys[ctx->active]; in mbedtls_ssl_ticket_write()
309 if( ctx == NULL || ctx->f_rng == NULL ) in mbedtls_ssl_ticket_parse()
392 mbedtls_cipher_free( &ctx->keys[0].ctx ); in mbedtls_ssl_ticket_free()
[all …]
A Dentropy.c53 ctx->source_count = 0; in mbedtls_entropy_init()
54 memset( ctx->source, 0, sizeof( ctx->source ) ); in mbedtls_entropy_init()
60 ctx->accumulator_started = 0; in mbedtls_entropy_init()
85 ctx->initial_entropy_run = 0; in mbedtls_entropy_init()
106 ctx->initial_entropy_run = 0; in mbedtls_entropy_free()
108 ctx->source_count = 0; in mbedtls_entropy_free()
109 mbedtls_platform_zeroize( ctx->source, sizeof( ctx->source ) ); in mbedtls_entropy_free()
124 idx = ctx->source_count; in mbedtls_entropy_add_source()
136 ctx->source_count++; in mbedtls_entropy_add_source()
249 if( ( ret = ctx->source[i].f_source( ctx->source[i].p_source, in entropy_gather_internal()
[all …]
A Drsa.c308 ret = mbedtls_rsa_deduce_primes( &ctx->N, &ctx->E, &ctx->D, in mbedtls_rsa_complete()
333 ret = mbedtls_rsa_deduce_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_complete()
334 &ctx->DP, &ctx->DQ, &ctx->QP ); in mbedtls_rsa_complete()
467 if( ( ret = mbedtls_rsa_deduce_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_export_crt()
632 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->N, &ctx->P, &ctx->Q ) ); in mbedtls_rsa_gen_key()
642 MBEDTLS_MPI_CHK( mbedtls_rsa_deduce_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_gen_key()
707 if( mbedtls_rsa_validate_params( &ctx->N, &ctx->P, &ctx->Q, in mbedtls_rsa_check_privkey()
714 else if( mbedtls_rsa_validate_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_check_privkey()
842 ret = mbedtls_mpi_inv_mod( &ctx->Vi, &ctx->Vi, &ctx->N ); in rsa_prepare_blinding()
850 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->Vi, &ctx->Vi, &ctx->N ) ); in rsa_prepare_blinding()
[all …]
A Dctr_drbg.c56 ctx->reseed_counter = -1; in mbedtls_ctr_drbg_init()
67 if( ctx == NULL ) in mbedtls_ctr_drbg_free()
72 if( ctx->f_entropy != NULL ) in mbedtls_ctr_drbg_free()
78 ctx->reseed_counter = -1; in mbedtls_ctr_drbg_free()
90 ctx->entropy_len = len; in mbedtls_ctr_drbg_set_entropy_len()
98 if( ctx->f_entropy != NULL ) in mbedtls_ctr_drbg_set_nonce_len()
367 if( 0 != ctx->f_entropy( ctx->p_entropy, seed, ctx->entropy_len ) ) in mbedtls_ctr_drbg_reseed_internal()
376 if( 0 != ctx->f_entropy( ctx->p_entropy, seed + seedlen, nonce_len ) ) in mbedtls_ctr_drbg_reseed_internal()
397 ctx->reseed_counter = 1; in mbedtls_ctr_drbg_reseed_internal()
521 if( ctx->reseed_counter > ctx->reseed_interval || in mbedtls_ctr_drbg_random_with_add()
[all …]
A Dpoly1305.c106 r0 = ctx->r[0]; in poly1305_process()
107 r1 = ctx->r[1]; in poly1305_process()
108 r2 = ctx->r[2]; in poly1305_process()
109 r3 = ctx->r[3]; in poly1305_process()
268 if( ctx == NULL ) in mbedtls_poly1305_free()
292 ctx->acc[0] = 0U; in mbedtls_poly1305_starts()
299 mbedtls_platform_zeroize( ctx->queue, sizeof( ctx->queue ) ); in mbedtls_poly1305_starts()
325 memcpy( &ctx->queue[ctx->queue_len], in mbedtls_poly1305_update()
336 memcpy( &ctx->queue[ctx->queue_len], in mbedtls_poly1305_update()
379 ctx->queue[ctx->queue_len] = 1U; in mbedtls_poly1305_finish()
[all …]
A Dchacha20.c177 mbedtls_platform_zeroize( ctx->state, sizeof( ctx->state ) ); in mbedtls_chacha20_init()
178 mbedtls_platform_zeroize( ctx->keystream8, sizeof( ctx->keystream8 ) ); in mbedtls_chacha20_init()
186 if( ctx != NULL ) in mbedtls_chacha20_free()
199 ctx->state[0] = 0x61707865; in mbedtls_chacha20_setkey()
200 ctx->state[1] = 0x3320646e; in mbedtls_chacha20_setkey()
201 ctx->state[2] = 0x79622d32; in mbedtls_chacha20_setkey()
225 ctx->state[12] = counter; in mbedtls_chacha20_starts()
232 mbedtls_platform_zeroize( ctx->keystream8, sizeof( ctx->keystream8 ) ); in mbedtls_chacha20_starts()
256 ^ ctx->keystream8[ctx->keystream_bytes_used]; in mbedtls_chacha20_update()
267 chacha20_block( ctx->state, ctx->keystream8 ); in mbedtls_chacha20_update()
[all …]
A Dcipher_wrap.c85 if( ctx != NULL ) in gcm_ctx_alloc()
88 return( ctx ); in gcm_ctx_alloc()
104 if( ctx != NULL ) in ccm_ctx_alloc()
107 return( ctx ); in ccm_ctx_alloc()
740 return( ctx ); in camellia_ctx_alloc()
1149 return( ctx ); in aria_ctx_alloc()
1805 return( ctx ); in chacha20_ctx_alloc()
1877 return( ctx ); in chachapoly_ctx_alloc()
1929 ((void) ctx); in null_crypt_stream()
1937 ((void) ctx); in null_setkey()
[all …]
A Dsha512.c77 if( ctx == NULL ) in mbedtls_sha512_free()
104 ctx->total[0] = 0; in mbedtls_sha512_starts()
105 ctx->total[1] = 0; in mbedtls_sha512_starts()
137 ctx->is384 = is384; in mbedtls_sha512_starts()
319 ctx->total[1]++; in mbedtls_sha512_update()
325 if( ( ret = mbedtls_internal_sha512_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha512_update()
366 ctx->buffer[used++] = 0x80; in mbedtls_sha512_finish()
378 if( ( ret = mbedtls_internal_sha512_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha512_finish()
394 if( ( ret = mbedtls_internal_sha512_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha512_finish()
408 if( ctx->is384 == 0 ) in mbedtls_sha512_finish()
[all …]
A Decjpake.c527 return( ecjpake_kkpp_read( ctx->md_info, &ctx->grp, ctx->point_format, in mbedtls_ecjpake_read_round_one()
529 &ctx->Xp1, &ctx->Xp2, ID_PEER, in mbedtls_ecjpake_read_round_one()
546 return( ecjpake_kkpp_write( ctx->md_info, &ctx->grp, ctx->point_format, in mbedtls_ecjpake_write_round_one()
548 &ctx->xm1, &ctx->Xm1, &ctx->xm2, &ctx->Xm2, in mbedtls_ecjpake_write_round_one()
601 &ctx->Xm1, &ctx->Xm2, &ctx->Xp1 ) ); in mbedtls_ecjpake_read_round_two()
619 MBEDTLS_MPI_CHK( ecjpake_kkp_read( ctx->md_info, &ctx->grp, in mbedtls_ecjpake_read_round_two()
700 &ctx->Xp1, &ctx->Xp2, &ctx->Xm1 ) ); in mbedtls_ecjpake_write_round_two()
734 MBEDTLS_MPI_CHK( ecjpake_zkp_write( ctx->md_info, &ctx->grp, in mbedtls_ecjpake_write_round_two()
971 (void) ctx; in self_test_rng()
991 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &ctx->grp, &ctx->Xm1, &ctx->xm1, in ecjpake_test_load()
[all …]
A Dsha256.c55 SHA256_VALIDATE( ctx != NULL ); in mbedtls_sha256_init()
62 if( ctx == NULL ) in mbedtls_sha256_free()
90 ctx->total[0] = 0; in mbedtls_sha256_starts()
91 ctx->total[1] = 0; in mbedtls_sha256_starts()
120 ctx->is224 = is224; in mbedtls_sha256_starts()
286 ctx->total[1]++; in mbedtls_sha256_update()
292 if( ( ret = mbedtls_internal_sha256_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha256_update()
333 ctx->buffer[used++] = 0x80; in mbedtls_sha256_finish()
345 if( ( ret = mbedtls_internal_sha256_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha256_finish()
361 if( ( ret = mbedtls_internal_sha256_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha256_finish()
[all …]
A Dpk_wrap.c173 if( ctx != NULL ) in rsa_alloc_wrap()
176 return( ctx ); in rsa_alloc_wrap()
189 (void) ctx; in rsa_debug()
330 return( ctx ); in eckey_rs_alloc()
340 rs_ctx = ctx; in eckey_rs_free()
414 return( ctx ); in eckey_alloc_wrap()
708 return( ctx ); in ecdsa_alloc_wrap()
725 return( ctx ); in ecdsa_rs_alloc()
855 return( ctx ); in rsa_alt_alloc_wrap()
901 return( ctx ); in pk_opaque_alloc_wrap()
[all …]
A Dx509write_crt.c45 memset( ctx, 0, sizeof( mbedtls_x509write_cert ) ); in mbedtls_x509write_crt_init()
47 mbedtls_mpi_init( &ctx->serial ); in mbedtls_x509write_crt_init()
48 ctx->version = MBEDTLS_X509_CRT_VERSION_3; in mbedtls_x509write_crt_init()
53 mbedtls_mpi_free( &ctx->serial ); in mbedtls_x509write_crt_free()
56 mbedtls_asn1_free_named_data_list( &ctx->issuer ); in mbedtls_x509write_crt_free()
65 ctx->version = version; in mbedtls_x509write_crt_set_version()
71 ctx->md_alg = md_alg; in mbedtls_x509write_crt_set_md_alg()
77 ctx->subject_key = key; in mbedtls_x509write_crt_set_subject_key()
83 ctx->issuer_key = key; in mbedtls_x509write_crt_set_issuer_key()
227 ctx, MBEDTLS_OID_AUTHORITY_KEY_IDENTIFIER, in mbedtls_x509write_crt_set_authority_key_identifier()
[all …]
/mbedtls-development/3rdparty/everest/library/
A Deverest.c44 mbedtls_x25519_init( &ctx->ctx ); in mbedtls_everest_setup()
48 void mbedtls_everest_free( mbedtls_ecdh_context_everest *ctx ) in mbedtls_everest_free() argument
50 mbedtls_x25519_free( &ctx->ctx ); in mbedtls_everest_free()
58 mbedtls_x25519_context *x25519_ctx = &ctx->ctx; in mbedtls_everest_make_params()
62 int mbedtls_everest_read_params( mbedtls_ecdh_context_everest *ctx, in mbedtls_everest_read_params() argument
66 mbedtls_x25519_context *x25519_ctx = &ctx->ctx; in mbedtls_everest_read_params()
70 int mbedtls_everest_get_params( mbedtls_ecdh_context_everest *ctx, in mbedtls_everest_get_params() argument
74 mbedtls_x25519_context *x25519_ctx = &ctx->ctx; in mbedtls_everest_get_params()
86 mbedtls_x25519_context *x25519_ctx = &ctx->ctx; in mbedtls_everest_make_public()
93 mbedtls_x25519_context *x25519_ctx = &ctx->ctx; in mbedtls_everest_read_public()
[all …]
A Dx25519.c42 void mbedtls_x25519_init( mbedtls_x25519_context *ctx ) in mbedtls_x25519_init() argument
44 mbedtls_platform_zeroize( ctx, sizeof( mbedtls_x25519_context ) ); in mbedtls_x25519_init()
50 void mbedtls_x25519_free( mbedtls_x25519_context *ctx ) in mbedtls_x25519_free() argument
52 if( ctx == NULL ) in mbedtls_x25519_free()
81 Hacl_Curve25519_crypto_scalarmult( buf, ctx->our_secret, base ); in mbedtls_x25519_make_params()
90 int mbedtls_x25519_read_params( mbedtls_x25519_context *ctx, in mbedtls_x25519_read_params() argument
99 memcpy( ctx->peer_point, *buf, MBEDTLS_X25519_KEY_SIZE_BYTES ); in mbedtls_x25519_read_params()
134 Hacl_Curve25519_crypto_scalarmult( buf, ctx->our_secret, ctx->peer_point); in mbedtls_x25519_calc_secret()
153 if( ctx == NULL ) in mbedtls_x25519_make_public()
174 int mbedtls_x25519_read_public( mbedtls_x25519_context *ctx, in mbedtls_x25519_read_public() argument
[all …]
/mbedtls-development/include/mbedtls/
A Dcipher.h594 const mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_get_block_size() argument
613 const mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_get_cipher_mode() argument
633 const mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_get_iv_size() argument
639 if( ctx->MBEDTLS_PRIVATE(iv_size) != 0 ) in mbedtls_cipher_get_iv_size()
654 const mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_get_type() argument
657 ctx != NULL, MBEDTLS_CIPHER_NONE ); in mbedtls_cipher_get_type()
674 const mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_get_name() argument
693 const mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_get_key_bitlen() argument
712 const mbedtls_cipher_context_t *ctx ) in mbedtls_cipher_get_operation() argument
715 ctx != NULL, MBEDTLS_OPERATION_NONE ); in mbedtls_cipher_get_operation()
[all …]
/mbedtls-development/tests/suites/
A Dtest_suite_gcm.function173 mbedtls_gcm_context ctx;
176 mbedtls_gcm_init( &ctx );
186 mbedtls_gcm_free( &ctx );
199 mbedtls_gcm_context ctx;
204 mbedtls_gcm_init( &ctx );
245 mbedtls_gcm_context ctx;
298 mbedtls_gcm_context ctx;
320 mbedtls_gcm_context ctx;
339 mbedtls_gcm_context ctx;
359 mbedtls_gcm_context ctx;
[all …]

Completed in 63 milliseconds

1234567