calculate store hash for encrypted LeaseSet2

This commit is contained in:
orignal 2019-03-06 16:08:04 -05:00
parent 32e55ebd0c
commit 24c5ed1cff
3 changed files with 16 additions and 2 deletions

View file

@ -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