Home
last modified time | relevance | path

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

/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dkernel_crypto.c129 ctrl.salt = rootkey_iv; in crypto_prepare()
341 hi_u8 salt[IV_BYTE_LENGTH]; in crypto_gen_key_content() local
345 (hi_void)hi_cipher_trng_get_random_bytes(salt, IV_BYTE_LENGTH); in crypto_gen_key_content()
353 ctrl.salt = salt; in crypto_gen_key_content()
354 ctrl.salt_len = sizeof(salt); in crypto_gen_key_content()
603 hi_u8 salt[ROOTKEY_IV_BYTE_LENGTH] = {0}; in crypto_upg_file_prepare() local
605 ret = (hi_u32)memcpy_s((hi_void *)salt, sizeof(salt), (hi_void *)(para->upg_salt), IV_BYTE_LENGTH); in crypto_upg_file_prepare()
610 ret = (hi_u32)memcpy_s((hi_void *)(salt in crypto_upg_file_prepare()
[all...]
H A Dupg_check_boot_bin.c211 ctrl->salt = rootkey_iv; in upg_boot_decrypt()
H A Dupg_common.c1024 ctrl->salt = rootkey_iv; in upg_set_kdf_key()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
H A Dhkdf.h55 * \param salt An optional salt value (a non-secret random value);
56 * if the salt is not provided, a string of all zeros of
57 * md.size length is used as the salt.
58 * \param salt_len The length in bytes of the optional \p salt.
73 int mbedtls_hkdf( const mbedtls_md_info_t *md, const unsigned char *salt,
89 * \param salt An optional salt value (a non-secret random value);
90 * if the salt is not provided, a string of all zeros
91 * of md.size length is used as the salt
[all...]
H A Dpkcs12.h101 * \brief The PKCS#12 derivation function uses a password and a salt
112 * \param salt salt buffer to use
113 * \param saltlen length of the salt
123 const unsigned char *salt, size_t saltlen,
H A Dpkcs5.h81 * \param salt Salt to use when generating key
82 * \param slen Length of salt
90 size_t plen, const unsigned char *salt, size_t slen,
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c165 ctrl.salt = rootkey_iv; in crypto_prepare()
392 hi_u8 salt[IV_BYTE_LENGTH]; in crypto_gen_key_content() local
396 (hi_void)hi_cipher_trng_get_random_bytes(salt, IV_BYTE_LENGTH); in crypto_gen_key_content()
405 ctrl.salt = salt; in crypto_gen_key_content()
406 ctrl.salt_len = sizeof(salt); in crypto_gen_key_content()
835 hi_u8 salt[ROOTKEY_IV_BYTE_LENGTH] = {0}; in boot_crypto_upg_file_prepare() local
837 hi_u32 cs = (uintptr_t)salt ^ sizeof(salt) ^ (uintptr_t)(para->upg_salt) ^ IV_BYTE_LENGTH; in boot_crypto_upg_file_prepare()
838 ret = memcpy_s((hi_void *)salt, sizeo in boot_crypto_upg_file_prepare()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.c115 ctrl.salt = rootkey_iv; in crypto_prepare()
339 hi_u8 salt[IV_BYTE_LENGTH]; in crypto_gen_key_content() local
343 (hi_void)hi_cipher_trng_get_random_bytes(salt, IV_BYTE_LENGTH); in crypto_gen_key_content()
352 ctrl.salt = salt; in crypto_gen_key_content()
353 ctrl.salt_len = sizeof(salt); in crypto_gen_key_content()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/commonboot/
H A Dhi_cipher.h178 const hi_u8 *salt; /* salt for kdf key derivation. */ member
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhks_client.h482 * @param salt [IN] type #const struct hks_blob *,
483 Derived salt value,salt.size must be greater than or equal to 16。
484 CNcomment:派生使用的盐值,salt.size必须大于或等于16。CNend
496 const struct hks_blob *salt, const struct hks_blob *label);
H A Dhi_cipher.h224 const hi_u8 *salt; /**< salt for kdf key derivation. */ member

Completed in 10 milliseconds