0.5.6 cosmetics and versions upgrade, JVM target to 11 for better android compatibility

This commit is contained in:
sergeych committed 2024-08-30 11:08:41 +02:00
1 parent 14a63a05c2
commit b975df9a13
3 files changed
+11 -5

No files matched your search

@@ -91,9 +91,9 @@ object PBKD {
/**
* Binary id is a binary hash-capable key, we use it. byte array can't be a hash key in kotlin: its value
* does not depend on the byte content.
* does not depend on the byte content. It is unsafe to use it outside the generator!
*/
fun key(kdf: KDF, password: String): BinaryId =
private fun key(kdf: KDF, password: String): BinaryId =
BinaryId.createFromBytes(
0,
BipackEncoder.encode(kdf) + blake2b3l(password.encodeToUByteArray()).asByteArray()