Completed jvm implementation, there are some issues in lazysodium-java that I've worked around
This commit is contained in:
4 files changed
+186
-4
No files matched your search
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user