Completed jvm implementation, there are some issues in lazysodium-java that I've worked around

This commit is contained in:
Ugljesa Jovanovic committed 2020-09-27 19:20:22 +02:00
1 parent 4af1477c90
commit 2d63215c70
4 files changed
+186 -4

No files matched your search

@@ -11,9 +11,9 @@ actual object LibsodiumUtil {
actual fun memzero(target: UByteArray) {
// libsodium.js does this as well, and theres no clear way at the moment of casting ubytearray to uint8array
//although I feel like there should be a way to work around it
target.forEachIndexed {
index, _ -> target[index] = 0U
// although I feel like there should be a way to work around it
(target.indices).forEach {
index -> target[index] = 0U
}
}