summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-05-26 11:46:41 +0800
committerGitHub <[email protected]>2019-05-26 11:46:41 +0800
commit3d960cc178c67d047f3934e350296bf429cfcffa (patch)
tree62867f68f51af1ee7b1a839d8f1c6de2f8a45855 /components/drivers/include
parent7ca0ce2627f92a86482eca139968acf402948404 (diff)
parent1cb3c89bce6caa2bea7cd31259af8b3e3e3ba51b (diff)
Merge pull request #2722 from enkiller/hwcrypto
[components][drivers] add hardware crypto device
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/crypto.h23
-rw-r--r--components/drivers/include/rtdevice.h4
2 files changed, 27 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/crypto.h b/components/drivers/include/drivers/crypto.h
new file mode 100644
index 0000000000..5341d9ee48
--- /dev/null
+++ b/components/drivers/include/drivers/crypto.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2019-05-17 tyx the first version
+ */
+
+#ifndef __CRYPTO_H__
+#define __CRYPTO_H__
+
+#include <rtthread.h>
+#include <hwcrypto.h>
+#include <hw_symmetric.h>
+#include <hw_rng.h>
+#include <hw_hash.h>
+#include <hw_crc.h>
+#include <hw_gcm.h>
+#include <hw_bignum.h>
+
+#endif
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index d59b40cc47..f764d30c24 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -122,6 +122,10 @@ extern "C" {
#include "drivers/mtdnand.h"
#endif
+#ifdef RT_USING_HWCRYPTO
+#include "drivers/crypto.h"
+#endif
+
#ifdef __cplusplus
}
#endif