From 0c6783c4a8be8abe7871e7b03d8dacfafddf60c9 Mon Sep 17 00:00:00 2001 From: bsdevlin Date: Fri, 21 Aug 2020 14:37:07 -0400 Subject: [PATCH] Digest needs to be flipped --- aws/cl_zcash/software/runtime/openssl_verify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws/cl_zcash/software/runtime/openssl_verify.cpp b/aws/cl_zcash/software/runtime/openssl_verify.cpp index 912d046..e4e111e 100644 --- a/aws/cl_zcash/software/runtime/openssl_verify.cpp +++ b/aws/cl_zcash/software/runtime/openssl_verify.cpp @@ -109,12 +109,12 @@ int main(int argc, char *argv[]) { //in case the Big_little Endian convert are needed. - //unsigned char *p_dig =(unsigned char*) &(sig.hash); + unsigned char *p_dig =(unsigned char*) &(sig.hash); //unsigned char *p_sig_r=(unsigned char*) &(sig.r); //unsigned char *p_sig_s=(unsigned char*) &(sig.s); //unsigned char *p_pk_qx=(unsigned char*) &(sig.Qx); //unsigned char *p_pk_qy=(unsigned char*) &(sig.Qy); - //std::reverse (p_dig, p_dig+sizeof(sig.hash)); + std::reverse (p_dig, p_dig+sizeof(sig.hash)); //std::reverse (p_sig_r, p_sig_r+sizeof(sig.r)); //std::reverse (p_sig_s, p_sig_s+sizeof(sig.s)); //std::reverse (p_pk_qx, p_pk_qx+sizeof(sig.Qx));