[][openwrt][mt7988][fips][Develop gcm ccm tools]
[Description]
Add gcm ccm tools based on openssl api.
This tools is for CAVP test.
[Release-log]
N/A
Change-Id: I4363fa7a2f2d1a75c4c3ee4f445912b0551dc81d
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7512445
diff --git a/feed/openssl-fips-ext/src/aesgcm.h b/feed/openssl-fips-ext/src/aesgcm.h
new file mode 100644
index 0000000..4cf6f2e
--- /dev/null
+++ b/feed/openssl-fips-ext/src/aesgcm.h
@@ -0,0 +1,28 @@
+#ifndef AESGCM_H
+#define AESGCM_H
+#include "common.h"
+int gcm_init(void);
+int gcm_encrypt(void);
+int gcm_decrypt(void);
+int gcm_uninit(void);
+int gcm_check(void);
+
+struct gcm_data {
+ unsigned char *key;
+ unsigned char *iv;
+ unsigned char *pt;
+ unsigned char *add;
+ unsigned char *ct;
+ unsigned char *tag;
+ long key_size;
+ long iv_size;
+ long pt_size;
+ long add_size;
+ long ct_size;
+ long tag_size;
+ int tag_output_size;
+};
+
+extern struct operator gcm_oper;
+
+#endif