Searched refs:SHA_256_LENGTH (Results 1 - 11 of 11) sorted by relevance
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/ |
H A D | upg_check_boot_bin.c | 23 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 D | kernel_crypto.h | 48 #define SHA_256_LENGTH 32 macro 79 hi_u8 content_sh256[SHA_256_LENGTH];
|
H A D | kernel_crypto.c | 234 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 D | upg_check_boot_bin.h | 25 #define SHA_256_LENGTH 32 macro
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/ |
H A D | efuse_opt.c | 70 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 D | efuse_opt.h | 25 #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 D | load_crypto.h | 36 #define SHA_256_LENGTH 32 macro 77 hi_u8 content_sh256[SHA_256_LENGTH];
|
H A D | load_crypto.c | 223 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 D | crypto.h | 38 #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 D | crypto.c | 340 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 D | secure.h | 22 #define SHA_256_LENGTH 32 macro
|
Completed in 9 milliseconds