Remove check narrowing todos, they are handled
This commit is contained in:
parent
ec19c02a42
commit
80c84a25d4
@ -64,5 +64,5 @@ class PasswordHashTest {
|
|||||||
//TODO strNeedsRehash -1 case?
|
//TODO strNeedsRehash -1 case?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ actual object PasswordHash {
|
|||||||
outputLength,
|
outputLength,
|
||||||
password.encodeToUByteArray().toUInt8Array(),
|
password.encodeToUByteArray().toUInt8Array(),
|
||||||
salt.toUInt8Array(),
|
salt.toUInt8Array(),
|
||||||
opsLimit.toInt(), // TODO check this narrowing
|
opsLimit.toInt(),
|
||||||
memLimit,
|
memLimit,
|
||||||
algorithm
|
algorithm
|
||||||
).toUByteArray()
|
).toUByteArray()
|
||||||
@ -51,7 +51,7 @@ actual object PasswordHash {
|
|||||||
}
|
}
|
||||||
return getSodium().crypto_pwhash_str(
|
return getSodium().crypto_pwhash_str(
|
||||||
password.encodeToUByteArray().toUInt8Array(),
|
password.encodeToUByteArray().toUInt8Array(),
|
||||||
opslimit.toInt(), // TODO check this narrowing
|
opslimit.toInt(),
|
||||||
memlimit
|
memlimit
|
||||||
).encodeToUByteArray()
|
).encodeToUByteArray()
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ actual object PasswordHash {
|
|||||||
return if (
|
return if (
|
||||||
getSodium().crypto_pwhash_str_needs_rehash(
|
getSodium().crypto_pwhash_str_needs_rehash(
|
||||||
passwordHash.asByteArray().decodeToString(),
|
passwordHash.asByteArray().decodeToString(),
|
||||||
opslimit.toInt(), // TODO check this narrowing
|
opslimit.toInt(),
|
||||||
memlimit
|
memlimit
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user