Searched refs:ctx_sign (Results 1 – 1 of 1) sorted by relevance
106 mbedtls_ecdsa_context ctx_sign, ctx_verify; in main() local116 mbedtls_ecdsa_init( &ctx_sign ); in main()152 if( ( ret = mbedtls_ecdsa_genkey( &ctx_sign, ECPARAMS, in main()159 mbedtls_printf( " ok (key size: %d bits)\n", (int) ctx_sign.grp.pbits ); in main()161 dump_pubkey( " + Public key: ", &ctx_sign ); in main()185 if( ( ret = mbedtls_ecdsa_write_signature( &ctx_sign, MBEDTLS_MD_SHA256, in main()207 if( ( ret = mbedtls_ecp_group_copy( &ctx_verify.grp, &ctx_sign.grp ) ) != 0 ) in main()213 if( ( ret = mbedtls_ecp_copy( &ctx_verify.Q, &ctx_sign.Q ) ) != 0 ) in main()245 mbedtls_ecdsa_free( &ctx_sign ); in main()