summaryrefslogtreecommitdiff
path: root/components/drivers/hwcrypto
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/hwcrypto')
-rw-r--r--components/drivers/hwcrypto/hw_bignum.c36
-rw-r--r--components/drivers/hwcrypto/hw_bignum.h34
-rw-r--r--components/drivers/hwcrypto/hw_crc.c10
-rw-r--r--components/drivers/hwcrypto/hw_crc.h6
-rw-r--r--components/drivers/hwcrypto/hw_gcm.c2
-rw-r--r--components/drivers/hwcrypto/hw_gcm.h2
-rw-r--r--components/drivers/hwcrypto/hw_hash.c2
-rw-r--r--components/drivers/hwcrypto/hw_hash.h2
-rw-r--r--components/drivers/hwcrypto/hw_rng.c4
-rw-r--r--components/drivers/hwcrypto/hw_rng.h4
-rw-r--r--components/drivers/hwcrypto/hw_symmetric.c4
-rw-r--r--components/drivers/hwcrypto/hw_symmetric.h2
-rw-r--r--components/drivers/hwcrypto/hwcrypto.c2
-rw-r--r--components/drivers/hwcrypto/hwcrypto.h2
14 files changed, 56 insertions, 56 deletions
diff --git a/components/drivers/hwcrypto/hw_bignum.c b/components/drivers/hwcrypto/hw_bignum.c
index 88813566b1..0488a16f08 100644
--- a/components/drivers/hwcrypto/hw_bignum.c
+++ b/components/drivers/hwcrypto/hw_bignum.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -56,7 +56,7 @@ rt_err_t rt_hwcrypto_bignum_default(struct rt_hwcrypto_device *device)
/**
* @brief Init bignum obj
- *
+ *
* @param n bignum obj
*/
void rt_hwcrypto_bignum_init(struct hw_bignum_mpi *n)
@@ -87,9 +87,9 @@ void rt_hwcrypto_bignum_free(struct hw_bignum_mpi *n)
/**
* @brief Get length of bignum as an unsigned binary buffer
- *
+ *
* @param n bignum obj
- *
+ *
* @return binary buffer length
*/
int rt_hwcrypto_bignum_get_len(const struct hw_bignum_mpi *n)
@@ -112,11 +112,11 @@ int rt_hwcrypto_bignum_get_len(const struct hw_bignum_mpi *n)
/**
* @brief Export n into unsigned binary data, big endian
- *
+ *
* @param n bignum obj
* @param buf Buffer for the binary number
* @param len Length of the buffer
- *
+ *
* @return export bin length
*/
int rt_hwcrypto_bignum_export_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf, int len)
@@ -139,11 +139,11 @@ int rt_hwcrypto_bignum_export_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf, int
/**
* @brief Import n from unsigned binary data, big endian
- *
+ *
* @param n bignum obj
* @param buf Buffer for the binary number
* @param len Length of the buffer
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_import_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf, int len)
@@ -179,11 +179,11 @@ rt_err_t rt_hwcrypto_bignum_import_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf,
/**
* @brief x = a + b
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_add(struct hw_bignum_mpi *x,
@@ -206,11 +206,11 @@ rt_err_t rt_hwcrypto_bignum_add(struct hw_bignum_mpi *x,
/**
* @brief x = a - b
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_sub(struct hw_bignum_mpi *x,
@@ -233,11 +233,11 @@ rt_err_t rt_hwcrypto_bignum_sub(struct hw_bignum_mpi *x,
/**
* @brief x = a * b
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_mul(struct hw_bignum_mpi *x,
@@ -260,11 +260,11 @@ rt_err_t rt_hwcrypto_bignum_mul(struct hw_bignum_mpi *x,
/**
* @brief x = a * b (mod c)
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_mulmod(struct hw_bignum_mpi *x,
@@ -288,11 +288,11 @@ rt_err_t rt_hwcrypto_bignum_mulmod(struct hw_bignum_mpi *x,
/**
* @brief x = a ^ b (mod c)
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_exptmod(struct hw_bignum_mpi *x,
diff --git a/components/drivers/hwcrypto/hw_bignum.h b/components/drivers/hwcrypto/hw_bignum.h
index a1f567e68f..442b28f558 100644
--- a/components/drivers/hwcrypto/hw_bignum.h
+++ b/components/drivers/hwcrypto/hw_bignum.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -83,42 +83,42 @@ void rt_hwcrypto_bignum_free(struct hw_bignum_mpi *n);
/**
* @brief Get length of bignum as an unsigned binary buffer
- *
+ *
* @param n bignum obj
- *
+ *
* @return binary buffer Length
*/
int rt_hwcrypto_bignum_get_len(const struct hw_bignum_mpi *n);
/**
* @brief Export n into unsigned binary data, big endian
- *
+ *
* @param n bignum obj
* @param buf Buffer for the binary number
* @param len Length of the buffer
- *
+ *
* @return export bin length
*/
int rt_hwcrypto_bignum_export_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf, int len);
/**
* @brief Import n from unsigned binary data, big endian
- *
+ *
* @param n bignum obj
* @param buf Buffer for the binary number
* @param len Length of the buffer
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_import_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf, int len);
/**
* @brief x = a + b
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_add(struct hw_bignum_mpi *x,
@@ -127,11 +127,11 @@ rt_err_t rt_hwcrypto_bignum_add(struct hw_bignum_mpi *x,
/**
* @brief x = a - b
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_sub(struct hw_bignum_mpi *x,
@@ -140,11 +140,11 @@ rt_err_t rt_hwcrypto_bignum_sub(struct hw_bignum_mpi *x,
/**
* @brief x = a * b
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_mul(struct hw_bignum_mpi *x,
@@ -153,11 +153,11 @@ rt_err_t rt_hwcrypto_bignum_mul(struct hw_bignum_mpi *x,
/**
* @brief x = a * b (mod c)
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_mulmod(struct hw_bignum_mpi *x,
@@ -167,11 +167,11 @@ rt_err_t rt_hwcrypto_bignum_mulmod(struct hw_bignum_mpi *x,
/**
* @brief x = a ^ b (mod c)
- *
+ *
* @param a bignum obj
* @param b bignum obj
* @param c bignum obj
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_bignum_exptmod(struct hw_bignum_mpi *x,
diff --git a/components/drivers/hwcrypto/hw_crc.c b/components/drivers/hwcrypto/hw_crc.c
index 20579711e2..a1d95793e2 100644
--- a/components/drivers/hwcrypto/hw_crc.c
+++ b/components/drivers/hwcrypto/hw_crc.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -20,7 +20,7 @@
*
* @return CRC context
*/
-struct rt_hwcrypto_ctx *rt_hwcrypto_crc_create(struct rt_hwcrypto_device *device,
+struct rt_hwcrypto_ctx *rt_hwcrypto_crc_create(struct rt_hwcrypto_device *device,
hwcrypto_crc_mode mode)
{
struct hwcrypto_crc *crc_ctx;
@@ -89,8 +89,8 @@ void rt_hwcrypto_crc_destroy(struct rt_hwcrypto_ctx *ctx)
*
* @return RT_EOK on success.
*/
-rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx,
- const rt_uint8_t *input,
+rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx,
+ const rt_uint8_t *input,
rt_size_t length)
{
struct hwcrypto_crc *crc_ctx = (struct hwcrypto_crc *)ctx;
@@ -107,7 +107,7 @@ rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx,
* @param ctx CRC context
* @param cfg CRC config
*/
-void rt_hwcrypto_crc_cfg(struct rt_hwcrypto_ctx *ctx,
+void rt_hwcrypto_crc_cfg(struct rt_hwcrypto_ctx *ctx,
struct hwcrypto_crc_cfg *cfg)
{
if (cfg)
diff --git a/components/drivers/hwcrypto/hw_crc.h b/components/drivers/hwcrypto/hw_crc.h
index a6df92a2ef..8e0fcefccf 100644
--- a/components/drivers/hwcrypto/hw_crc.h
+++ b/components/drivers/hwcrypto/hw_crc.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -129,7 +129,7 @@ void rt_hwcrypto_crc_destroy(struct rt_hwcrypto_ctx *ctx);
*
* @return CRC value
*/
-rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx,
+rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx,
const rt_uint8_t *input, rt_size_t length);
/**
@@ -138,7 +138,7 @@ rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx,
* @param ctx CRC context
* @param cfg CRC config
*/
-void rt_hwcrypto_crc_cfg(struct rt_hwcrypto_ctx *ctx,
+void rt_hwcrypto_crc_cfg(struct rt_hwcrypto_ctx *ctx,
struct hwcrypto_crc_cfg *cfg);
#ifdef __cplusplus
diff --git a/components/drivers/hwcrypto/hw_gcm.c b/components/drivers/hwcrypto/hw_gcm.c
index 8d0f49149a..a8106694f9 100644
--- a/components/drivers/hwcrypto/hw_gcm.c
+++ b/components/drivers/hwcrypto/hw_gcm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/drivers/hwcrypto/hw_gcm.h b/components/drivers/hwcrypto/hw_gcm.h
index a73b2b0634..3a2f87bc30 100644
--- a/components/drivers/hwcrypto/hw_gcm.h
+++ b/components/drivers/hwcrypto/hw_gcm.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/drivers/hwcrypto/hw_hash.c b/components/drivers/hwcrypto/hw_hash.c
index b20069ac0e..cf5ec8d70a 100644
--- a/components/drivers/hwcrypto/hw_hash.c
+++ b/components/drivers/hwcrypto/hw_hash.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/drivers/hwcrypto/hw_hash.h b/components/drivers/hwcrypto/hw_hash.h
index de0310e84c..41abd06c4c 100644
--- a/components/drivers/hwcrypto/hw_hash.h
+++ b/components/drivers/hwcrypto/hw_hash.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/drivers/hwcrypto/hw_rng.c b/components/drivers/hwcrypto/hw_rng.c
index 13a17cc6be..b6f62db347 100644
--- a/components/drivers/hwcrypto/hw_rng.c
+++ b/components/drivers/hwcrypto/hw_rng.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -81,7 +81,7 @@ rt_err_t rt_hwcrypto_rng_default(struct rt_hwcrypto_device *device)
* @brief Getting Random Numbers from RNG Context
*
* @param ctx RNG context
- *
+ *
* @return Random number
*/
rt_uint32_t rt_hwcrypto_rng_update_ctx(struct rt_hwcrypto_ctx *ctx)
diff --git a/components/drivers/hwcrypto/hw_rng.h b/components/drivers/hwcrypto/hw_rng.h
index fc28afdb1e..3c014f6bee 100644
--- a/components/drivers/hwcrypto/hw_rng.h
+++ b/components/drivers/hwcrypto/hw_rng.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -60,7 +60,7 @@ rt_err_t rt_hwcrypto_rng_default(struct rt_hwcrypto_device *device);
* @brief Getting Random Numbers from RNG Context
*
* @param ctx RNG context
- *
+ *
* @return Random number
*/
rt_uint32_t rt_hwcrypto_rng_update_ctx(struct rt_hwcrypto_ctx *ctx);
diff --git a/components/drivers/hwcrypto/hw_symmetric.c b/components/drivers/hwcrypto/hw_symmetric.c
index 789c5c1a2c..9398298fed 100644
--- a/components/drivers/hwcrypto/hw_symmetric.c
+++ b/components/drivers/hwcrypto/hw_symmetric.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -215,7 +215,7 @@ void rt_hwcrypto_symmetric_get_ivoff(struct rt_hwcrypto_ctx *ctx, rt_int32_t *iv
*
* @param des The destination symmetric crypto context
* @param src The symmetric crypto context to be copy
- *
+ *
* @return RT_EOK on success.
*/
rt_err_t rt_hwcrypto_symmetric_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcrypto_ctx *src)
diff --git a/components/drivers/hwcrypto/hw_symmetric.h b/components/drivers/hwcrypto/hw_symmetric.h
index 12f4dbec30..f3f78fb21c 100644
--- a/components/drivers/hwcrypto/hw_symmetric.h
+++ b/components/drivers/hwcrypto/hw_symmetric.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/drivers/hwcrypto/hwcrypto.c b/components/drivers/hwcrypto/hwcrypto.c
index bbe1ff63fb..473b52fb9a 100644
--- a/components/drivers/hwcrypto/hwcrypto.c
+++ b/components/drivers/hwcrypto/hwcrypto.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/drivers/hwcrypto/hwcrypto.h b/components/drivers/hwcrypto/hwcrypto.h
index a428f4437d..cdf057c49d 100644
--- a/components/drivers/hwcrypto/hwcrypto.h
+++ b/components/drivers/hwcrypto/hwcrypto.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*