summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authormazhiyuan <[email protected]>2021-10-13 11:02:01 +0800
committermazhiyuan <[email protected]>2021-10-13 11:02:01 +0800
commit99e9ea61bce6a0b1a2521e914f9d7cefd92e17e6 (patch)
treef4cf1fb37d51e06ffee44b153a1d0a93962ccea1 /components
parent06fdc108b420f34044a132a19c9adbebf86a7a90 (diff)
修复部分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 */