Searched refs:ctx_sign (Results 1 – 1 of 1) sorted by relevance
101 mbedtls_ecdsa_context ctx_sign, ctx_verify; in main() local110 mbedtls_ecdsa_init( &ctx_sign ); in main()146 if( ( ret = mbedtls_ecdsa_genkey( &ctx_sign, ECPARAMS, in main()153 mbedtls_printf( " ok (key size: %d bits)\n", (int) ctx_sign.grp.pbits ); in main()155 dump_pubkey( " + Public key: ", &ctx_sign ); in main()163 if( ( ret = mbedtls_ecdsa_write_signature( &ctx_sign, MBEDTLS_MD_SHA256, in main()186 if( ( ret = mbedtls_ecp_group_copy( &ctx_verify.grp, &ctx_sign.grp ) ) != 0 ) in main()192 if( ( ret = mbedtls_ecp_copy( &ctx_verify.Q, &ctx_sign.Q ) ) != 0 ) in main()224 mbedtls_ecdsa_free( &ctx_sign ); in main()