1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00

correct random padding for ICIES public key

This commit is contained in:
orignal 2017-11-11 22:10:54 -05:00
parent dca4cf2edb
commit 7fb8ee60b4

View File

@ -82,7 +82,7 @@ namespace crypto
EC_POINT_get_affine_coordinates_GFp (curve, p, x, y, NULL);
bn2buf (x, pub, 32);
bn2buf (y, pub + 32, 32);
RAND_bytes (priv + 64, 192);
RAND_bytes (pub + 64, 192);
EC_POINT_free (p);
BN_free (x); BN_free (y);
EC_GROUP_free (curve);