mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
correct random padding for ICIES public key
This commit is contained in:
parent
dca4cf2edb
commit
7fb8ee60b4
@ -82,7 +82,7 @@ namespace crypto
|
|||||||
EC_POINT_get_affine_coordinates_GFp (curve, p, x, y, NULL);
|
EC_POINT_get_affine_coordinates_GFp (curve, p, x, y, NULL);
|
||||||
bn2buf (x, pub, 32);
|
bn2buf (x, pub, 32);
|
||||||
bn2buf (y, pub + 32, 32);
|
bn2buf (y, pub + 32, 32);
|
||||||
RAND_bytes (priv + 64, 192);
|
RAND_bytes (pub + 64, 192);
|
||||||
EC_POINT_free (p);
|
EC_POINT_free (p);
|
||||||
BN_free (x); BN_free (y);
|
BN_free (x); BN_free (y);
|
||||||
EC_GROUP_free (curve);
|
EC_GROUP_free (curve);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user