aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/openssl_aead.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/stupidgcm/openssl_aead.h')
-rw-r--r--internal/stupidgcm/openssl_aead.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/internal/stupidgcm/openssl_aead.h b/internal/stupidgcm/openssl_aead.h
new file mode 100644
index 0000000..6a818b6
--- /dev/null
+++ b/internal/stupidgcm/openssl_aead.h
@@ -0,0 +1,29 @@
+#include <openssl/evp.h>
+
+int openssl_aead_seal(
+ const EVP_CIPHER* evpCipher,
+ 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);
+
+int openssl_aead_open(
+ const EVP_CIPHER* evpCipher,
+ const unsigned char* const ciphertext,
+ const int ciphertextLen,
+ const unsigned char* const authData,
+ const int authDataLen,
+ unsigned char* const tag,
+ const int tagLen,
+ const unsigned char* const key,
+ const int keyLen,
+ const unsigned char* const iv,
+ const int ivLen,
+ unsigned char* const plaintext,
+ const int plaintextBufLen);