mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
use 226 bits private keys for non-x64
This commit is contained in:
parent
8657226594
commit
380c7b7720
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ namespace crypto
|
|||
auto numZeroBytes = 256 - numBytes;
|
||||
RAND_bytes (priv + numZeroBytes, numBytes);
|
||||
memset (priv, 0, numZeroBytes);
|
||||
priv[numZeroBytes] &= 0x04;
|
||||
priv[numZeroBytes] &= 0x03;
|
||||
#endif
|
||||
BN_CTX * ctx = BN_CTX_new ();
|
||||
BIGNUM * p = BN_new ();
|
||||
|
|
Loading…
Add table
Reference in a new issue