mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
calculate store hash for encrypted LeaseSet2
This commit is contained in:
parent
32e55ebd0c
commit
24c5ed1cff
3 changed files with 16 additions and 2 deletions
|
@ -495,7 +495,7 @@ namespace crypto
|
|||
{
|
||||
BN_CTX * ctx = BN_CTX_new ();
|
||||
// calculate alpha = seed mod l
|
||||
BIGNUM * alpha = DecodeBN<64> (seed); // pub is in Little Endian
|
||||
BIGNUM * alpha = DecodeBN<64> (seed); // seed is in Little Endian
|
||||
BN_mod (alpha, alpha, l, ctx); // % l
|
||||
uint8_t priv[32];
|
||||
EncodeBN (alpha, priv, 32); // back to Little Endian
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue