WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hash_romable.c 文件参考
#include "crypto_osal_adapt.h"
#include "hal_hash.h"
#include "hash_romable.h"
hash_romable.c 的引用(Include)关系图:

宏定义

#define MAX_HASH_RESULT_SIZE   64
 
#define HASH_BLOCK_SIZE   64
 
#define HASH_SIZE   32 /* for SHA256/SM3. */
 
#define HASH_DATA_MAX_LEN   (16 * 1024 * 1024) /* 16MB. */
 
#define HASH_PADDING_ALIGNED_LEN   56
 

函数

int drv_rom_hash (crypto_hash_type hash_type, const unsigned char *data, unsigned int data_length, unsigned char *hash, unsigned int hash_length, unsigned int hash_chn)
 

宏定义说明

◆ HASH_BLOCK_SIZE

#define HASH_BLOCK_SIZE   64

◆ HASH_DATA_MAX_LEN

#define HASH_DATA_MAX_LEN   (16 * 1024 * 1024) /* 16MB. */

◆ HASH_PADDING_ALIGNED_LEN

#define HASH_PADDING_ALIGNED_LEN   56

◆ HASH_SIZE

#define HASH_SIZE   32 /* for SHA256/SM3. */

◆ MAX_HASH_RESULT_SIZE

#define MAX_HASH_RESULT_SIZE   64

函数说明

◆ drv_rom_hash()

int drv_rom_hash ( crypto_hash_type  hash_type,
const unsigned char *  data,
unsigned int  data_length,
unsigned char *  hash,
unsigned int  hash_length,
unsigned int  hash_chn 
)

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2024-2024. All rights reserved. Description: hash romable functions header file.

Create: 2024-01-25