/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/src/ |
D | sha256.c | 37 static void compress(unsigned int *iv, const uint8_t *data); 53 s->iv[0] = 0x6a09e667; in tc_sha256_init() 54 s->iv[1] = 0xbb67ae85; in tc_sha256_init() 55 s->iv[2] = 0x3c6ef372; // 2:array element in tc_sha256_init() 56 s->iv[3] = 0xa54ff53a; // 3:array element in tc_sha256_init() 57 s->iv[4] = 0x510e527f; // 4:array element in tc_sha256_init() 58 s->iv[5] = 0x9b05688c; // 5:array element in tc_sha256_init() 59 s->iv[6] = 0x1f83d9ab; // 6:array element in tc_sha256_init() 60 s->iv[7] = 0x5be0cd19; // 7:array element in tc_sha256_init() 78 compress(s->iv, s->leftover); in tc_sha256_update() [all …]
|
D | cmac_mode.c | 111 _set(s->iv, 0, TC_AES_BLOCK_SIZE); in tc_cmac_setup() 112 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_setup() 113 gf_double(s->K1, s->iv); in tc_cmac_setup() 139 _set(s->iv, 0, TC_AES_BLOCK_SIZE); in tc_cmac_init() 192 s->iv[i] ^= s->leftover[i]; in tc_cmac_update() 195 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_update() 201 s->iv[i] ^= data[i]; in tc_cmac_update() 204 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_update() 241 s->iv[i] ^= s->leftover[i] ^ k[i]; in tc_cmac_final() 244 tc_aes_encrypt(tag, s->iv, s->sched); in tc_cmac_final()
|
D | cbc_mode.c | 38 unsigned int inlen, const uint8_t *iv, in tc_cbc_mode_encrypt() argument 57 (void)_copy(buffer, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt() 59 (void)_copy(out, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt() 77 unsigned int inlen, const uint8_t *iv, in tc_cbc_mode_decrypt() argument 101 p = iv; in tc_cbc_mode_decrypt()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/ |
D | wep.c | 33 static inline bool ieee80211_wep_weak_iv(u32 iv, int keylen) in ieee80211_wep_weak_iv() argument 40 if ((iv & 0xff00) == 0xff00) { in ieee80211_wep_weak_iv() 41 u8 B = (iv >> 16) & 0xff; in ieee80211_wep_weak_iv() 50 int keylen, int keyidx, u8 *iv) in ieee80211_wep_get_iv() argument 56 if (!iv) in ieee80211_wep_get_iv() 59 *iv++ = (local->wep_iv >> 16) & 0xff; in ieee80211_wep_get_iv() 60 *iv++ = (local->wep_iv >> 8) & 0xff; in ieee80211_wep_get_iv() 61 *iv++ = local->wep_iv & 0xff; in ieee80211_wep_get_iv() 62 *iv++ = keyidx << 6; in ieee80211_wep_get_iv() 137 u8 *iv; in ieee80211_wep_encrypt() local [all …]
|
D | aes_gmac.c | 21 u8 *zero, *__aad, iv[AES_BLOCK_SIZE]; in ieee80211_aes_gmac() local 42 memcpy(iv, nonce, GMAC_NONCE_LEN); in ieee80211_aes_gmac() 43 memset(iv + GMAC_NONCE_LEN, 0, sizeof(iv) - GMAC_NONCE_LEN); in ieee80211_aes_gmac() 44 iv[AES_BLOCK_SIZE - 1] = 0x01; in ieee80211_aes_gmac() 47 aead_request_set_crypt(aead_req, sg, sg, 0, iv); in ieee80211_aes_gmac()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/demux/sw_demux/dvbcsa2/ |
D | dvbcsa_stream.c | 255 static inline void csa_stream_init_round(uint32_t iv, in csa_stream_init_round() argument 262 *A |= (NBGET(*A, 10) ^ GETX(*pqzyx) ^ GETD(*cfed) ^ (iv >> 4)) & 0x0f; in csa_stream_init_round() 264 tmp = (NBGET(*B, 6) ^ NBGET(*B, 9) ^ GETY(*pqzyx) ^ (iv)) & 0x0f; in csa_stream_init_round() 307 void dvbcsa_stream_xor (const dvbcsa_cw_t cw, const dvbcsa_block_t iv, in dvbcsa_stream_xor() argument 321 csa_stream_init_round(iv[i] , &A, &B, &pqzyx, &cfed); in dvbcsa_stream_xor() 322 csa_stream_init_round(swap_nbl(iv[i]) , &A, &B, &pqzyx, &cfed); in dvbcsa_stream_xor() 323 csa_stream_init_round(iv[i] , &A, &B, &pqzyx, &cfed); in dvbcsa_stream_xor() 324 csa_stream_init_round(swap_nbl(iv[i]) , &A, &B, &pqzyx, &cfed); in dvbcsa_stream_xor()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/crypto/ |
D | aes-siv.c | 128 u8 *iv, *crypt_pw; in aes_siv_encrypt() local 148 iv = out; in aes_siv_encrypt() 151 os_memcpy(iv, v, AES_BLOCK_SIZE); in aes_siv_encrypt() 172 u8 iv[AES_BLOCK_SIZE]; in aes_siv_decrypt() local 190 os_memcpy(iv, iv_crypt, AES_BLOCK_SIZE); in aes_siv_decrypt() 193 iv[8] &= 0x7f; in aes_siv_decrypt() 194 iv[12] &= 0x7f; in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() 321 int aes_gmac(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gmac() argument 324 return aes_gcm_ae(key, key_len, iv, iv_len, NULL, 0, aad, aad_len, NULL, in aes_gmac()
|
D | aes_wrap.h | 48 int __must_check aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data, 50 int __must_check aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data, 53 const u8 *iv, size_t iv_len, 58 const u8 *iv, size_t iv_len, 63 const u8 *iv, size_t iv_len,
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
D | ccm.h | 161 const unsigned char *iv, size_t iv_len, 209 const unsigned char *iv, size_t iv_len, 246 const unsigned char *iv, size_t iv_len, 291 const unsigned char *iv, size_t iv_len,
|
D | aes.h | 309 unsigned char iv[16], 402 unsigned char iv[16], 445 unsigned char iv[16], 499 unsigned char iv[16],
|
D | cipher_internal.h | 56 unsigned char *iv, const unsigned char *input, 63 unsigned char *iv, const unsigned char *input, 70 unsigned char *iv,
|
D | gcm.h | 173 const unsigned char *iv, 217 const unsigned char *iv, 245 const unsigned char *iv,
|
D | cipher.h | 313 unsigned char iv[MBEDTLS_MAX_IV_LENGTH]; member 617 const unsigned char *iv, 783 const unsigned char *iv, size_t iv_len, 819 const unsigned char *iv, size_t iv_len, 861 const unsigned char *iv, size_t iv_len,
|
/device/soc/esp/esp32/components/hal/ |
D | aes_hal.c | 80 void aes_hal_set_iv(const uint8_t *iv) in aes_hal_set_iv() argument 82 aes_ll_set_iv(iv); in aes_hal_set_iv() 85 void aes_hal_read_iv(uint8_t *iv) in aes_hal_read_iv() argument 87 aes_ll_read_iv(iv); in aes_hal_read_iv()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/ |
D | ext_sm4.c | 87 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() argument 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() argument 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_u32 *ivlen) in ext_sm4_getiv() argument 462 if ((symc == HI_NULL) || (iv == HI_NULL) || (ivlen == HI_NULL)) { in ext_sm4_getiv() [all …]
|
D | ext_aead.c | 32 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… 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_v… in ext_mbedtls_aead_ccm_crypto() 323 …ret = mbedtls_gcm_starts(gcm, operation ? MBEDTLS_DECRYPT : MBEDTLS_ENCRYPT, (hi_u8 *)aead->iv, ae… in ext_mbedtls_aead_gcm_crypto()
|
D | ext_symc.c | 127 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()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/ |
D | hi_cipher_compat.h | 196 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/qemu/SmartL_E802/liteos_m/board/hals/csky_driver/include/ |
D | drv_aes.h | 184 …_cbc_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16]); 196 …fb1_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16]); 208 …cfb8_crypto(aes_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16]); 221 …_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16], uint32_t *num); 234 …_handle_t handle, void *context, void *in, void *out, uint32_t len, uint8_t iv[16], uint32_t *num);
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/include/ |
D | ext_alg.h | 51 hi_s32 ext_mbedtls_aead_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage); 150 hi_s32 ext_mbedtls_symc_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage); 161 hi_void ext_mbedtls_symc_getiv(hi_void *ctx, hi_u8 *iv, hi_u32 *ivlen); 223 hi_s32 ext_sm4_setiv(hi_void *ctx, const hi_u8 *iv, hi_u32 ivlen, hi_u32 usage); 234 hi_void ext_sm4_getiv(hi_void *ctx, hi_u8 *iv, hi_u32 *ivlen);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/ |
D | load_crypto.c | 153 …cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(content_tmp->iv_nv) ^ IV… 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_n… 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) ^ (uintptr_t)(content->iv_content) ^ I… in crypto_encrypt_data() 391 … if (memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), content->iv_content, IV_BYTE_LENGTH, cs) != EOK) { in crypto_encrypt_data()
|
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/ |
D | hpm_sdp_drv.c | 80 const uint8_t *iv, 89 static void aes_ccm_format_b0(uint8_t *block, const uint8_t *iv, uint32_t iv_len, uint32_t mac_len,… 92 static void aes_ccm_format_ctr0(uint8_t *ctr, const uint8_t *iv, uint8_t iv_len); 253 const uint8_t iv[16], const uint8_t *input, uint8_t *output) in sdp_aes_crypt_cbc() 291 (void) memcpy(iv_32, iv, 16); in sdp_aes_crypt_cbc() 379 static void aes_ccm_format_b0(uint8_t *block, const uint8_t *iv, uint32_t iv_len, uint32_t mac_len,… in aes_ccm_format_b0() argument 388 (void) memcpy(block + 1U, iv, iv_len); in aes_ccm_format_b0() 406 static void aes_ccm_format_ctr0(uint8_t *ctr, const uint8_t *iv, uint8_t iv_len) in aes_ccm_format_ctr0() argument 411 (void) memcpy(ctr + 1U, iv, iv_len); in aes_ccm_format_ctr0() 418 const uint8_t *iv, in aes_ccm_auth_crypt() argument [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/include/ |
D | rtw_security.h | 338 #define GET_TKIP_PN(iv, dot11txpn)\ argument 340 dot11txpn._byte_.TSC0 = iv[2];\ 341 dot11txpn._byte_.TSC1 = iv[0];\ 342 dot11txpn._byte_.TSC2 = iv[4];\ 343 dot11txpn._byte_.TSC3 = iv[5];\ 344 dot11txpn._byte_.TSC4 = iv[6];\ 345 dot11txpn._byte_.TSC5 = iv[7];\
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/include/tinycrypt/ |
D | cbc_mode.h | 111 unsigned int inlen, const uint8_t *iv, 144 unsigned int inlen, const uint8_t *iv,
|