|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

宏定义 | |
| #define | CIPHER_CHECK_WORD |
| #define | CRYPTO_ROM_CHECK_WORD |
| #define | sec_cs(...) |
| #define | check_sum_inspect(err_ret, ...) |
| #define | check_sum_assert(...) |
| #define | sec_arg_add_cs(...) __VA_ARGS__ |
| #define | reg_callback_chk(reg_micro, expect_val) |
| #define | val_enhance_chk(chk_val, expect_val) |
| #define | ret_enhance_chk(chk_val, expect_val) |
| #define | memset_enhance_chk_return(ret, dest, destMax, c, count) |
| #define | memcpy_enhance_chk_return(ret, dest, destMax, c, count) |
| #define | memcmp_enhance_chk_return(ret, cs, ct, count) |
| #define | memset_enhance_chk_goto(ret, dest, destMax, c, count, label) |
| #define | memcpy_enhance_chk_goto(ret, dest, destMax, c, count, label) |
| #define | memcmp_enhance_chk_goto(ret, cs, ct, count) |
函数 | |
| int | memcmp_ss (const void *cs, const void *ct, unsigned int count, unsigned long check_word) |
| int | memset_ss (void *dest, unsigned int dest_max, unsigned char c, unsigned int count, unsigned long check_word) |
| int | memcpy_ss (void *dest, unsigned int dest_max, const void *src, unsigned int count, unsigned long check_word) |
| int | memcmp_enhance (const void *cs, const void *ct, unsigned int count) |
| int | memset_enhance (void *dest, unsigned int dest_max, unsigned char c, unsigned int count) |
| int | memcpy_enhance (void *dest, unsigned int dest_max, const void *src, unsigned int count) |
| void | drv_assert_eq (unsigned int val1, unsigned int val2) |
| #define check_sum_assert | ( | ... | ) |
| #define check_sum_inspect | ( | err_ret, | |
| ... | |||
| ) |
| #define CIPHER_CHECK_WORD |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: Provides crypto security utils header
History:
2023-03-27, Create file.
| #define CRYPTO_ROM_CHECK_WORD |
| #define memcmp_enhance_chk_goto | ( | ret, | |
| cs, | |||
| ct, | |||
| count | |||
| ) |
| #define memcmp_enhance_chk_return | ( | ret, | |
| cs, | |||
| ct, | |||
| count | |||
| ) |
| #define memcpy_enhance_chk_goto | ( | ret, | |
| dest, | |||
| destMax, | |||
| c, | |||
| count, | |||
| label | |||
| ) |
| #define memcpy_enhance_chk_return | ( | ret, | |
| dest, | |||
| destMax, | |||
| c, | |||
| count | |||
| ) |
| #define memset_enhance_chk_goto | ( | ret, | |
| dest, | |||
| destMax, | |||
| c, | |||
| count, | |||
| label | |||
| ) |
| #define memset_enhance_chk_return | ( | ret, | |
| dest, | |||
| destMax, | |||
| c, | |||
| count | |||
| ) |
| #define reg_callback_chk | ( | reg_micro, | |
| expect_val | |||
| ) |
| #define ret_enhance_chk | ( | chk_val, | |
| expect_val | |||
| ) |
| #define sec_arg_add_cs | ( | ... | ) | __VA_ARGS__ |
| #define sec_cs | ( | ... | ) |
| #define val_enhance_chk | ( | chk_val, | |
| expect_val | |||
| ) |
| void drv_assert_eq | ( | unsigned int | val1, |
| unsigned int | val2 | ||
| ) |
| int memcmp_enhance | ( | const void * | cs, |
| const void * | ct, | ||
| unsigned int | count | ||
| ) |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: Provides crypto security utils
History:
2023-03-27, Create file.
| int memcmp_ss | ( | const void * | cs, |
| const void * | ct, | ||
| unsigned int | count, | ||
| unsigned long | check_word | ||
| ) |
| int memcpy_enhance | ( | void * | dest, |
| unsigned int | dest_max, | ||
| const void * | src, | ||
| unsigned int | count | ||
| ) |
| int memcpy_ss | ( | void * | dest, |
| unsigned int | dest_max, | ||
| const void * | src, | ||
| unsigned int | count, | ||
| unsigned long | check_word | ||
| ) |
| int memset_enhance | ( | void * | dest, |
| unsigned int | dest_max, | ||
| unsigned char | c, | ||
| unsigned int | count | ||
| ) |
| int memset_ss | ( | void * | dest, |
| unsigned int | dest_max, | ||
| unsigned char | c, | ||
| unsigned int | count, | ||
| unsigned long | check_word | ||
| ) |