/base/security/crypto_framework/test/unittest/src/ |
H A D | alg_25519_common_param_spec.c | 22 static HcfResult CreateAlg25519KeyPairSpec(bool choose, HcfAlg25519KeyPairParamsSpec **alg25519KeyPairSpec) in CreateAlg25519KeyPairSpec() argument 28 if (choose) { in CreateAlg25519KeyPairSpec() 50 HcfResult ConstructAlg25519KeyPairParamsSpec(const char *algoName, bool choose, HcfAsyKeyParamsSpec **spec) in ConstructAlg25519KeyPairParamsSpec() argument 65 if (CreateAlg25519KeyPairSpec(choose, &alg25519KeyPairSpec) == HCF_SUCCESS) { in ConstructAlg25519KeyPairParamsSpec() 68 if (choose) { in ConstructAlg25519KeyPairParamsSpec() 76 if (choose) { in ConstructAlg25519KeyPairParamsSpec() 101 static HcfResult CreateAlg25519PubKeySpec(bool choose, HcfAlg25519PubKeyParamsSpec **alg25519PubKeySpec) in CreateAlg25519PubKeySpec() argument 107 if (choose) { in CreateAlg25519PubKeySpec() 129 HcfResult ConstructAlg25519PubKeyParamsSpec(const char *algoName, bool choose, HcfAsyKeyParamsSpec **spec) in ConstructAlg25519PubKeyParamsSpec() argument 144 if (CreateAlg25519PubKeySpec(choose, in ConstructAlg25519PubKeyParamsSpec() 166 CreateAlg25519PriKeySpec(bool choose, HcfAlg25519PriKeyParamsSpec **alg25519PriKeySpec) CreateAlg25519PriKeySpec() argument 194 ConstructAlg25519PriKeyParamsSpec(const char *algoName, bool choose, HcfAsyKeyParamsSpec **spec) ConstructAlg25519PriKeyParamsSpec() argument 295 TestCreateKeyPairParamsSpecAndGeneratorBySpec(const char *algName, bool choose, HcfAsyKeyParamsSpec **paramSpec, HcfAsyKeyGeneratorBySpec **generator) TestCreateKeyPairParamsSpecAndGeneratorBySpec() argument 315 TestCreatePubKeyParamsSpecAndGeneratorBySpec(const char *algName, bool choose, HcfAsyKeyParamsSpec **paramSpec, HcfAsyKeyGeneratorBySpec **generator) TestCreatePubKeyParamsSpecAndGeneratorBySpec() argument 335 TestCreatePriKeyParamsSpecAndGeneratorBySpec(const char *algName, bool choose, HcfAsyKeyParamsSpec **paramSpec, HcfAsyKeyGeneratorBySpec **generator) TestCreatePriKeyParamsSpecAndGeneratorBySpec() argument [all...] |
/base/security/crypto_framework/test/unittest/include/ |
H A D | alg_25519_common_param_spec.h | 28 HcfResult ConstructAlg25519KeyPairParamsSpec(const char *algoName, bool choose, HcfAsyKeyParamsSpec **spec); 29 HcfResult ConstructAlg25519PubKeyParamsSpec(const char *algoName, bool choose, HcfAsyKeyParamsSpec **spec); 30 HcfResult ConstructAlg25519PriKeyParamsSpec(const char *algoName, bool choose, HcfAsyKeyParamsSpec **spec); 39 HcfResult TestCreateKeyPairParamsSpecAndGeneratorBySpec(const char *algName, bool choose, 41 HcfResult TestCreatePubKeyParamsSpecAndGeneratorBySpec(const char *algName, bool choose, 43 HcfResult TestCreatePriKeyParamsSpecAndGeneratorBySpec(const char *algName, bool choose,
|
/base/usb/usb_manager/services/native/src/ |
H A D | usb_right_manager.cpp | 721 int32_t UsbRightManager::TidyUpRight(uint32_t choose) in TidyUpRight() argument 723 if (choose == TIGHT_UP_USB_RIGHT_RECORD_NONE) { in TidyUpRight() 727 if ((choose | TIGHT_UP_USB_RIGHT_RECORD_ALL) != TIGHT_UP_USB_RIGHT_RECORD_ALL) { in TidyUpRight() 728 USB_HILOGE(MODULE_USB_SERVICE, "choose invalid"); in TidyUpRight() 738 if ((choose & TIGHT_UP_USB_RIGHT_RECORD_APP_UNINSTALLED) != 0) { in TidyUpRight() 745 if ((choose & TIGHT_UP_USB_RIGHT_RECORD_USER_DELETED) != 0) { in TidyUpRight() 752 if ((choose & TIGHT_UP_USB_RIGHT_RECORD_EXPIRED) != 0) { in TidyUpRight() 756 if ((choose & TIGHT_UP_USB_RIGHT_RECORD_APP_REINSTALLED) != 0) { in TidyUpRight()
|
/base/security/asset/frameworks/utils/src/ |
H A D | hasher.rs | 67 let choose = (compressed_chunk[4] & compressed_chunk[5]) ^ ((!compressed_chunk[4]) & compressed_chunk[6]); 70 .wrapping_add(choose)
|
/base/security/crypto_framework/test/fuzztest/key/asykeygenerator_fuzzer/ |
H A D | asykeygenerator_fuzzer.cpp | 839 static HcfResult CreateAlg25519KeyPairSpec(bool choose, HcfAlg25519KeyPairParamsSpec **alg25519KeyPairSpec) in CreateAlg25519KeyPairSpec() argument 846 if (choose) { in CreateAlg25519KeyPairSpec() 868 static HcfResult ConstructAlg25519KeyPairParamsSpec(const string &algoName, bool choose, in ConstructAlg25519KeyPairParamsSpec() argument 884 if (CreateAlg25519KeyPairSpec(choose, &alg25519KeyPairSpec) == HCF_SUCCESS) { in ConstructAlg25519KeyPairParamsSpec() 887 if (choose) { in ConstructAlg25519KeyPairParamsSpec() 897 if (choose) { in ConstructAlg25519KeyPairParamsSpec() 921 static HcfResult CreateAlg25519PubKeySpec(bool choose, HcfAlg25519PubKeyParamsSpec **alg25519PubKeySpec) in CreateAlg25519PubKeySpec() argument 928 if (choose) { in CreateAlg25519PubKeySpec() 950 static HcfResult ConstructAlg25519PubKeyParamsSpec(const string &algoName, bool choose, in ConstructAlg25519PubKeyParamsSpec() argument 966 if (CreateAlg25519PubKeySpec(choose, in ConstructAlg25519PubKeyParamsSpec() 988 CreateAlg25519PriKeySpec(bool choose, HcfAlg25519PriKeyParamsSpec **alg25519PriKeySpec) CreateAlg25519PriKeySpec() argument 1017 ConstructAlg25519PriKeyParamsSpec(const string &algoName, bool choose, HcfAsyKeyParamsSpec **spec) ConstructAlg25519PriKeyParamsSpec() argument 1712 GenAlg25519KeyBySpec(GenerateType type, const std::string &algoName, bool choose) GenAlg25519KeyBySpec() argument [all...] |
/base/usb/usb_manager/services/native/include/ |
H A D | usb_right_manager.h | 98 int32_t TidyUpRight(uint32_t choose);
|