Home
last modified time | relevance | path

Searched refs:alg (Results 1 - 25 of 40) sorted by relevance

12

/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/
H A Dfillp_flow_control_alg0.c33 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; in FillpAlg0CalSendInterval() local
38 } else if (flowControl->sendRate > alg->maxRateAllowed) { in FillpAlg0CalSendInterval()
39 flowControl->sendRate = alg->maxRateAllowed; in FillpAlg0CalSendInterval()
45 static void FillpAlg0UpdateMaxRecvRate(struct FillpFlowControlAlg0 *alg, FILLP_UINT32 recvRate) in FillpAlg0UpdateMaxRecvRate() argument
47 FillpUpdateRecvRateSample(&alg->historyMaxRecvRate, recvRate, alg->historyMaxRecvRateIndex); in FillpAlg0UpdateMaxRecvRate()
48 alg->historyMaxRecvRateIndex = alg->historyMaxRecvRateIndex + 1; in FillpAlg0UpdateMaxRecvRate()
49 alg->historyMaxRecvRateIndex %= FILLP_FC0_PROBE_HISTORY_PACK_MAX_RATE_NUM; in FillpAlg0UpdateMaxRecvRate()
52 static void FillpAlg0FlowControlInit(struct FillpPcb *pcb, struct FillpFlowControlAlg0 *alg) in FillpAlg0FlowControlInit() argument
81 struct FillpFlowControlAlg0 *alg = FILLP_NULL_PTR; FillpAlg0FcInit() local
120 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)pcb->send.flowControl.fcAlg; FillpAlg0FcDeinit() local
145 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)pcb->send.flowControl.fcAlg; FillpAlg0CalMaxPackRcvInterval() local
159 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; FillpAlg0FcHandleInit() local
192 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; FillpAlg0FcHandleBwProbe() local
209 struct FillpFlowControlAlg0 *alg = (struct FillpFlowControlAlg0 *)flowControl->fcAlg; FillpAlg0PackStateProcess() local
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/
H A Dkapi_symc.c243 static hi_s32 kapi_symc_chk_des_3des_param(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width) in kapi_symc_chk_des_3des_param() argument
246 if (alg == HI_CIPHER_ALG_DES) { in kapi_symc_chk_des_3des_param()
247 hi_log_error("Invalid alg, unsupported des.\n"); in kapi_symc_chk_des_3des_param()
253 if (alg == HI_CIPHER_ALG_3DES) { in kapi_symc_chk_des_3des_param()
254 hi_log_error("Invalid alg, unsupported 3des.\n"); in kapi_symc_chk_des_3des_param()
260 hi_log_error("Invalid alg %d and mode %d\n", alg, mode); in kapi_symc_chk_des_3des_param()
276 static hi_s32 kapi_symc_chk_aes_param(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width) in kapi_symc_chk_aes_param() argument
279 hi_log_error("Invalid alg %d and mode %d\n", alg, mod in kapi_symc_chk_aes_param()
300 kapi_symc_chk_sm1_param(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width, hi_u32 round) kapi_symc_chk_sm1_param() argument
331 kapi_symc_chk_sm4_param(hi_cipher_alg alg, hi_cipher_work_mode mode) kapi_symc_chk_sm4_param() argument
342 kapi_symc_width_check(hi_cipher_alg alg, hi_cipher_work_mode mode, hi_u32 width, hi_u32 round) kapi_symc_width_check() argument
496 kapi_symc_check_ccm_gcm_taglen(hi_cipher_alg alg, hi_cipher_work_mode work_mode, hi_u32 tlen) kapi_symc_check_ccm_gcm_taglen() argument
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dhash.cpp36 static HASH_ALGORITHM_TYPE GetHashAlgorithm(const unique_ptr<char[]> &alg, const size_t algLen) in GetHashAlgorithm() argument
38 if (algLen == string_view("md5").length() && string_view(alg.get()).compare("md5") == 0) { in GetHashAlgorithm()
40 } else if (algLen == string_view("sha1").length() && string_view(alg.get()).compare("sha1") == 0) { in GetHashAlgorithm()
42 } else if (algLen == string_view("sha256").length() && string_view(alg.get()).compare("sha256") == 0) { in GetHashAlgorithm()
58 auto [resGetSecondArg, alg, algLen] = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in GetHashArgs()
64 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg, algLen); in GetHashArgs()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dsocket_opt.c194 static FILLP_INT SockSetFcAlg(struct FtSocket *sock, FILLP_UINT32 alg) in SockSetFcAlg() argument
214 if (alg != FILLP_ALG_ONE && alg != FILLP_ALG_TWO && alg != FILLP_ALG_THREE && in SockSetFcAlg()
215 alg != FILLP_ALG_MSG && alg != FILLP_ALG_BASE) { in SockSetFcAlg()
216 FILLP_LOGERR("alg %u is not supported", alg); in SockSetFcAlg()
220 if (alg != FILLP_ALG_BASE) { in SockSetFcAlg()
221 sock->netconn->pcb->fpcb.fcAlg = (FILLP_UINT8)FILLP_SUPPORT_ALG_N(alg); in SockSetFcAlg()
[all...]
/test/xts/acts/security_lite/huks/common/include/
H A Dhks_test_common.h62 uint32_t alg; member
91 uint32_t alg; member
104 uint32_t alg; member
134 uint32_t alg; member
152 uint32_t alg; member
302 uint32_t alg; member
313 uint32_t alg; member
332 uint32_t alg; member
364 uint32_t alg; member
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/
H A Dhash.cpp32 static HASH_ALGORITHM_TYPE GetHashAlgorithm(const string &alg) in GetHashAlgorithm() argument
34 return (algorithmMaps.find(alg) != algorithmMaps.end()) ? algorithmMaps.at(alg) : HASH_ALGORITHM_TYPE_UNSUPPORTED; in GetHashAlgorithm()
47 auto [resGetSecondArg, alg, ignore] = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in GetHashArgs()
54 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg.get()); in GetHashArgs()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
H A Dcryp_symc.c238 static hi_void cryp_symc_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width) in cryp_symc_setmode() argument
249 hisi_ctx->alg = alg; in cryp_symc_setmode()
256 static hi_void cryp_3des2dma_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width) in cryp_3des2dma_setmode() argument
267 crypto_unused(alg); in cryp_3des2dma_setmode()
272 hisi_ctx->alg = SYMC_ALG_TDES; in cryp_3des2dma_setmode()
477 static symc_klen cryp_symc_key_type(symc_alg alg, hi_u32 klen) in cryp_symc_key_type() argument
481 if ((alg == SYMC_ALG_AES) && (klen == AES_KEY_192BIT)) { in cryp_symc_key_type()
483 } else if ((alg == SYMC_ALG_AES) && (klen == AES_KEY_256BIT)) { in cryp_symc_key_type()
485 } else if ((alg in cryp_symc_key_type()
1201 cryp_get_symc(hi_u32 alg, hi_u32 mode) cryp_get_symc() argument
1507 cryp_register_symc_default(symc_func *func, symc_alg alg, symc_mode mode) cryp_register_symc_default() argument
1890 cryp_get_symc_alg(hi_cipher_alg alg, symc_alg *cryp_alg) cryp_get_symc_alg() argument
1958 cryp_get_symc_op(hi_cipher_alg alg, hi_cipher_work_mode mode) cryp_get_symc_op() argument
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/include/
H A Dcryp_symc.h87 * brief SYMC alg and mode
90 * param alg Symmetric cipher alg
96 typedef hi_void (*func_symc_setmode)(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width);
107 * brief SYMC alg and mode
156 symc_alg alg; /* Alg of Symmetric cipher */ member
187 * param[in] alg The alg of Symmetric cipher.
191 symc_func *cryp_get_symc_op(hi_cipher_alg alg, hi_cipher_work_mode mode);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/class_hashstream/
H A Dhashstream_n_exporter.cpp28 static HASH_ALGORITHM_TYPE GetHashAlgorithm(const string &alg) in GetHashAlgorithm() argument
30 return (algorithmMaps.find(alg) != algorithmMaps.end()) ? algorithmMaps.at(alg) : HASH_ALGORITHM_TYPE_UNSUPPORTED; in GetHashAlgorithm()
104 auto [succAlg, alg, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Constructor()
111 HASH_ALGORITHM_TYPE algType = GetHashAlgorithm(alg.get()); in Constructor()
/foundation/multimedia/camera_framework/test/fuzztest/smoothzoom_fuzzer/
H A Dsmooth_zoom_fuzzer.cpp68 auto alg = fuzz->GetZoomAlgorithm(mode); in Test() local
74 alg->GetZoomArray(currentZoom, targetZoom, frameInterval); in Test()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/
H A Ddrv_symc.h161 char *alg; member
239 symc_alg alg; /* Symmetric cipher algorithm */ member
321 * param[in] alg The symmetric cipher algorithm.
328 hi_s32 drv_symc_node_check(symc_alg alg, symc_mode mode, symc_klen klen, hi_u32 block_size, symc_multi_pack *pack);
342 * param[in] iv The IV data, hardware use the valid bytes according to the alg.
359 * param[in] key The key data, hardware use the valid bytes according to the alg.
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/include/
H A Dext_alg.h65 * brief SYMC alg and mode
131 * brief SYMC alg and mode
134 * param alg Symmetric cipher alg
139 hi_void ext_mbedtls_symc_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width);
204 * brief sm4 alg and mode
207 * param alg Symmetric cipher alg
212 hi_void ext_sm4_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width);
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhks_client.h511 * @param alg [IN] type #const uint32_t,HMAC algorithm hks_alg_hmac(HKS_ALG_HASH_SHA_256) or
518 when alg is hks_alg_hmac(HKS_ALG_HASH_SHA_256), output->size must be greater than or
519 equal to 32 when alg is hks_alg_hmac(HKS_ALG_HASH_SHA_512), output->size must be greater than or equal to 64
521alg为hks_alg_hmac(HKS_ALG_HASH_SHA_256)时,output-> size必须大于或
522alg为hks_alg_hmac(HKS_ALG_HASH_SHA_512)时等于32,则output-> size必须大于或等于64。CNend
530 const uint32_t alg, const struct hks_blob *src_data,
543 * @param alg [IN] type #const uint32_t,Hash algorithm, Only spuuort SHA256/SHA512.
549 when alg is HKS_ALG_HASH_SHA_256, hash->size must be greater than or equal to 32 when alg is HKS_ALG_HASH_SHA_512,
551 CNcomment:生成的消息验证码,hash和hash-> data不能为null约束条件:当alg为HKS_ALG_HASH_SHA_25
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
H A Dasn1.h301 * \param alg The buffer to receive the OID
308 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params );
318 * \param alg The buffer to receive the OID
324 mbedtls_asn1_buf *alg );
H A Dx509.h103 #define MBEDTLS_X509_BADCERT_BAD_PK 0x8000 /**< The certificate is signed with an unacceptable PK alg (eg RSA vs ECDSA). */
106 #define MBEDTLS_X509_BADCRL_BAD_PK 0x040000 /**< The CRL is signed with an unacceptable PK alg (eg RSA vs ECDSA). */
290 mbedtls_x509_buf *alg );
292 mbedtls_x509_buf *alg, mbedtls_x509_buf *params );
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
H A Ddrv_symc_v200.c81 symc_alg alg; /* The alg of Symmetric cipher */ member
323 if (ctx->alg == SYMC_ALG_SM4) { in drv_symc_wait_irq()
1466 hi_s32 drv_symc_node_check(symc_alg alg, symc_mode mode, hi_u32 klen, hi_u32 block_size, symc_multi_pack *pack) in drv_symc_node_check() argument
1482 if ((alg != SYMC_ALG_AES) || in drv_symc_node_check()
1502 if ((alg != SYMC_ALG_NULL_CIPHER) && in drv_symc_node_check()
1504 /* The length of data depend on alg and mode, which limit to hardware in drv_symc_node_check()
1528 hi_log_chk_param_return(ctx_cfg->alg >= SYMC_ALG_COUNT); in drv_symc_cfg()
1534 /* record alg */ in drv_symc_cfg()
1535 ctx->alg in drv_symc_cfg()
[all...]
H A Ddrv_symc_v100.c698 ctx.alg = SYMC_ALG_AES; in drv_cipher_aes_test()
1291 hi_s32 drv_symc_node_check(symc_alg alg, symc_mode mode, hi_u32 klen, hi_u32 block_size, symc_multi_pack *pack) in drv_symc_node_check() argument
1301 crypto_unused(alg); in drv_symc_node_check()
1355 hi_log_chk_param_return(ctx->alg > SYMC_ALG_AES); in drv_symc_cfg()
1365 ctrl.bits.alg_sel = ctx->alg; in drv_symc_cfg()
1524 status->alg = "DES "; in drv_symc_proc_alg()
1528 status->alg = "3DES"; in drv_symc_proc_alg()
1532 status->alg = "AES "; in drv_symc_proc_alg()
1536 status->alg = "BUTT"; in drv_symc_proc_alg()
/test/xts/acts/security_lite/huks/common/
H A Dhks_test_cipher.c484 encryptStruct->cipherParms->setAlg, encryptStruct->cipherParms->alg, in Encrypt()
509 encryptStruct->cipherParms->setAlg, encryptStruct->cipherParms->alg, in Encrypt()
543 decryptStruct->cipherParms->decryptParamSetParams.alg, in DecryptCipher()
557 decryptStruct->cipherParms->decryptParamSetParams.alg, in DecryptCipher()
588 onlyDecryptStruct->cipherParms->setAlg, onlyDecryptStruct->cipherParms->alg, in Decrypt()
613 onlyDecryptStruct->cipherParms->setAlg, onlyDecryptStruct->cipherParms->alg, in Decrypt()
H A Dhks_test_common.c106 algParam.uint32Param = paramStruct->alg; in TestGenerateKeyParamSetPre()
217 paramStruct->setAlg, paramStruct->alg, in TestConstructRsaCipherParamSet()
237 algParam.uint32Param = paramStruct->alg; in TestAesCipherParamSetPre()
390 algParam.uint32Param = paramStruct->alg; in TestConstructAgreeParamSet()
434 algParam.uint32Param = paramStruct->alg; in TestDeriveParamSetPre()
569 genKeyParamSetParams->setAlg, genKeyParamSetParams->alg, in HuksGenerateKey()
720 genKeyParam.paramSetParams.setAlg, genKeyParam.paramSetParams.alg, in TestGenDefaultKeyAndGetAlias()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/
H A Dext_symc.c74 hi_s32 ext_mbedtls_symc_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width) in ext_mbedtls_symc_setmode() argument
83 switch (alg) { in ext_mbedtls_symc_setmode()
94 hi_log_error("unsupported alg %d\n", alg); in ext_mbedtls_symc_setmode()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_boot_bin.c72 hi_u32 upg_check_boot_subk_attr(HI_CONST hi_void *key, hi_u32 alg) in upg_check_boot_subk_attr() argument
93 if (alg == SIGN_ALG_ECC) { in upg_check_boot_subk_attr()
129 hi_u32 upg_check_boot_sub_key(HI_CONST hi_u8 *pubk, HI_CONST hi_u8 *subk, hi_u32 alg) in upg_check_boot_sub_key() argument
132 hi_u32 ret = upg_check_boot_subk_attr(subk, alg); in upg_check_boot_sub_key()
138 if (alg == SIGN_ALG_ECC) { in upg_check_boot_sub_key()
355 upg_print("[upg check unencrpt boot code]alg-ret:0x%x-0x%x \r\n", head->sign_alg.sign_alg, ret); in upg_check_unencrpt_boot_code()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/
H A Dhi_cipher_compat.h199 hi_cipher_alg alg; /* Cipher algorithm */ member
271 hi_cipher_alg alg; /* Cipher algorithm. */ member
/test/xts/acts/security/huks/huks_napi_BasicTest/src/
H A Dhuks_three_stage_test_common.cpp492 static const EVP_MD *GetOpensslAlg(uint32_t alg) in GetOpensslAlg() argument
494 switch (alg) { in GetOpensslAlg()
512 static int32_t HksOpensslHash(uint32_t alg, const struct OH_Huks_Blob *msg, struct OH_Huks_Blob *hash) in HksOpensslHash() argument
514 const EVP_MD *opensslAlg = GetOpensslAlg(alg); in HksOpensslHash()
/test/xts/acts/security_lite/huks/liteos_a_adapter/
H A Dhks_generate_key_test.cpp95 g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg, in HWTEST_F()
H A Dhks_derive_test.cpp131 deriveParamSetParams->setAlg, deriveParamSetParams->alg, in DeriveKey()

Completed in 21 milliseconds

12