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
+1
-1
@@ -40,7 +40,7 @@ actual object LibsodiumUtil {
|
||||
val resultingSize = if (unpaddedData.size % blocksize != 0 ) {
|
||||
((unpaddedData.size / blocksize) + 1 ) * blocksize
|
||||
} else {
|
||||
unpaddedData.size + 1
|
||||
unpaddedData.size + blocksize
|
||||
}
|
||||
val paddedData = UByteArray(resultingSize)
|
||||
unpaddedData.copyInto(paddedData, 0, 0)
|
||||
|
||||
Reference in new issue
Block a user