Test secret stream generated code

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-08-15 17:50:46 +02:00
1 parent df87dae376
commit 0c098e57db
13 files changed
+137 -39

No files matched your search

@@ -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()