Home
last modified time | relevance | path

Searched refs:SHA_256_LENGTH (Results 1 - 11 of 11) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_boot_bin.c23 hi_u8 hash[SHA_256_LENGTH]; in upg_check_boot_root_pub_key()
24 hi_u8 efuse_hash[SHA_256_LENGTH]; in upg_check_boot_root_pub_key()
34 (hi_void) memset_s(hash, SHA_256_LENGTH, 0, SHA_256_LENGTH); in upg_check_boot_root_pub_key()
40 (hi_void) memset_s(efuse_hash, SHA_256_LENGTH, 0, SHA_256_LENGTH); in upg_check_boot_root_pub_key()
41 ret = hi_efuse_read(HI_EFUSE_ROOT_PUBKEY_RW_ID, efuse_hash, SHA_256_LENGTH); in upg_check_boot_root_pub_key()
46 if (memcmp(hash, efuse_hash, SHA_256_LENGTH) != EOK) { in upg_check_boot_root_pub_key()
131 hi_u8 hash[SHA_256_LENGTH] = { 0 }; in upg_check_boot_sub_key()
243 hi_u8 hash[SHA_256_LENGTH] in upg_check_boot_from_mem()
[all...]
H A Dkernel_crypto.h48 #define SHA_256_LENGTH 32 macro
79 hi_u8 content_sh256[SHA_256_LENGTH];
H A Dkernel_crypto.c234 hi_u8 hash[SHA_256_LENGTH]; in crypto_load_key_content()
270 ret = hi_cipher_hash_sha256((uintptr_t)(key_content->root_salt), sizeof(hi_flash_crypto_content) - SHA_256_LENGTH, in crypto_load_key_content()
271 hash, SHA_256_LENGTH); in crypto_load_key_content()
275 if (memcmp(key_content->content_sh256, hash, SHA_256_LENGTH) != HI_ERR_SUCCESS) { in crypto_load_key_content()
365 if (hi_cipher_hash_sha256((uintptr_t)(key_content->root_salt), sizeof(hi_flash_crypto_content) - SHA_256_LENGTH, in crypto_gen_key_content()
366 key_content->content_sh256, SHA_256_LENGTH) != HI_ERR_SUCCESS) { in crypto_gen_key_content()
H A Dupg_check_boot_bin.h25 #define SHA_256_LENGTH 32 macro
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/
H A Defuse_opt.c70 hi_u8 hash[SHA_256_LENGTH] = {0}; in efuse_cfg_verify()
82 ret = hi_cipher_hash_sha256((uintptr_t)&(header->stru_ver), header->file_size - SHA_256_LENGTH, hash, in efuse_cfg_verify()
83 SHA_256_LENGTH); in efuse_cfg_verify()
93 if (memcmp(header->hash, hash, SHA_256_LENGTH) != EOK) { in efuse_cfg_verify()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/include/
H A Defuse_opt.h25 #define SHA_256_LENGTH 32 macro
32 hi_u8 hash[SHA_256_LENGTH]; /* hash of configuration file. */
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.h36 #define SHA_256_LENGTH 32 macro
77 hi_u8 content_sh256[SHA_256_LENGTH];
H A Dload_crypto.c223 hi_u8 hash[SHA_256_LENGTH]; in crypto_load_key_content()
250 ret = hi_cipher_hash_sha256((uintptr_t)(key_content->root_salt), sizeof(hi_flash_crypto_content) - SHA_256_LENGTH, in crypto_load_key_content()
251 hash, SHA_256_LENGTH); in crypto_load_key_content()
255 if (memcmp(key_content->content_sh256, hash, SHA_256_LENGTH) != HI_ERR_SUCCESS) { in crypto_load_key_content()
366 if (hi_cipher_hash_sha256((uintptr_t)(key_content->root_salt), sizeof(hi_flash_crypto_content) - SHA_256_LENGTH, in crypto_gen_key_content()
367 key_content->content_sh256, SHA_256_LENGTH) != HI_ERR_SUCCESS) { in crypto_gen_key_content()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.h38 #define SHA_256_LENGTH 32 macro
77 hi_u8 content_sh256[SHA_256_LENGTH]; /* Ciphertext of the preceding three data hash calculation results */
H A Dcrypto.c340 hi_u8 hash[SHA_256_LENGTH]; in crypto_load_key_content()
377 ret = hi_cipher_hash_sha256((uintptr_t)(key_content->root_salt), sizeof(hi_flash_crypto_content) - SHA_256_LENGTH, in crypto_load_key_content()
378 hash, SHA_256_LENGTH); in crypto_load_key_content()
382 if (memcmp(key_content->content_sh256, hash, SHA_256_LENGTH) != HI_ERR_SUCCESS) { in crypto_load_key_content()
418 if (hi_cipher_hash_sha256((uintptr_t)(key_content->root_salt), sizeof(hi_flash_crypto_content) - SHA_256_LENGTH, in crypto_gen_key_content()
419 key_content->content_sh256, SHA_256_LENGTH) != HI_ERR_SUCCESS) { in crypto_gen_key_content()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/fixed/include/
H A Dsecure.h22 #define SHA_256_LENGTH 32 macro

Completed in 9 milliseconds