/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/ |
H A D | ext_aead.c | 38 hi_u32 tlen; /* Tag length */ member 139 hi_s32 ext_mbedtls_aead_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) in ext_mbedtls_aead_set_aad() argument 149 aead->tlen = tlen; in ext_mbedtls_aead_set_aad() 162 hi_log_chk_param_return(*taglen < aead->tlen); in ext_mbedtls_aead_get_tag() 164 hi_log_debug("tag buffer len %u, tag len %u\n", *taglen, aead->tlen); in ext_mbedtls_aead_get_tag() 166 *taglen = aead->tlen; in ext_mbedtls_aead_get_tag() 168 if (memcpy_s(tag, AEAD_TAG_SIZE, aead->tag, aead->tlen) != EOK) { in ext_mbedtls_aead_get_tag() 266 aead->alen, crypto_mem_virt(&mem.in), crypto_mem_virt(&mem.out), (hi_u8 *)aead->tag, aead->tlen); in ext_mbedtls_aead_ccm_crypto() 272 aead->alen, crypto_mem_virt(&mem.in), crypto_mem_virt(&mem.out), (hi_u8 *)aead->tag, aead->tlen); in ext_mbedtls_aead_ccm_crypto() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/ |
H A D | at.c | 548 size_t tlen; in at_parse_string_with_p() local 555 tlen = pos - value; in at_parse_string_with_p() 556 tstr = at_dup_binstr(value, tlen); in at_parse_string_with_p() 561 str = at_malloc(tlen + 1); in at_parse_string_with_p() 567 *len = at_printf_decode((hi_u8 *) str, tlen + 1, tstr); in at_parse_string_with_p() 576 size_t tlen; in at_parse_string_other() local 581 tlen = hlen / 2; /* 2 */ in at_parse_string_other() 582 str = at_malloc(tlen + 1); in at_parse_string_other() 586 if (at_hexstr2bin(value, str, tlen)) { in at_parse_string_other() 590 str[tlen] in at_parse_string_other() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/ |
H A D | cryp_symc.c | 820 buf[idx] |= ((ctx->tlen - CRYPTO_NUM_2) / MUL_VAL_2) << SHIFT_3BITS; /* descript: (t -2) / 2 */ in cyp_aead_ccm_n() 891 static hi_s32 cryp_aead_ccm_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) in cryp_aead_ccm_set_aad() argument 901 if ((tlen & 0x01) || (tlen < AES_CCM_MIN_TAG_LEN) || (tlen > AES_CCM_MAX_TAG_LEN)) { in cryp_aead_ccm_set_aad() 902 hi_log_error("Invalid tag len, tlen = 0x%x.\n", tlen); in cryp_aead_ccm_set_aad() 909 hisi_ctx->tlen = tlen; in cryp_aead_ccm_set_aad() 915 static hi_s32 cryp_aead_gcm_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) in cryp_aead_gcm_set_aad() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/ |
H A D | kapi_symc.c | 496 static hi_s32 kapi_symc_check_ccm_gcm_taglen(hi_cipher_alg alg, hi_cipher_work_mode work_mode, hi_u32 tlen) in kapi_symc_check_ccm_gcm_taglen() argument 505 if ((tlen & 0x01) || (tlen < AES_CCM_MIN_TAG_LEN) || (tlen > AES_CCM_MAX_TAG_LEN)) { in kapi_symc_check_ccm_gcm_taglen() 506 hi_log_error("Invalid ccm tag len, tlen = 0x%x.\n", tlen); in kapi_symc_check_ccm_gcm_taglen() 511 if ((tlen < AES_GCM_MIN_TAG_LEN) || (tlen > AES_GCM_MAX_TAG_LEN)) { in kapi_symc_check_ccm_gcm_taglen() 512 hi_log_error("Invalid gcm tag len, tlen = 0x%x.\n", tlen); in kapi_symc_check_ccm_gcm_taglen() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/include/ |
H A D | cryp_symc.h | 137 * param tlen Tag length 141 typedef hi_s32 (*func_aead_set_aad)(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen);
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/include/ |
H A D | ext_alg.h | 70 * param tlen Tag length 74 hi_s32 ext_mbedtls_aead_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen);
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | dbus.c | 2066 uint8 tup, tlen; in dbus_otp() local 2115 tlen = 0; in dbus_otp() 2117 tlen = cis[i++]; in dbus_otp() 2120 tlen = 0; in dbus_otp() 2123 tlen = cis[i]; in dbus_otp() 2129 if (tup == CISTPL_END || (i + tlen) >= (otp_size << 1)) { in dbus_otp() 2149 if (tlen == 2) in dbus_otp() 2160 tlen++; in dbus_otp() 2167 i += tlen; in dbus_otp()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/ |
H A D | drv_symc.h | 245 hi_u32 tlen; /* Tag length */ member
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/ |
H A D | drv_cipher_kapi.h | 261 hi_u32 tlen; /* Tag length */ member
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
H A D | ssl.h | 1502 * \param tlen On exit, holds the length written 1512 size_t *tlen,
|