Slow progress.
This commit is contained in:
1 parent
cd90f964ab
commit
be4468785d
9 files changed
+122
-54
No files matched your search
+8
-1
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user