summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-10-13 15:40:38 +0800
committerGitHub <[email protected]>2021-10-13 15:40:38 +0800
commit0c82690f3208ce0182af2c4e47519c5892386497 (patch)
treec2d34c8de454710c0558527d8a179077cacc135c /components
parente7f4a1177ae2dff7884e0e59dd082cef73d9b65f (diff)
parent99e9ea61bce6a0b1a2521e914f9d7cefd92e17e6 (diff)
Merge pull request #5160 from cndabai/bsp
修复部分bsp编译报错
Diffstat (limited to 'components')
-rw-r--r--components/drivers/hwcrypto/hw_gcm.h4
-rw-r--r--components/drivers/hwcrypto/hw_symmetric.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/hwcrypto/hw_gcm.h b/components/drivers/hwcrypto/hw_gcm.h
index 3a2f87bc30..6c3470ec1a 100644
--- a/components/drivers/hwcrypto/hw_gcm.h
+++ b/components/drivers/hwcrypto/hw_gcm.h
@@ -22,9 +22,9 @@ struct hwcrypto_gcm;
struct hwcrypto_gcm_ops
{
rt_err_t (*start)(struct hwcrypto_gcm *gcm_ctx,
- const unsigned char *add, size_t add_len); /**< Set additional data. start GCM operation */
+ const unsigned char *add, rt_size_t add_len); /**< Set additional data. start GCM operation */
rt_err_t (*finish)(struct hwcrypto_gcm *gcm_ctx,
- const unsigned char *tag, size_t tag_len); /**< finish GCM operation. get tag */
+ const unsigned char *tag, rt_size_t tag_len); /**< finish GCM operation. get tag */
};
/**
diff --git a/components/drivers/hwcrypto/hw_symmetric.c b/components/drivers/hwcrypto/hw_symmetric.c
index 9398298fed..4a8237c464 100644
--- a/components/drivers/hwcrypto/hw_symmetric.c
+++ b/components/drivers/hwcrypto/hw_symmetric.c
@@ -66,7 +66,7 @@ rt_err_t rt_hwcrypto_symmetric_crypt(struct rt_hwcrypto_ctx *ctx, hwcrypto_mode
}
if (mode != HWCRYPTO_MODE_ENCRYPT && mode != HWCRYPTO_MODE_DECRYPT)
{
- return -EINVAL;
+ return -RT_EINVAL;
}
/* Input information packaging */