Lines Matching refs:hash
49 const unsigned char *hash, unsigned char *sig )
52 md_alg, hashlen, hash, sig ) );
227 unsigned char hash[100], sig[500], key[500];
232 memset( hash, 0, sizeof( hash ) ); hash_len = unhexify(hash, hash_str);
246 hash, hash_len, sig, sig_len ) == ret );
257 unsigned char hash[50], sig[5000];
262 memset( hash, 0x2a, sizeof hash );
268 TEST_ASSERT( mbedtls_pk_sign( &pk, MBEDTLS_MD_SHA256, hash, sizeof hash,
272 hash, sizeof hash, sig, sig_len ) == verify_ret );
428 unsigned char hash[50], sig[1000];
436 memset( hash, 0x2a, sizeof hash );
462 TEST_ASSERT( mbedtls_pk_sign( &alt, MBEDTLS_MD_NONE, hash, sizeof hash,
466 hash, sizeof hash, sig, sig_len ) == 0 );
483 hash, sizeof hash, sig, sig_len ) == ret );