WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
nv_porting.h 文件参考
#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"
nv_porting.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#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)
 

宏定义说明

◆ nv_log_debug

#define nv_log_debug (   fmt,
  arg... 
)

◆ nv_log_err

#define nv_log_err (   fmt,
  arg... 
)

◆ nv_log_info

#define nv_log_info (   fmt,
  arg... 
)

函数说明

◆ kv_flash_erase()

errcode_t kv_flash_erase ( const uint32_t  flash_addr,
uint32_t  size 
)

◆ kv_flash_read()

errcode_t kv_flash_read ( const uint32_t  flash_offset,
const uint32_t  read_size,
uint8_t *  read_buffer 
)

◆ kv_flash_write()

errcode_t kv_flash_write ( const uint32_t  flash_offset,
uint32_t  write_size,
const uint8_t *  write_data,
bool  do_erase 
)

◆ nv_crypto_claim_aes()

errcode_t nv_crypto_claim_aes ( uint32_t *  crypto_handle,
const kv_key_header_t header 
)

◆ nv_crypto_complete_hash()

errcode_t nv_crypto_complete_hash ( uint8_t *  hash)

◆ nv_crypto_decode()

errcode_t nv_crypto_decode ( uint32_t  crypto_handle,
const uintptr_t  src,
uintptr_t  dest,
uint32_t  length 
)

◆ nv_crypto_encode()

errcode_t nv_crypto_encode ( uint32_t  crypto_handle,
const uintptr_t  src,
uintptr_t  dest,
uint32_t  length 
)

◆ nv_crypto_generate_random()

void nv_crypto_generate_random ( uint32_t *  rnd)

◆ nv_crypto_get_tag()

errcode_t nv_crypto_get_tag ( uint32_t  crypto_handle,
uint8_t *  tag,
uint32_t *  tag_len 
)

◆ nv_crypto_release_aes()

void nv_crypto_release_aes ( uint32_t  crypto_handle)

◆ nv_crypto_set_tag()

errcode_t nv_crypto_set_tag ( uint32_t  crypto_handle,
uint8_t *  tag,
uint32_t  tag_len 
)

◆ nv_crypto_start_hash()

errcode_t nv_crypto_start_hash ( void  )

◆ nv_crypto_update_hash()

errcode_t nv_crypto_update_hash ( const uint8_t *  src,
uint32_t  length 
)

◆ nv_crypto_validate_tag()

errcode_t nv_crypto_validate_tag ( uint32_t  crypto_handle)