Skip to content

Commit

Permalink
Digest needs to be flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdevlin committed Aug 21, 2020
1 parent 9e34c9d commit 0c6783c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/cl_zcash/software/runtime/openssl_verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0c6783c

Please sign in to comment.