aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/chacha.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/stupidgcm/chacha.h')
-rw-r--r--internal/stupidgcm/chacha.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/stupidgcm/chacha.h b/internal/stupidgcm/chacha.h
new file mode 100644
index 0000000..780350a
--- /dev/null
+++ b/internal/stupidgcm/chacha.h
@@ -0,0 +1,17 @@
+enum aeadType {
+ aeadTypeChacha = 1,
+ aeadTypeGcm = 2,
+};
+
+int aead_seal(
+ const enum aeadType cipherId,
+ const unsigned char* const plaintext,
+ const int plaintextLen,
+ const unsigned char* const authData,
+ const int authDataLen,
+ const unsigned char* const key,
+ const int keyLen,
+ const unsigned char* const iv,
+ const int ivLen,
+ unsigned char* const ciphertext,
+ const int ciphertextBufLen);