Lines Matching refs:hash
76 int sign_vectors(TCSha256State_t hash, char **d_vec, char **k_vec, in sign_vectors() argument
118 tc_sha256_init(hash); in sign_vectors()
119 tc_sha256_update(hash, msg, msglen); in sign_vectors()
120 tc_sha256_final(digest_bytes, hash); in sign_vectors()
343 int vrfy_vectors(TCSha256State_t hash, char **msg_vec, char **qx_vec, char **qy_vec, in vrfy_vectors() argument
385 tc_sha256_init(hash); in vrfy_vectors()
386 tc_sha256_update(hash, msg, msglen); in vrfy_vectors()
387 tc_sha256_final(digest_bytes, hash); in vrfy_vectors()
597 uint8_t hash[NUM_ECC_BYTES]; in montecarlo_signverify() local
610 uECC_vli_nativeToBytes(hash, NUM_ECC_BYTES, hash_words); in montecarlo_signverify()
617 if (!uECC_sign(private, hash, sizeof(hash), sig, curve)) { in montecarlo_signverify()
622 if (!uECC_verify(public, hash, sizeof(hash), sig, curve)) { in montecarlo_signverify()