mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
correct new key pair
This commit is contained in:
parent
7fb8ee60b4
commit
80a3bd6a3b
2 changed files with 3 additions and 2 deletions
|
@ -141,7 +141,7 @@ namespace crypto
|
|||
EC_POINT_get_affine_coordinates_GFp (curve->GetGroup (), 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue