Home
last modified time | relevance | path

Searched refs:iv (Results 1 - 25 of 37) sorted by relevance

12

/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
H A Dccm.h136 * \param iv The initialization vector (nonce). This must be a readable
161 const unsigned char *iv, size_t iv_len,
176 * the tag length has to be encoded into the \p iv passed to
182 * \param iv The initialization vector (nonce). This must be a readable
209 const unsigned char *iv, size_t iv_len,
221 * \param iv The initialization vector (nonce). This must be a readable
246 const unsigned char *iv, size_t iv_len,
256 * the tag length has to be decoded from \p iv and passed to
263 * \param iv The initialization vector (nonce). This must be a readable
291 const unsigned char *iv, size_
[all...]
H A Dcipher_internal.h56 unsigned char *iv, const unsigned char *input,
63 unsigned char *iv, const unsigned char *input,
70 unsigned char *iv,
H A Dgcm.h147 * \param iv The initialization vector. This must be a readable buffer of
173 const unsigned char *iv,
193 * \param iv The initialization vector. This must be a readable buffer
217 const unsigned char *iv,
233 * \param iv The initialization vector. This must be a readable buffer of
245 const unsigned char *iv,
H A Daes.h295 * \param iv Initialization vector (updated after use).
309 unsigned char iv[16],
389 * \param iv The initialization vector (updated after use).
402 unsigned char iv[16],
433 * \param iv The initialization vector (updated after use).
445 unsigned char iv[16],
464 * \note Upon exit, the content of iv, the Initialisation Vector, is
471 * For non-streaming use, the iv should be initialised on each call
487 * \param iv The initialization vector (updated after use).
499 unsigned char iv[1
[all...]
H A Dcipher.h313 unsigned char iv[MBEDTLS_MAX_IV_LENGTH]; member
607 * \param iv The IV to use, or NONCE_COUNTER for CTR-mode ciphers. This
617 const unsigned char *iv,
754 * \param iv The IV to use, or NONCE_COUNTER for CTR-mode ciphers.
771 * ciphers, use \p iv = NULL and \p iv_len = 0.
783 const unsigned char *iv, size_t iv_len,
793 * \param iv The IV to use, or NONCE_COUNTER for CTR-mode ciphers.
819 const unsigned char *iv, size_t iv_len,
834 * \param iv The IV to use, or NONCE_COUNTER for CTR-mode ciphers.
861 const unsigned char *iv, size_
[all...]
H A Daria.h201 * \param iv Initialization vector (updated after use).
214 unsigned char iv[MBEDTLS_ARIA_BLOCKSIZE],
251 * \param iv The initialization vector (updated after use).
265 unsigned char iv[MBEDTLS_ARIA_BLOCKSIZE],
H A Dblowfish.h151 * \param iv The initialization vector. This must be a read/write buffer
164 unsigned char iv[MBEDTLS_BLOWFISH_BLOCKSIZE],
191 * \param iv The initialization vector. This must be a read/write buffer
205 unsigned char iv[MBEDTLS_BLOWFISH_BLOCKSIZE],
H A Dcamellia.h161 * \param iv The initialization vector. This must be a read/write buffer
175 unsigned char iv[16],
207 * \param iv The initialization vector. This must be a read/write buffer
222 unsigned char iv[16],
H A Ddes.h268 * \param iv initialization vector (updated after use)
279 unsigned char iv[8],
312 * \param iv initialization vector (updated after use)
321 unsigned char iv[8],
H A Dpadlock.h107 * \param iv initialization vector (updated after use)
116 unsigned char iv[16],
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/include/
H A Dext_alg.h43 * brief symc iv schedule
47 * param ivlen length of iv
51 hi_s32 ext_mbedtls_aead_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage);
142 * brief symc iv schedule
146 * param ivlen length of iv
150 hi_s32 ext_mbedtls_symc_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage);
153 * brief Symc iv schedule
161 hi_void ext_mbedtls_symc_getiv(hi_void *ctx, hi_u8 *iv, hi_u32 *ivlen);
215 * brief sm4 iv schedule
219 * param ivlen length of iv
[all...]
/device/qemu/SmartL_E802/liteos_m/board/hals/csky_driver/include/
H A Ddrv_aes.h181 \param[in] iv Pointer to initialization vector
184 int32_t csi_aes_cbc_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16]);
193 \param[in] iv Pointer to initialization vector
196 int32_t csi_aes_cfb1_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16]);
205 \param[in] iv Pointer to initialization vector
208 int32_t csi_aes_cfb8_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16]);
217 \param[in] iv Pointer to initialization vector
221 int32_t csi_aes_cfb128_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16], uint32_t *num);
230 \param[in] iv Pointer to initialization vector
234 int32_t csi_aes_ofb_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[1
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/
H A Dhi_cipher_compat.h196 hi_u32 iv[HI_CIPHER_IV_SIZE_IN_WORD]; /* Initialization vector (IV) */ member
211 hi_u32 iv[HI_CIPHER_IV_SIZE_IN_WORD]; /* Initialization vector (IV) */ member
221 hi_u32 iv[HI_CIPHER_IV_SIZE_IN_WORD]; /* Initialization vector (IV) */ member
233 hi_u32 iv[HI_CIPHER_DES_IV_SIZE_IN_WORD]; /* Initialization vector (IV) */ member
242 hi_u32 iv[HI_CIPHER_DES_IV_SIZE_IN_WORD]; /* Initialization vector (IV) */ member
254 hi_u32 iv[HI_CIPHER_IV_SIZE_IN_WORD]; /* Initialization vector (IV) */ member
264 hi_u32 iv[HI_CIPHER_IV_SIZE_IN_WORD]; /* Initialization vector (IV) */ member
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/
H A Dload_crypto.c153 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(content_tmp->iv_nv) ^ IV_BYTE_LENGTH; in crypto_decrypt_hash()
154 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content_tmp->iv_nv, IV_BYTE_LENGTH, cs); in crypto_decrypt_hash()
188 hi_u32 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(key_content->iv_nv) ^ in crypto_encrypt_hash()
190 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), key_content->iv_nv, IV_BYTE_LENGTH, cs); in crypto_encrypt_hash()
390 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) in crypto_encrypt_data()
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/
H A Dext_aead.c32 hi_u32 iv[AES_IV_SIZE / WORD_WIDTH]; /* symc IV */ member
78 hi_s32 ext_mbedtls_aead_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) in ext_mbedtls_aead_setiv() argument
87 if (iv != HI_NULL) { in ext_mbedtls_aead_setiv()
88 if (memcpy_s(aead->iv, AES_IV_SIZE, iv, ivlen) != EOK) { in ext_mbedtls_aead_setiv()
265 ret = mbedtls_ccm_auth_decrypt(&ccm, pack->len[0], (hi_u8 *)aead->iv, aead->ivlen, crypto_mem_virt(&mem.aad), in ext_mbedtls_aead_ccm_crypto()
271 ret = mbedtls_ccm_encrypt_and_tag(&ccm, pack->len[0], (hi_u8 *)aead->iv, aead->ivlen, crypto_mem_virt(&mem.aad), in ext_mbedtls_aead_ccm_crypto()
323 ret = mbedtls_gcm_starts(gcm, operation ? MBEDTLS_DECRYPT : MBEDTLS_ENCRYPT, (hi_u8 *)aead->iv, aead->ivlen, in ext_mbedtls_aead_gcm_crypto()
H A Dext_symc.c127 hi_s32 ext_mbedtls_symc_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) in ext_mbedtls_symc_setiv() argument
135 hi_log_chk_param_return(iv == HI_NULL); in ext_mbedtls_symc_setiv()
138 ret = mbedtls_cipher_set_iv(&symc->cipher, iv, ivlen); in ext_mbedtls_symc_setiv()
145 hi_s32 ext_mbedtls_symc_getiv(hi_void *ctx, hi_u8 *iv, hi_u32 *ivlen) in ext_mbedtls_symc_getiv() argument
152 hi_log_chk_param_return(iv == HI_NULL); in ext_mbedtls_symc_getiv()
155 if (memcpy_s(iv, AES_IV_SIZE, symc->cipher.iv, symc->cipher.iv_size) != EOK) { in ext_mbedtls_symc_getiv()
H A Dext_sm4.c87 hi_u8 iv[AES_IV_SIZE]; member
332 const hi_u8 *key, hi_s32 bit, hi_u32 decrypt, hi_u8 *iv) in sm4_cbc_rm()
342 sm4_cbc_crypt(data_in, data_out, valid_data_len, &ctx, iv, decrypt); in sm4_cbc_rm()
349 const hi_u8 *key, hi_s32 bit, hi_u32 decrypt, const hi_u8 *iv) in sm4_ctr_rm()
366 sm4_ctr128_crypt(data_in, data_out, valid_data_len, &ctx, (hi_u8 *)iv, encrypt_cnt, &num); in sm4_ctr_rm()
437 hi_s32 ext_sm4_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) in ext_sm4_setiv() argument
444 hi_log_chk_param_return(iv == HI_NULL); in ext_sm4_setiv()
447 if (memcpy_s(symc->iv, AES_IV_SIZE, iv, ivlen) != EOK) { in ext_sm4_setiv()
456 hi_void ext_sm4_getiv(hi_void *ctx, hi_u8 *iv, hi_u3 argument
331 sm4_cbc_rm(const hi_u8 *data_in, hi_u8 *data_out, hi_s32 data_len, const hi_u8 *key, hi_s32 bit, hi_u32 decrypt, hi_u8 *iv) sm4_cbc_rm() argument
348 sm4_ctr_rm(const hi_u8 *data_in, hi_u8 *data_out, hi_s32 data_len, const hi_u8 *key, hi_s32 bit, hi_u32 decrypt, const hi_u8 *iv) sm4_ctr_rm() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c214 hi_u32 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(key_content->iv_nv) ^ in crypto_encrypt_hash()
216 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), key_content->iv_nv, IV_BYTE_LENGTH, cs); in crypto_encrypt_hash()
271 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(content_tmp->iv_nv) ^ IV_BYTE_LENGTH; in crypto_decrypt_hash()
272 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content_tmp->iv_nv, IV_BYTE_LENGTH, cs); in crypto_decrypt_hash()
442 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) in crypto_encrypt_data()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dkernel_crypto.c169 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content_tmp->iv_nv, IV_BYTE_LENGTH); in crypto_decrypt_hash()
202 hi_u32 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), key_content->iv_nv, IV_BYTE_LENGTH); in crypto_encrypt_hash()
384 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content->iv_content, IV_BYTE_LENGTH); in crypto_decrypt_kernel()
476 if (memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), new_content->iv_content, IV_BYTE_LENGTH) != EOK) { in crypto_encrypt_data()
640 ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), par in crypto_upg_file_decrypt()
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/
H A Ddrv_symc.h29 /* symmetric cipher max iv size in word */
129 SYMC_NODE_USAGE_NORMAL = 0x00, /* The normal buffer, don't update the iv */
130 SYMC_NODE_USAGE_FIRST = 0x01, /* The first buffer, the usage of iv is expired */
131 SYMC_NODE_USAGE_LAST = 0x02, /* The last buffer, must update the iv */
176 char iv[AES_IV_SIZE * MUL_VAL_2 + BOUND_VAL_1]; member
231 hi_u32 iv[AES_IV_SIZE / WORD_WIDTH]; /* symc IV */ member
306 * brief set the iv to the symc module.
340 * brief set the iv to the symc module.
342 * param[in] iv The IV data, hardware use the valid bytes according to the alg.
346 hi_s32 drv_symc_set_iv(hi_u32 chn_num, const hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WOR
[all...]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Deapol.h96 unsigned char iv[EAPOL_KEY_IV_LEN]; /* Key IV */ member
159 unsigned char iv[EAPOL_WPA_KEY_IV_LEN]; /* Key IV */ member
174 unsigned char iv[EAPOL_WPA_KEY_IV_LEN]; /* Key IV */ member
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/include/
H A Dcryp_symc.h65 * brief Symc iv schedule
69 * param ivlen length of iv
73 typedef hi_s32 (*func_symc_setiv)(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage);
76 * brief Symc iv schedule
84 typedef hi_void (*func_symc_getiv)(const hi_void *ctx, hi_u8 *iv, hi_u32 *ivlen);
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
H A Dcryp_symc.c189 static hi_void cryp_symc_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) in cryp_symc_setiv() argument
200 if (iv == HI_NULL) { in cryp_symc_setiv()
202 hi_log_error("Invalid iv len(%u), iv is null.\n", ivlen); in cryp_symc_setiv()
207 if (memcpy_s(hisi_ctx->iv, AES_IV_SIZE, iv, ivlen) != EOK) { in cryp_symc_setiv()
218 static hi_void cryp_symc_getiv(const hi_void *ctx, hi_u8 *iv, hi_u32 *ivlen) in cryp_symc_getiv() argument
228 if (memcpy_s(iv, AES_IV_SIZE, hisi_ctx->iv, hisi_ctx->ivlen) != EOK) { in cryp_symc_getiv()
502 hi_log_info("symc configure, chn %u, alg %d, mode %d, dec %u, klen %u, hard %u, iv le in cryp_symc_config()
735 cryp_aead_ccm_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) cryp_aead_ccm_setiv() argument
778 cryp_aead_gcm_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) cryp_aead_gcm_setiv() argument
795 hi_u8 *iv = (hi_u8 *)ctx->iv; cyp_aead_ccm_n() local
1488 cryp_symc_setiv_default(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage) cryp_symc_setiv_default() argument
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
H A Ddrv_symc_v100.c33 hi_u32 iv_addr; /* physics address of iv */
36 /* Define the struct of iv in node */
38 hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WORD]; /* iv data */ member
46 hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WORD]; /* iv data from user. */ member
48 /* iv usage flag, should be HI_CIPHER_IV_CHG_ONE_PACK
336 /* set iv addr of in node. */ in drv_symc_set_entry()
339 /* set iv dma addr to each in node, IV dma addr may be mmz or mmu. */ in drv_symc_set_entry()
1011 hi_s32 drv_symc_set_iv(hi_u32 chn_num, const hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WOR argument
1040 drv_symc_get_iv(hi_u32 chn_num, hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WORD]) drv_symc_get_iv() argument
1082 drv_symc_add_iv_to_node(symc_hard_context *ctx, hi_u8 *iv, hi_u32 iv_len, hi_u32 *flgs) drv_symc_add_iv_to_node() argument
[all...]
H A Ddrv_symc_v200.c46 hi_u32 gcm_iv_len : 4; /* gcm iv length */
51 hi_u32 iv[AES_IV_SIZE / WORD_WIDTH]; /* symc IV */ member
74 hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WORD]; /* iv data from user. */ member
76 /* iv usage flag, should be HI_CIPHER_IV_CHG_ONE_PACK
79 hi_u32 iv_flag; /* iv flag */
80 hi_u32 iv_len; /* iv length */
1030 hi_s32 drv_symc_set_iv(hi_u32 chn_num, const hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WORD], hi_u32 ivlen, hi_u32 flag) in drv_symc_set_iv() argument
1039 /* copy iv data into channel context. */ in drv_symc_set_iv()
1041 ctx->iv[ in drv_symc_set_iv()
1050 drv_symc_get_iv(hi_u32 chn_num, hi_u32 iv[SYMC_IV_MAX_SIZE_IN_WORD]) drv_symc_get_iv() argument
[all...]

Completed in 22 milliseconds

12