aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_aesgcm.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tls_aesgcm.h')
-rw-r--r--networking/tls_aesgcm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/networking/tls_aesgcm.h b/networking/tls_aesgcm.h
new file mode 100644
index 000000000..d4cde01f9
--- /dev/null
+++ b/networking/tls_aesgcm.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2018 Denys Vlasenko
+ *
+ * Licensed under GPLv2, see file LICENSE in this source tree.
+ */
+
+void xorbuf(void* buf, const void* mask, unsigned count) FAST_FUNC;
+
+void aesgcm_GHASH(uint8_t* h,
+ const uint8_t* a, unsigned aSz,
+ const uint8_t* c, unsigned cSz,
+ uint8_t* s, unsigned sSz
+) FAST_FUNC;
+
+void aesgcm_setkey(uint8_t H[16], struct tls_aes *aes, const uint8_t* key, unsigned len) FAST_FUNC;