Searched refs:ctx_sign (Results 1 – 1 of 1) sorted by relevance
119 mbedtls_ecdsa_context ctx_sign, ctx_verify; in main() local129 mbedtls_ecdsa_init( &ctx_sign ); in main()165 if( ( ret = mbedtls_ecdsa_genkey( &ctx_sign, ECPARAMS, in main()172 mbedtls_printf( " ok (key size: %d bits)\n", (int) ctx_sign.grp.pbits ); in main()174 dump_pubkey( " + Public key: ", &ctx_sign ); in main()198 if( ( ret = mbedtls_ecdsa_write_signature( &ctx_sign, MBEDTLS_MD_SHA256, in main()220 if( ( ret = mbedtls_ecp_group_copy( &ctx_verify.grp, &ctx_sign.grp ) ) != 0 ) in main()226 if( ( ret = mbedtls_ecp_copy( &ctx_verify.Q, &ctx_sign.Q ) ) != 0 ) in main()258 mbedtls_ecdsa_free( &ctx_sign ); in main()
Completed in 4 milliseconds