|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "stdint.h"#include "stdbool.h"#include "errcode.h"#include "securec.h"#include "soc_osal.h"#include "osal_addr.h"#include "nv_config.h"#include "nv_key.h"

宏定义 | |
| #define | nv_log_err(fmt, arg...) |
| #define | nv_log_info(fmt, arg...) |
| #define | nv_log_debug(fmt, arg...) |
函数 | |
| errcode_t | kv_flash_read (const uint32_t flash_offset, const uint32_t read_size, uint8_t *read_buffer) |
| errcode_t | kv_flash_write (const uint32_t flash_offset, uint32_t write_size, const uint8_t *write_data, bool do_erase) |
| errcode_t | kv_flash_erase (const uint32_t flash_addr, uint32_t size) |
| errcode_t | nv_crypto_claim_aes (uint32_t *crypto_handle, const kv_key_header_t *header) |
| void | nv_crypto_release_aes (uint32_t crypto_handle) |
| errcode_t | nv_crypto_encode (uint32_t crypto_handle, const uintptr_t src, uintptr_t dest, uint32_t length) |
| errcode_t | nv_crypto_decode (uint32_t crypto_handle, const uintptr_t src, uintptr_t dest, uint32_t length) |
| errcode_t | nv_crypto_get_tag (uint32_t crypto_handle, uint8_t *tag, uint32_t *tag_len) |
| errcode_t | nv_crypto_set_tag (uint32_t crypto_handle, uint8_t *tag, uint32_t tag_len) |
| errcode_t | nv_crypto_validate_tag (uint32_t crypto_handle) |
| void | nv_crypto_generate_random (uint32_t *rnd) |
| errcode_t | nv_crypto_start_hash (void) |
| errcode_t | nv_crypto_update_hash (const uint8_t *src, uint32_t length) |
| errcode_t | nv_crypto_complete_hash (uint8_t *hash) |
| #define nv_log_debug | ( | fmt, | |
| arg... | |||
| ) |
| #define nv_log_err | ( | fmt, | |
| arg... | |||
| ) |
| #define nv_log_info | ( | fmt, | |
| arg... | |||
| ) |
| errcode_t kv_flash_erase | ( | const uint32_t | flash_addr, |
| uint32_t | size | ||
| ) |
| errcode_t kv_flash_read | ( | const uint32_t | flash_offset, |
| const uint32_t | read_size, | ||
| uint8_t * | read_buffer | ||
| ) |
| errcode_t kv_flash_write | ( | const uint32_t | flash_offset, |
| uint32_t | write_size, | ||
| const uint8_t * | write_data, | ||
| bool | do_erase | ||
| ) |
| errcode_t nv_crypto_claim_aes | ( | uint32_t * | crypto_handle, |
| const kv_key_header_t * | header | ||
| ) |
| errcode_t nv_crypto_complete_hash | ( | uint8_t * | hash | ) |
| errcode_t nv_crypto_decode | ( | uint32_t | crypto_handle, |
| const uintptr_t | src, | ||
| uintptr_t | dest, | ||
| uint32_t | length | ||
| ) |
| errcode_t nv_crypto_encode | ( | uint32_t | crypto_handle, |
| const uintptr_t | src, | ||
| uintptr_t | dest, | ||
| uint32_t | length | ||
| ) |
| void nv_crypto_generate_random | ( | uint32_t * | rnd | ) |
| errcode_t nv_crypto_get_tag | ( | uint32_t | crypto_handle, |
| uint8_t * | tag, | ||
| uint32_t * | tag_len | ||
| ) |
| void nv_crypto_release_aes | ( | uint32_t | crypto_handle | ) |
| errcode_t nv_crypto_set_tag | ( | uint32_t | crypto_handle, |
| uint8_t * | tag, | ||
| uint32_t | tag_len | ||
| ) |
| errcode_t nv_crypto_start_hash | ( | void | ) |
| errcode_t nv_crypto_update_hash | ( | const uint8_t * | src, |
| uint32_t | length | ||
| ) |
| errcode_t nv_crypto_validate_tag | ( | uint32_t | crypto_handle | ) |