Slow progress.

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-08-21 18:55:17 +02:00
1 parent cd90f964ab
commit be4468785d
9 files changed
+122 -54

No files matched your search

@@ -20,6 +20,13 @@ data class SecretStreamStateAndHeader(
val header: UByteArray
)
data class DecryptedDataAndTag(
@JsName("decrypted")
val decrypted: UByteArray,
@JsName("tag")
val tag: UByte
)
expect class Crypto internal constructor() {
/**
* Initialize the SHA256 hash
@@ -68,5 +75,5 @@ expect class Crypto internal constructor() {
state: SecretStreamState,
c: UByteArray,
ad: UByteArray
): UByteArray
): DecryptedDataAndTag
}