Home
last modified time | relevance | path

Searched refs:root_salt (Results 1 - 6 of 6) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.c68 if (memcmp(key_content->root_salt, salt_e, ROOT_SALT_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_salt()
82 ret = hi_cipher_trng_get_random_bytes(key_content->root_salt, ROOT_SALT_LENGTH); in crypto_get_root_salt()
109 cs = (uintptr_t)rootkey_iv ^ sizeof(rootkey_iv) ^ ((uintptr_t)save_content->root_salt) ^ ROOT_SALT_LENGTH; in crypto_prepare()
110 ret = memcpy_s(rootkey_iv, sizeof(rootkey_iv), save_content->root_salt, ROOT_SALT_LENGTH, cs); in crypto_prepare()
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()
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()
H A Dload_crypto.h73 hi_u8 root_salt[ROOT_SALT_LENGTH]; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dkernel_crypto.h75 hi_u8 root_salt[ROOT_SALT_LENGTH]; member
H A Dkernel_crypto.c87 if (memcmp(key_content->root_salt, salt_e, ROOT_SALT_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_salt()
124 ret = memcpy_s(rootkey_iv, sizeof(rootkey_iv), save_content->root_salt, ROOT_SALT_LENGTH); in crypto_prepare()
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()
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()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.h72 hi_u8 root_salt[ROOT_SALT_LENGTH]; member
H A Dcrypto.c121 if (memcmp(key_content->root_salt, salt_e, ROOT_SALT_LENGTH) == HI_ERR_SUCCESS) { in crypto_load_salt()
159 cs = (uintptr_t)rootkey_iv ^ sizeof(rootkey_iv) ^ ((uintptr_t)save_content->root_salt) ^ ROOT_SALT_LENGTH; in crypto_prepare()
160 ret = memcpy_s(rootkey_iv, sizeof(rootkey_iv), save_content->root_salt, ROOT_SALT_LENGTH, cs); in crypto_prepare()
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()
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()

Completed in 5 milliseconds