diff options
Diffstat (limited to 'keyDerivation.cpp')
-rw-r--r-- | keyDerivation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/keyDerivation.cpp b/keyDerivation.cpp index dbafec6..cfd70d4 100644 --- a/keyDerivation.cpp +++ b/keyDerivation.cpp @@ -102,8 +102,10 @@ void KeyDerivation::generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key) r = 0; // TODO: no new key should be generated if r == 0, except it is the first time else { - Mpi seq = seq_nr; - Mpi rate = 1; + Mpi seq(32); + seq = seq_nr; + Mpi rate(48); + rate = 1; rate = rate.mul2exp(ld_kdr_); r = seq / rate; } |