/net-tools-3.5.0/mbedtls-2.4.0/yotta/data/example-selftest/ |
D | main.cpp | 69 int ret = 0, v; in selftest() local 89 if( ( ret = mbedtls_md2_self_test( v ) ) != 0 ) in selftest() 90 return( ret ); in selftest() 94 if( ( ret = mbedtls_md4_self_test( v ) ) != 0 ) in selftest() 95 return( ret ); in selftest() 99 if( ( ret = mbedtls_md5_self_test( v ) ) != 0 ) in selftest() 100 return( ret ); in selftest() 104 if( ( ret = mbedtls_ripemd160_self_test( v ) ) != 0 ) in selftest() 105 return( ret ); in selftest() 109 if( ( ret = mbedtls_sha1_self_test( v ) ) != 0 ) in selftest() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/library/ |
D | pkparse.c | 124 int ret; in mbedtls_pk_parse_keyfile() local 128 if( ( ret = mbedtls_pk_load_file( path, &buf, &n ) ) != 0 ) in mbedtls_pk_parse_keyfile() 129 return( ret ); in mbedtls_pk_parse_keyfile() 132 ret = mbedtls_pk_parse_key( ctx, buf, n, NULL, 0 ); in mbedtls_pk_parse_keyfile() 134 ret = mbedtls_pk_parse_key( ctx, buf, n, in mbedtls_pk_parse_keyfile() 140 return( ret ); in mbedtls_pk_parse_keyfile() 148 int ret; in mbedtls_pk_parse_public_keyfile() local 152 if( ( ret = mbedtls_pk_load_file( path, &buf, &n ) ) != 0 ) in mbedtls_pk_parse_public_keyfile() 153 return( ret ); in mbedtls_pk_parse_public_keyfile() 155 ret = mbedtls_pk_parse_public_key( ctx, buf, n ); in mbedtls_pk_parse_public_keyfile() [all …]
|
D | x509.c | 82 #define CHECK(code) if( ( ret = code ) != 0 ){ return( ret ); } 83 #define CHECK_RANGE(min, max, val) if( val < min || val > max ){ return( ret ); } 91 int ret; in mbedtls_x509_get_serial() local 104 if( ( ret = mbedtls_asn1_get_len( p, end, &serial->len ) ) != 0 ) in mbedtls_x509_get_serial() 105 return( MBEDTLS_ERR_X509_INVALID_SERIAL + ret ); in mbedtls_x509_get_serial() 122 int ret; in mbedtls_x509_get_alg_null() local 124 if( ( ret = mbedtls_asn1_get_alg_null( p, end, alg ) ) != 0 ) in mbedtls_x509_get_alg_null() 125 return( MBEDTLS_ERR_X509_INVALID_ALG + ret ); in mbedtls_x509_get_alg_null() 136 int ret; in mbedtls_x509_get_alg() local 138 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, params ) ) != 0 ) in mbedtls_x509_get_alg() [all …]
|
D | x509_crl.c | 81 int ret; in x509_crl_get_version() local 83 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_crl_get_version() 85 if( ret == MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ) in x509_crl_get_version() 91 return( MBEDTLS_ERR_X509_INVALID_VERSION + ret ); in x509_crl_get_version() 104 int ret; in x509_get_crl_ext() local 108 if( ( ret = mbedtls_x509_get_ext( p, end, ext, 0) ) != 0 ) in x509_get_crl_ext() 110 if( ret == MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ) in x509_get_crl_ext() 113 return( ret ); in x509_get_crl_ext() 118 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_crl_ext() 120 return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS + ret ); in x509_get_crl_ext() [all …]
|
D | pkcs5.c | 58 int ret; in pkcs5_parse_pbkdf2_params() local 75 if( ( ret = mbedtls_asn1_get_tag( &p, end, &salt->len, MBEDTLS_ASN1_OCTET_STRING ) ) != 0 ) in pkcs5_parse_pbkdf2_params() 76 return( MBEDTLS_ERR_PKCS5_INVALID_FORMAT + ret ); in pkcs5_parse_pbkdf2_params() 81 if( ( ret = mbedtls_asn1_get_int( &p, end, iterations ) ) != 0 ) in pkcs5_parse_pbkdf2_params() 82 return( MBEDTLS_ERR_PKCS5_INVALID_FORMAT + ret ); in pkcs5_parse_pbkdf2_params() 87 if( ( ret = mbedtls_asn1_get_int( &p, end, keylen ) ) != 0 ) in pkcs5_parse_pbkdf2_params() 89 if( ret != MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ) in pkcs5_parse_pbkdf2_params() 90 return( MBEDTLS_ERR_PKCS5_INVALID_FORMAT + ret ); in pkcs5_parse_pbkdf2_params() 96 if( ( ret = mbedtls_asn1_get_alg_null( &p, end, &prf_alg_oid ) ) != 0 ) in pkcs5_parse_pbkdf2_params() 97 return( MBEDTLS_ERR_PKCS5_INVALID_FORMAT + ret ); in pkcs5_parse_pbkdf2_params() [all …]
|
D | x509_csr.c | 75 int ret; in x509_csr_get_version() local 77 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_csr_get_version() 79 if( ret == MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ) in x509_csr_get_version() 85 return( MBEDTLS_ERR_X509_INVALID_VERSION + ret ); in x509_csr_get_version() 97 int ret; in mbedtls_x509_csr_parse_der() local 133 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der() 152 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der() 156 return( MBEDTLS_ERR_X509_INVALID_FORMAT + ret ); in mbedtls_x509_csr_parse_der() 165 if( ( ret = x509_csr_get_version( &p, end, &csr->version ) ) != 0 ) in mbedtls_x509_csr_parse_der() 168 return( ret ); in mbedtls_x509_csr_parse_der() [all …]
|
D | entropy.c | 135 int index, ret = 0; in mbedtls_entropy_add_source() local 138 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_add_source() 139 return( ret ); in mbedtls_entropy_add_source() 145 ret = MBEDTLS_ERR_ENTROPY_MAX_SOURCES; in mbedtls_entropy_add_source() 162 return( ret ); in mbedtls_entropy_add_source() 204 int ret; in mbedtls_entropy_update_manual() local 207 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_update_manual() 208 return( ret ); in mbedtls_entropy_update_manual() 211 ret = entropy_update( ctx, MBEDTLS_ENTROPY_SOURCE_MANUAL, data, len ); in mbedtls_entropy_update_manual() 218 return( ret ); in mbedtls_entropy_update_manual() [all …]
|
D | dhm.c | 72 int ret, n; in dhm_read_bignum() local 83 if( ( ret = mbedtls_mpi_read_binary( X, *p, n ) ) != 0 ) in dhm_read_bignum() 84 return( MBEDTLS_ERR_DHM_READ_PARAMS_FAILED + ret ); in dhm_read_bignum() 103 int ret = MBEDTLS_ERR_DHM_BAD_INPUT_DATA; in dhm_check_range() local 113 ret = 0; in dhm_check_range() 118 return( ret ); in dhm_check_range() 133 int ret; in mbedtls_dhm_read_params() local 135 if( ( ret = dhm_read_bignum( &ctx->P, p, end ) ) != 0 || in mbedtls_dhm_read_params() 136 ( ret = dhm_read_bignum( &ctx->G, p, end ) ) != 0 || in mbedtls_dhm_read_params() 137 ( ret = dhm_read_bignum( &ctx->GY, p, end ) ) != 0 ) in mbedtls_dhm_read_params() [all …]
|
D | cmac.c | 141 int ret; in cmac_generate_subkeys() local 150 if( ( ret = mbedtls_cipher_update( ctx, L, block_size, L, &olen ) ) != 0 ) in cmac_generate_subkeys() 156 if( ( ret = cmac_multiply_by_u( K1, L , block_size ) ) != 0 ) in cmac_generate_subkeys() 159 if( ( ret = cmac_multiply_by_u( K2, K1 , block_size ) ) != 0 ) in cmac_generate_subkeys() 165 return( ret ); in cmac_generate_subkeys() 247 int n, j, ret = 0; in mbedtls_cipher_cmac_update() local 269 if( ( ret = mbedtls_cipher_update( ctx, state, block_size, state, in mbedtls_cipher_cmac_update() 288 if( ( ret = mbedtls_cipher_update( ctx, state, block_size, state, in mbedtls_cipher_cmac_update() 306 return( ret ); in mbedtls_cipher_cmac_update() 317 int ret; in mbedtls_cipher_cmac_finish() local [all …]
|
D | x509_crt.c | 213 int ret; in x509_get_version() local 216 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_version() 219 if( ret == MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ) in x509_get_version() 225 return( ret ); in x509_get_version() 230 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_get_version() 231 return( MBEDTLS_ERR_X509_INVALID_VERSION + ret ); in x509_get_version() 250 int ret; in x509_get_dates() local 253 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_dates() 255 return( MBEDTLS_ERR_X509_INVALID_DATE + ret ); in x509_get_dates() 259 if( ( ret = mbedtls_x509_get_time( p, end, from ) ) != 0 ) in x509_get_dates() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/pkey/ |
D | ecdh_curve25519.c | 54 int ret; in main() local 74 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 78 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main() 90 ret = mbedtls_ecp_group_load( &ctx_cli.grp, MBEDTLS_ECP_DP_CURVE25519 ); in main() 91 if( ret != 0 ) in main() 93 mbedtls_printf( " failed\n ! mbedtls_ecp_group_load returned %d\n", ret ); in main() 97 ret = mbedtls_ecdh_gen_public( &ctx_cli.grp, &ctx_cli.d, &ctx_cli.Q, in main() 99 if( ret != 0 ) in main() 101 mbedtls_printf( " failed\n ! mbedtls_ecdh_gen_public returned %d\n", ret ); in main() 105 ret = mbedtls_mpi_write_binary( &ctx_cli.Q.X, cli_to_srv, 32 ); in main() [all …]
|
D | dh_server.c | 74 int ret; in main() local 103 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 107 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main() 119 ret = 1; in main() 127 if( ( ret = mbedtls_mpi_read_file( &rsa.N , 16, f ) ) != 0 || in main() 128 ( ret = mbedtls_mpi_read_file( &rsa.E , 16, f ) ) != 0 || in main() 129 ( ret = mbedtls_mpi_read_file( &rsa.D , 16, f ) ) != 0 || in main() 130 ( ret = mbedtls_mpi_read_file( &rsa.P , 16, f ) ) != 0 || in main() 131 ( ret = mbedtls_mpi_read_file( &rsa.Q , 16, f ) ) != 0 || in main() 132 ( ret = mbedtls_mpi_read_file( &rsa.DP, 16, f ) ) != 0 || in main() [all …]
|
D | rsa_genkey.c | 64 int ret; in main() local 78 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 82 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main() 91 if( ( ret = mbedtls_rsa_gen_key( &rsa, mbedtls_ctr_drbg_random, &ctr_drbg, KEY_SIZE, in main() 94 mbedtls_printf( " failed\n ! mbedtls_rsa_gen_key returned %d\n\n", ret ); in main() 104 ret = 1; in main() 108 if( ( ret = mbedtls_mpi_write_file( "N = ", &rsa.N, 16, fpub ) ) != 0 || in main() 109 ( ret = mbedtls_mpi_write_file( "E = ", &rsa.E, 16, fpub ) ) != 0 ) in main() 111 mbedtls_printf( " failed\n ! mbedtls_mpi_write_file returned %d\n\n", ret ); in main() 121 ret = 1; in main() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/ssl/ |
D | dtls_server.c | 94 int ret, len; in main() local 141 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 143 if( ret != 0 ) in main() 145 printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main() 149 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 151 if( ret != 0 ) in main() 153 printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main() 157 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in main() 159 if( ret != 0 ) in main() 161 printf( " failed\n ! mbedtls_pk_parse_key returned %d\n\n", ret ); in main() [all …]
|
D | ssl_mail_client.c | 169 int ret; in do_handshake() local 180 while( ( ret = mbedtls_ssl_handshake( ssl ) ) != 0 ) in do_handshake() 182 if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE ) in do_handshake() 185 mbedtls_strerror( ret, (char *) buf, 1024 ); in do_handshake() 187 mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned %d: %s\n\n", ret, buf ); in do_handshake() 224 int ret; in write_ssl_data() local 227 while( len && ( ret = mbedtls_ssl_write( ssl, buf, len ) ) <= 0 ) in write_ssl_data() 229 if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE ) in write_ssl_data() 231 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in write_ssl_data() 241 int ret; in write_ssl_and_get_response() local [all …]
|
D | ssl_server.c | 95 int ret, len; in main() local 137 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 139 if( ret != 0 ) in main() 141 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main() 145 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 147 if( ret != 0 ) in main() 149 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main() 153 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in main() 155 if( ret != 0 ) in main() 157 mbedtls_printf( " failed\n ! mbedtls_pk_parse_key returned %d\n\n", ret ); in main() [all …]
|
D | dtls_client.c | 85 int ret, len; in main() local 119 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 123 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main() 135 ret = mbedtls_x509_crt_parse( &cacert, (const unsigned char *) mbedtls_test_cas_pem, in main() 137 if( ret < 0 ) in main() 139 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main() 143 mbedtls_printf( " ok (%d skipped)\n", ret ); in main() 151 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_ADDR, in main() 154 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main() 166 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() [all …]
|
D | ssl_pthread_server.c | 124 int ret, len; in handle_ssl_connection() local 139 if( ( ret = mbedtls_ssl_setup( &ssl, thread_info->config ) ) != 0 ) in handle_ssl_connection() 142 thread_id, -ret ); in handle_ssl_connection() 153 while( ( ret = mbedtls_ssl_handshake( &ssl ) ) != 0 ) in handle_ssl_connection() 155 if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE ) in handle_ssl_connection() 158 thread_id, -ret ); in handle_ssl_connection() 174 ret = mbedtls_ssl_read( &ssl, buf, len ); in handle_ssl_connection() 176 if( ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE ) in handle_ssl_connection() 179 if( ret <= 0 ) in handle_ssl_connection() 181 switch( ret ) in handle_ssl_connection() [all …]
|
D | ssl_fork_server.c | 98 int ret, len, cnt = 0, pid; in main() local 127 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 131 mbedtls_printf( " failed! mbedtls_ctr_drbg_seed returned %d\n\n", ret ); in main() 148 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 150 if( ret != 0 ) in main() 152 mbedtls_printf( " failed! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main() 156 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 158 if( ret != 0 ) in main() 160 mbedtls_printf( " failed! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main() 164 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in main() [all …]
|
D | ssl_client1.c | 83 int ret, len; in main() local 112 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 116 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main() 128 ret = mbedtls_x509_crt_parse( &cacert, (const unsigned char *) mbedtls_test_cas_pem, in main() 130 if( ret < 0 ) in main() 132 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main() 136 mbedtls_printf( " ok (%d skipped)\n", ret ); in main() 144 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main() 147 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main() 159 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() [all …]
|
/net-tools-3.5.0/ |
D | dtls-server.c | 105 int ret, len, c; in main() local 188 ret = mbedtls_x509_crt_parse_file(&srvcert, srv_cert_file); in main() 189 if (ret != 0) { in main() 191 ret); in main() 195 ret = mbedtls_pk_parse_keyfile(&pkey, srv_key_file, NULL); in main() 196 if (ret != 0) { in main() 198 ret); in main() 210 if ((ret = mbedtls_net_bind(&listen_fd, NULL, listen_port, in main() 212 printf(" failed\n ! mbedtls_net_bind returned %d\n\n", ret); in main() 224 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() [all …]
|
D | dtls-client.c | 334 int ret, len, idx = 0; in main() local 413 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() 417 mbedtls_printf(" failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret); in main() 429 ret = mbedtls_x509_crt_parse_file(&cacert, ca_cert_file); in main() 430 if (ret < 0) { in main() 431 mbedtls_printf(" failed\n ! mbedtls_x509_crt_parse_file returned -0x%x\n\n", -ret); in main() 435 mbedtls_printf(" ok (%d skipped)\n", ret); in main() 443 if ((ret = mbedtls_net_connect(&server_fd, target, in main() 446 mbedtls_printf(" failed\n ! mbedtls_net_connect returned %d\n\n", ret); in main() 458 if ((ret = mbedtls_ssl_config_defaults(&conf, in main() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/x509/ |
D | cert_write.c | 160 int ret; in write_certificate() local 166 if( ( ret = mbedtls_x509write_crt_pem( crt, output_buf, 4096, f_rng, p_rng ) ) < 0 ) in write_certificate() 167 return( ret ); in write_certificate() 187 int ret = 0; in main() local 225 ret = 1; in main() 374 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 378 mbedtls_strerror( ret, buf, 1024 ); in main() 379 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d - %s\n", ret, buf ); in main() 390 if( ( ret = mbedtls_mpi_read_string( &serial, 10, opt.serial ) ) != 0 ) in main() 392 mbedtls_strerror( ret, buf, 1024 ); in main() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/test/ |
D | ssl_cert_test.c | 83 int ret, i; in main() local 101 ret = mbedtls_x509_crt_parse_file( &cacert, "ssl/test-ca/test-ca.crt" ); in main() 102 if( ret != 0 ) in main() 104 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned %d\n\n", ret ); in main() 119 ret = mbedtls_x509_crl_parse_file( &crl, "ssl/test-ca/crl.pem" ); in main() 120 if( ret != 0 ) in main() 122 mbedtls_printf( " failed\n ! mbedtls_x509_crl_parse_file returned %d\n\n", ret ); in main() 149 ret = mbedtls_x509_crt_parse_file( &clicert, name ); in main() 150 if( ret != 0 ) in main() 152 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned %d\n\n", ret ); in main() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/yotta/data/example-authcrypt/ |
D | main.cpp | 56 int ret; in example() local 73 ret = mbedtls_ctr_drbg_seed(&drbg, mbedtls_entropy_func, &entropy, in example() 75 if (ret != 0) { in example() 76 printf("mbedtls_ctr_drbg_init() returned -0x%04X\r\n", -ret); in example() 87 ret = mbedtls_cipher_setup(&ctx, mbedtls_cipher_info_from_type(MBEDTLS_CIPHER_AES_128_CCM)); in example() 88 if (ret != 0) { in example() 89 printf("mbedtls_cipher_setup() returned -0x%04X\r\n", -ret); in example() 93 ret = mbedtls_cipher_setkey(&ctx, secret_key, 8 * sizeof secret_key, MBEDTLS_ENCRYPT); in example() 94 if (ret != 0) { in example() 95 printf("mbedtls_cipher_setkey() returned -0x%04X\r\n", -ret); in example() [all …]
|