Lines Matching refs:hash
50 unsigned char hash[66], rnd_buf[66];
58 memset( hash, 0, sizeof( hash ) );
66 hlen = unhexify(hash, hash_str);
82 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, hash, hlen,
88 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, hash, hlen, &Q, &r_check, &s_check ) == 0 );
104 unsigned char hash[MBEDTLS_MD_MAX_SIZE];
111 memset( hash, 0, sizeof( hash ) );
121 mbedtls_md( md_info, (const unsigned char *) msg, strlen( msg ), hash );
123 TEST_ASSERT( mbedtls_ecdsa_sign_det( &grp, &r, &s, &d, hash, hlen, md_alg ) == 0 );
140 unsigned char hash[32];
146 memset( hash, 0, sizeof( hash ) );
150 TEST_ASSERT( rnd_pseudo_rand( &rnd_info, hash, sizeof( hash ) ) == 0 );
157 hash, sizeof( hash ),
159 TEST_ASSERT( mbedtls_ecdsa_read_signature( &ctx, hash, sizeof( hash ),
167 TEST_ASSERT( mbedtls_ecdsa_read_signature( &ctx, hash, sizeof( hash ),
169 TEST_ASSERT( mbedtls_ecdsa_read_signature( &ctx, hash, sizeof( hash ),
174 TEST_ASSERT( mbedtls_ecdsa_read_signature( &ctx, hash, sizeof( hash ),
180 TEST_ASSERT( mbedtls_ecdsa_read_signature( &ctx, hash, sizeof( hash ),
186 TEST_ASSERT( mbedtls_ecdsa_read_signature( &ctx, hash, sizeof( hash ),