aboutsummaryrefslogtreecommitdiff
path: root/lib/sec_library/include/rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sec_library/include/rng.h')
-rw-r--r--lib/sec_library/include/rng.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/sec_library/include/rng.h b/lib/sec_library/include/rng.h
new file mode 100644
index 00000000..55fe37b1
--- /dev/null
+++ b/lib/sec_library/include/rng.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2017-2021 Alibaba Group Holding Limited
+ */
+
+/******************************************************************************
+ * @file drv/tng.h
+ * @brief Header File for RNG Driver
+ * @version V1.0
+ * @date 22. Apr 2020
+ * @model tng
+ ******************************************************************************/
+#ifndef _DRV_TNG_H_
+#define _DRV_TNG_H_
+
+#include "drv/common.h"
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ \brief Get data from the TNG engine
+ \param[out] Data Pointer to buffer with data get from TNG
+ \param[in] Num Number of data items,uinit in uint32
+ \return Error code \ref csi_error_t
+*/
+csi_error_t csi_rng_get_multi_word(uint32_t *data, uint32_t num);
+
+/**
+ \brief Get data from the TNG engine
+ \return Error code \ref csi_error_t
+*/
+csi_error_t csi_rng_get_single_word(uint32_t* data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _DRV_TNG_H_ */