Update kotlin to 1.9.10, update library versions, use latest libsodium stable, clean up Deps, remove deprecated targets, change PasswordHash str related functions to use String

This commit is contained in:
Ugljesa Jovanovic committed 2023-09-23 11:54:02 +02:00
1 parent b32821e13e
commit 194994f5b2
14 files changed
+76 -123

No files matched your search

@@ -55,7 +55,7 @@ expect object PasswordHash {
* and other data stores. No extra information has to be stored in order to verify the password.
* The function returns 0 on success and -1 if it didn't complete successfully.
*/
fun str(password: String, opslimit: ULong, memlimit: Int): UByteArray
fun str(password: String, opslimit: ULong, memlimit: Int): String
/**
* Check if a password verification string str matches the parameters opslimit and memlimit, and the current default algorithm.
@@ -63,13 +63,13 @@ expect object PasswordHash {
* The function returns 0 if the parameters already match the given ones.
* It returns -1 on error. If it happens, applications may want to compute a correct hash the next time the user logs in.
*/
fun strNeedsRehash(passwordHash: UByteArray, opslimit: ULong, memlimit: Int): Int
fun strNeedsRehash(passwordHash: String, opslimit: ULong, memlimit: Int): Int
/**
* his function verifies that str is a valid password verification string (as generated by crypto_pwhash_str()) for passwd whose length is passwdlen.
* str has to be zero-terminated.
* It returns 0 if the verification succeeds, and -1 on error.
*/
fun strVerify(passwordHash: UByteArray, password: String): Boolean
fun strVerify(passwordHash: String, password: String): Boolean
}