This commit is contained in:
Dimitris Apostolou 2020-12-20 23:53:09 +02:00
parent 5490a371b4
commit 460f3a3e5f
No known key found for this signature in database
GPG Key ID: 4B5D20E938204A8A
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ object Pbkdf2Sha512 {
acc.apply { this[i] = c.toByte() } acc.apply { this[i] = c.toByte() }
} }
val hLen = 20.0 val hLen = 20.0
// note: dropped length check because its redundant, given the size of an int in kotlin // note: dropped length check because it's redundant, given the size of an int in kotlin
val l = ceil(dkLenBytes / hLen).toInt() val l = ceil(dkLenBytes / hLen).toInt()
for (i in 1..l) { for (i in 1..l) {
F(pBytes, s, c, i).let { Tn -> F(pBytes, s, c, i).let { Tn ->