Test secret stream generated code
This commit is contained in:
1 parent
df87dae376
commit
0c098e57db
13 files changed
+137
-39
No files matched your search
+2
-2
@@ -142,7 +142,7 @@ actual class Crypto internal actual constructor() {
|
||||
ad: UByteArray,
|
||||
tag: UByte
|
||||
): UByteArray {
|
||||
val c = UByteArray(m.size)
|
||||
val c = UByteArray(m.size + 17)
|
||||
println("Debug crypto_secretstream_xchacha20poly1305_push")
|
||||
val pinnedC = c.pin()
|
||||
val pinnedM = m.pin()
|
||||
@@ -163,7 +163,7 @@ actual class Crypto internal actual constructor() {
|
||||
c: UByteArray,
|
||||
ad: UByteArray
|
||||
): UByteArray {
|
||||
val m = UByteArray(c.size)
|
||||
val m = UByteArray(c.size - 17)
|
||||
println("Debug crypto_secretstream_xchacha20poly1305_pull")
|
||||
val pinnedM = m.pin()
|
||||
val pinnedC = c.pin()
|
||||
|
||||
Reference in new issue
Block a user