Added native aead chacha poly implementation
This commit is contained in:
1 parent
3de04749ba
commit
1a11bdc81b
2 files changed
+308
-9
No files matched your search
+2
@@ -25,6 +25,8 @@ val crypto_aead_chacha20poly1305_ABYTES = 16
|
||||
|
||||
data class AeadEncryptedDataAndTag(val data: UByteArray, val tag: UByteArray)
|
||||
|
||||
class AeadCorrupedOrTamperedDataException() : RuntimeException("MAC validation failed. Data is corrupted or tampered with.")
|
||||
|
||||
expect object AuthenticatedEncryptionWithAssociatedData {
|
||||
// X - Ietf
|
||||
fun xChaCha20Poly1305IetfEncrypt(
|
||||
|
||||
Reference in new issue
Block a user