1
0
Fork 0
forked from lthn/blockchain

gcc compilation fixed

This commit is contained in:
sowle 2021-01-28 14:53:04 +03:00
parent dd679a1117
commit 8a03f8e4b3
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <sys/param.h>
#if defined(_MSC_VER)
#include <intrin.h>

View file

@ -3754,9 +3754,9 @@ void ge_bytes_hash_to_ec(ge_p3 *res, const unsigned char *ge_bytes)
ge_p2 point;
ge_p1p1 point2;
cn_fast_hash(ge_bytes, 32, h);
cn_fast_hash(ge_bytes, 32, (char*)h);
ge_fromfe_frombytes_vartime(&point, &h[0]);
/*ge_p2_to_p3(res, &point); /* -- can be used to avoid multiplication by 8 for debugging */
/*ge_p2_to_p3(res, &point); -- can be used to avoid multiplication by 8 for debugging */
ge_mul8(&point2, &point);
ge_p1p1_to_p3(res, &point2);
}