Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 38) sorted by relevance

12

/mbedtls-development/tests/suites/
A Dtest_suite_des.function30 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
50 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
74 dst->len ) == 0 );
84 data_t * src_str, data_t * dst,
110 data_t * src_str, data_t * dst )
128 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
137 data_t * src_str, data_t * dst )
155 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 );
165 data_t * dst, int cbc_result )
186 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x,
[all …]
A Dtest_suite_camellia.function48 data_t * dst, int setkey_result )
62 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
72 data_t * dst, int setkey_result )
86 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
111 dst->len ) == 0 );
121 data_t * src_str, data_t * dst,
137 dst->len ) == 0 );
147 data_t * src_str, data_t * dst )
160 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
170 data_t * dst )
[all …]
A Dtest_suite_aes.function12 data_t * dst, int setkey_result )
26 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
36 data_t * dst, int setkey_result )
50 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
60 data_t * src_str, data_t * dst,
117 unsigned char *dst = NULL;
148 mbedtls_free( dst );
161 unsigned char *dst = NULL;
192 mbedtls_free( dst );
247 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 );
[all …]
A Dtest_suite_base64.function128 void base64_encode_hex( data_t * src, char * dst, int dst_buf_size,
146 TEST_ASSERT( len == strlen( dst ) );
147 TEST_ASSERT( memcmp( dst, res, len ) == 0 );
156 void base64_decode_hex( char * src, data_t * dst, int dst_buf_size,
168 TEST_ASSERT( len == dst->len );
169 TEST_ASSERT( memcmp( dst->x, res, len ) == 0 );
180 unsigned char dst[1000] = { 0 };
183 TEST_ASSERT( mbedtls_base64_decode( dst, sizeof( dst ), &len, src->x, src->len ) == result );
187 TEST_ASSERT( memcmp( dst, dst_ref, len ) == 0 );
A Dtest_suite_gcm.function193 data_t * add_str, data_t * dst,
215 ASSERT_COMPARE( output, src_str->len, dst->x, dst->len );
225 dst, tag,
378 data_t * dst,
388 iv_str, src_str, dst, tag_str,
A Dtest_suite_mpi.function506 mbedtls_mpi src, dst, ref;
508 mbedtls_mpi_init( &dst );
516 TEST_ASSERT( mbedtls_mpi_copy( &dst, &src ) == 0 );
517 TEST_ASSERT( sign_is_valid( &dst ) );
518 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &dst, &src ) == 0 );
521 mbedtls_mpi_free( &dst );
524 TEST_ASSERT( sign_is_valid( &dst ) );
525 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &dst, &src ) == 0 );
528 mbedtls_mpi_free( &dst );
531 TEST_ASSERT( sign_is_valid( &dst ) );
[all …]
/mbedtls-development/scripts/mbedtls_dev/
A Dasymmetric_key_data.py36 dst = {} #type: Dict[str, Dict[int, bytes]]
40 dst[private] = {}
41 dst[public] = {}
43 dst[private][size] = unhexlify(src[typ][size][0])
44 dst[public][size] = unhexlify(src[typ][size][1])
45 return dst
/mbedtls-development/library/
A Dbase64.c79 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
102 if( ( dlen < n + 1 ) || ( NULL == dst ) ) in mbedtls_base64_encode()
110 for( i = 0, p = dst; i < n; i += 3 ) in mbedtls_base64_encode()
140 *olen = p - dst; in mbedtls_base64_encode()
178 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument
246 if( dst == NULL || dlen < n ) in mbedtls_base64_decode()
253 for( x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode()
273 *olen = p - dst; in mbedtls_base64_decode()
A Dmd.c296 int mbedtls_md_clone( mbedtls_md_context_t *dst, in mbedtls_md_clone() argument
299 if( dst == NULL || dst->md_info == NULL || in mbedtls_md_clone()
301 dst->md_info != src->md_info ) in mbedtls_md_clone()
310 mbedtls_md5_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
315 mbedtls_ripemd160_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
320 mbedtls_sha1_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
325 mbedtls_sha256_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
330 mbedtls_sha256_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
335 mbedtls_sha512_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
340 mbedtls_sha512_clone( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
A Dcamellia.c913 unsigned char dst[16]; in mbedtls_camellia_self_test() local
943 memcpy( dst, camellia_test_ecb_plain[i], 16 ); in mbedtls_camellia_self_test()
947 memcpy( dst, camellia_test_ecb_cipher[u][i], 16 ); in mbedtls_camellia_self_test()
952 if( memcmp( buf, dst, 16 ) != 0 ) in mbedtls_camellia_self_test()
981 memcpy( dst, camellia_test_cbc_iv, 16 ); in mbedtls_camellia_self_test()
995 memcpy( dst, camellia_test_cbc_plain[i], 16 ); in mbedtls_camellia_self_test()
997 memcpy( iv , dst, 16 ); in mbedtls_camellia_self_test()
999 memcpy( dst, camellia_test_cbc_cipher[u][i], 16 ); in mbedtls_camellia_self_test()
1004 if( memcmp( buf, dst, 16 ) != 0 ) in mbedtls_camellia_self_test()
A Dssl_cache.c56 mbedtls_ssl_cache_entry **dst ) in ssl_cache_find_entry() argument
84 *dst = cur; in ssl_cache_find_entry()
130 mbedtls_ssl_cache_entry **dst ) in ssl_cache_pick_writing_slot() argument
243 *dst = cur; in ssl_cache_pick_writing_slot()
A Drsa.c1131 p = dst; in mgf_mask()
1943 unsigned char *dst ) in rsa_rsassa_pkcs1_v15_encode() argument
1947 unsigned char *p = dst; in rsa_rsassa_pkcs1_v15_encode()
2043 if( p != dst + dst_len ) in rsa_rsassa_pkcs1_v15_encode()
2045 mbedtls_platform_zeroize( dst, dst_len ); in rsa_rsassa_pkcs1_v15_encode()
2440 RSA_VALIDATE_RET( dst != NULL ); in mbedtls_rsa_copy()
2443 dst->len = src->len; in mbedtls_rsa_copy()
2445 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->N, &src->N ) ); in mbedtls_rsa_copy()
2465 dst->padding = src->padding; in mbedtls_rsa_copy()
2466 dst->hash_id = src->hash_id; in mbedtls_rsa_copy()
[all …]
A Dssl_tls13_keys.c100 unsigned char *dst, size_t *dlen ) in ssl_tls1_3_hkdf_encode_label() argument
107 unsigned char *p = dst; in ssl_tls1_3_hkdf_encode_label()
599 unsigned char *dst ) in ssl_tls1_3_calc_finished_core() argument
636 ret = mbedtls_md_hmac( md_info, finished_key, md_size, transcript, md_size, dst ); in ssl_tls1_3_calc_finished_core()
647 unsigned char* dst, in mbedtls_ssl_tls13_calculate_verify_data() argument
683 ret = ssl_tls1_3_calc_finished_core( md_type, base_key, transcript, dst ); in mbedtls_ssl_tls13_calculate_verify_data()
688 MBEDTLS_SSL_DEBUG_BUF( 3, "verify_data for finished message", dst, md_size ); in mbedtls_ssl_tls13_calculate_verify_data()
A Dssl_invasive.h93 void mbedtls_ssl_cf_memcpy_offset( unsigned char *dst,
A Dssl_tls.c183 mbedtls_ssl_session_free( dst ); in mbedtls_ssl_session_copy()
184 memcpy( dst, src, sizeof( mbedtls_ssl_session ) ); in mbedtls_ssl_session_copy()
194 if( dst->peer_cert == NULL ) in mbedtls_ssl_session_copy()
197 mbedtls_x509_crt_init( dst->peer_cert ); in mbedtls_ssl_session_copy()
202 mbedtls_free( dst->peer_cert ); in mbedtls_ssl_session_copy()
203 dst->peer_cert = NULL; in mbedtls_ssl_session_copy()
210 dst->peer_cert_digest = in mbedtls_ssl_session_copy()
212 if( dst->peer_cert_digest == NULL ) in mbedtls_ssl_session_copy()
228 if( dst->ticket == NULL ) in mbedtls_ssl_session_copy()
4531 dst == NULL || in mbedtls_ssl_get_session()
[all …]
A Dsha512.c83 void mbedtls_sha512_clone( mbedtls_sha512_context *dst, in mbedtls_sha512_clone() argument
86 SHA512_VALIDATE( dst != NULL ); in mbedtls_sha512_clone()
89 *dst = *src; in mbedtls_sha512_clone()
/mbedtls-development/include/mbedtls/
A Dbase64.h57 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
77 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
A Dpsa_util.h399 unsigned char **dst, in mbedtls_psa_tls_psa_ec_to_ecpoint() argument
402 *dst = src; in mbedtls_psa_tls_psa_ec_to_ecpoint()
414 unsigned char *dst, in mbedtls_psa_tls_ecpoint_to_psa_ec() argument
421 memcpy( dst, src, srclen ); in mbedtls_psa_tls_ecpoint_to_psa_ec()
A Dripemd160.h74 void mbedtls_ripemd160_clone( mbedtls_ripemd160_context *dst,
A Dmd5.h98 void mbedtls_md5_clone( mbedtls_md5_context *dst,
A Dsha1.h108 void mbedtls_sha1_clone( mbedtls_sha1_context *dst,
A Dsha256.h88 void mbedtls_sha256_clone( mbedtls_sha256_context *dst,
A Dsha512.h91 void mbedtls_sha512_clone( mbedtls_sha512_context *dst,
A Dmd.h205 int mbedtls_md_clone( mbedtls_md_context_t *dst,
/mbedtls-development/programs/test/
A Dudp_proxy.c502 mbedtls_net_context *dst; member
555 mbedtls_net_context *dst = p->dst; in send_packet() local
578 if( ( ret = dispatch_data( dst, buf, p->len ) ) <= 0 ) in send_packet()
602 if( ( ret = dispatch_data( dst, buf, p->len ) ) <= 0 ) in send_packet()
610 if( ( ret = dispatch_data( dst, p->buf, p->len ) ) <= 0 ) in send_packet()
623 if( ( ret = dispatch_data( dst, p->buf, p->len ) ) <= 0 ) in send_packet()
637 if( ( ret = dispatch_data( dst, initial_clihlo.buf, in send_packet()
701 mbedtls_net_context *dst, in handle_message() argument
722 cur.dst = dst; in handle_message()

Completed in 38 milliseconds

12