Searched refs:ctx_cli (Results 1 – 1 of 1) sorted by relevance
/AliOS-Things-master/components/mbedtls/programs/pkey/ |
A D | ecdh_curve25519.c | 72 mbedtls_ecdh_context ctx_cli, ctx_srv; in main() local 80 mbedtls_ecdh_init( &ctx_cli ); in main() 107 ret = mbedtls_ecp_group_load( &ctx_cli.grp, MBEDTLS_ECP_DP_CURVE25519 ); in main() 114 ret = mbedtls_ecdh_gen_public( &ctx_cli.grp, &ctx_cli.d, &ctx_cli.Q, in main() 122 ret = mbedtls_mpi_write_binary( &ctx_cli.Q.X, cli_to_srv, 32 ); in main() 198 ret = mbedtls_mpi_lset( &ctx_cli.Qp.Z, 1 ); in main() 205 ret = mbedtls_mpi_read_binary( &ctx_cli.Qp.X, srv_to_cli, 32 ); in main() 212 ret = mbedtls_ecdh_compute_shared( &ctx_cli.grp, &ctx_cli.z, in main() 213 &ctx_cli.Qp, &ctx_cli.d, in main() 229 ret = mbedtls_mpi_cmp_mpi( &ctx_cli.z, &ctx_srv.z ); in main() [all …]
|
Completed in 3 milliseconds