Added util jna

This commit is contained in:
Ugljesa Jovanovic committed 2021-02-21 21:17:33 +01:00
1 parent 625a3e1f91
commit 531deb6a57
5 files changed
+172 -98

No files matched your search

@@ -10,6 +10,9 @@ enum class Base64Variants(val value: Int) {
ORIGINAL(1), ORIGINAL_NO_PADDING(3), URLSAFE(5), URLSAFE_NO_PADDING(7)
}
class ConversionException() : RuntimeException("Conversion failed")
class PaddingException() : RuntimeException("Padding failed")
expect object LibsodiumUtil {
fun memcmp(first: UByteArray, second: UByteArray) : Boolean