forked from lthn/blockchain
gcc compilation fixed
This commit is contained in:
parent
dd679a1117
commit
8a03f8e4b3
2 changed files with 2 additions and 3 deletions
|
|
@ -10,7 +10,6 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <intrin.h>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue