Home
last modified time | relevance | path

Searched defs:alg (Results 1 – 25 of 41) sorted by relevance

12

/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_ability.h69 #define HKS_CRYPTO_ABILITY(type, alg) \ argument
72 #define HKS_CRYPTO_ABILITY_GENERATE_KEY(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_GENERATE_KEY, alg) argument
73 #define HKS_CRYPTO_ABILITY_GET_PUBLIC_KEY(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_GET_PUBLIC_KEY, al… argument
74 #define HKS_CRYPTO_ABILITY_DERIVE_KEY(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_DERIVE_KEY, alg) argument
75 #define HKS_CRYPTO_ABILITY_AGREE_KEY(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_AGREE_KEY, alg) argument
76 #define HKS_CRYPTO_ABILITY_SIGN(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_SIGN, alg) argument
77 #define HKS_CRYPTO_ABILITY_VERIFY(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_VERIFY, alg) argument
91 #define HKS_CRYPTO_ABILITY_ENCRYPT(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_ENCRYPT, alg) argument
92 #define HKS_CRYPTO_ABILITY_ENCRYPT_INIT(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_ENCRYPT_INIT, alg) argument
93 #define HKS_CRYPTO_ABILITY_ENCRYPT_UPDATE(alg) HKS_CRYPTO_ABILITY(HKS_OPERATION_ENCRYPT_UPDATE, al… argument
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_hash.c34 static int32_t CheckDigestAlg(uint32_t alg) in CheckDigestAlg()
66 static int32_t HashCheckParam(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HashCheckParam()
76 int32_t HksOpensslHash(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HksOpensslHash()
92 int32_t HksOpensslHashInit(void **cryptoCtx, uint32_t alg) in HksOpensslHashInit()
Dhks_openssl_hmac.c71 const struct HksBlob *key, uint32_t alg, const struct HksBlob *msg, const struct HksBlob *mac) in HmacCheckParam()
Dhks_openssl_engine.c129 const EVP_MD *GetOpensslAlg(uint32_t alg) in GetOpensslAlg()
277 int32_t HksCryptoHalHash(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HksCryptoHalHash()
284 int32_t HksCryptoHalHashInit(uint32_t alg, void **ctx) in HksCryptoHalHashInit()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c238 … const struct HksParamSet *paramSet, const uint32_t *expectAlg, uint32_t expectCnt, uint32_t *alg) in CheckAndGetAlgorithm()
270 static int32_t CheckGenKeyParamsByAlg(uint32_t alg, const struct HksParamSet *paramSet, in CheckGenKeyParamsByAlg()
287uint32_t alg, uint32_t inputPurpose, const struct HksParamSet *paramSet, struct ParamsValues *para… in CheckGenKeyMacDeriveParams()
316 uint32_t alg; in CoreCheckGenKeyParams() local
336 static int32_t CheckImportKeySize(uint32_t alg, const struct ParamsValues *params, const struct Hks… in CheckImportKeySize()
381 static int32_t CheckSignVerifyParamsByAlg(uint32_t cmdId, uint32_t alg, const struct ParamsValues *… in CheckSignVerifyParamsByAlg()
395 …uint32_t cmdId, uint32_t alg, const struct HksParamSet *paramSet, const struct ParamsValues *input… in CheckCipherParamsByAlg()
444 static int32_t CheckRsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckRsaKeyLen()
475 static int32_t CheckEccKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckEccKeyLen()
513 static int32_t CheckDsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckDsaKeyLen()
[all …]
Dhks_base_check.c761 static int32_t GetInvalidPurpose(uint32_t alg, uint32_t *inputPurpose) in GetInvalidPurpose()
778 static int32_t CheckPurposeValid(uint32_t alg, uint32_t inputPurpose) in CheckPurposeValid()
860 static int32_t InitInputParamsByAlg(uint32_t alg, enum CheckKeyType checkType, struct ParamsValues … in InitInputParamsByAlg()
926 static int32_t GetExpectParams(uint32_t alg, enum CheckKeyType checkType, struct ExpectParamsValues… in GetExpectParams()
1221 const struct HksBlob *inData, const struct HksBlob *outData, uint32_t alg) in CheckBlockCipherData()
1407 int32_t HksCheckGenKeyPurpose(uint32_t alg, uint32_t inputPurpose) in HksCheckGenKeyPurpose()
1436 int32_t HksGetKeySize(uint32_t alg, const struct HksBlob *key, uint32_t *keySize) in HksGetKeySize()
1478 int32_t HksGetInputParmasByAlg(uint32_t alg, enum CheckKeyType checkType, const struct HksParamSet … in HksGetInputParmasByAlg()
1519 int32_t HksCheckOptionalParam(uint32_t tag, uint32_t alg, uint32_t purpose, bool isAbsent, struct H… in HksCheckOptionalParam()
1562 int32_t HksCheckFixedParams(uint32_t alg, enum CheckKeyType checkType, const struct ParamsValues *i… in HksCheckFixedParams()
[all …]
Dhks_crypto_adapter.c555 int32_t HksSetKeyToMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *key, struct HksBlob … in HksSetKeyToMaterial()
581 int32_t HksGetKeyFromMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *keyMaterial, struc… in HksGetKeyFromMaterial()
593 int32_t HksFormatKeyFromMaterial(uint32_t alg, const struct HksBlob *keyMaterial, in HksFormatKeyFromMaterial()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_service_three_stage.c161 const uint32_t alg = usageSpec->algType; in CheckBlockCipherData() local
180 uint32_t alg = usageSpec.algType; in HksCheckFinishOutSize() local
387 static int32_t CoreHashInit(const struct HuksKeyNode *keyNode, uint32_t alg) in CoreHashInit()
576 struct HksBlob *outData, uint32_t alg) in CoreCipherUpdate()
605 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg) in CoreAesEncryptFinish()
634 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg) in CoreAesDecryptFinish()
671 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg) in CoreSm4EncryptFinish()
695 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg) in CoreSm4DecryptFinish()
761 static void FreeCryptoCtx(const struct HuksKeyNode *keyNode, uint32_t alg) in FreeCryptoCtx()
852 uint32_t alg) in HksCoreSignVerifyThreeStageInit()
[all …]
Dhks_core_service.c509 uint32_t alg = HKS_ALG_X25519; in AddAgreeKeyParamSetFromUnwrapSuite() local
957 static int32_t GetCurve25519PrivateOrPairInnerFormat(uint8_t alg, uint32_t keyType, in GetCurve25519PrivateOrPairInnerFormat()
1319 …ic int32_t GetPurposeAndAlgorithm(const struct HksParamSet *paramSet, uint32_t *pur, uint32_t *alg) in GetPurposeAndAlgorithm()
1383 uint32_t alg = 0; in HksCoreInit() local
1432 struct HuksKeyNode **keyNode, uint32_t *pur, uint32_t *alg) in GetParamsForUpdateAndFinish()
1458 uint32_t alg = 0; in HksCoreUpdate() local
1512 uint32_t alg = 0; in HksCoreFinish() local
1566 uint32_t alg = 0; in HksCoreAbort() local
Dhks_auth.c65 static int32_t OptionalParamCheck(uint32_t authTag, uint32_t alg, uint32_t purpose, const struct Hk… in OptionalParamCheck()
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/
Dpake_protocol_ec_common.c91 Algorithm alg = (params->curveType == CURVE_256) ? P256 : X25519; in GenerateEcPakeParams() local
121 Algorithm alg = (params->curveType == CURVE_256) ? P256 : X25519; in AgreeEcSharedSecret() local
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_import_agree_test.cpp665 static void ModifyImportParams(uint32_t alg, uint32_t keySize, uint32_t importType) in ModifyImportParams()
672 static void ModifyinitOpParams(uint32_t alg, uint32_t keySize) in ModifyinitOpParams()
702 uint32_t alg, uint32_t keySize, uint32_t importType, struct HksBlob *outKey) in ConstructCurve25519Key()
851 static int32_t ConstructImportedCurve25519Key(uint32_t id, uint32_t alg, uint32_t keySize, uint32_t… in ConstructImportedCurve25519Key()
983 static int32_t ConstructImportedKey(uint32_t id, uint32_t alg, uint32_t keySize, uint32_t importTyp… in ConstructImportedKey()
1065 static int32_t ConstructAgreePubKey(uint32_t alg, uint32_t keySize, uint32_t id, struct HksBlob *pu… in ConstructAgreePubKey()
1135 uint32_t alg, uint32_t keySize) in TestAgreeOp()
1175 static void TestImportKey(uint32_t alg, uint32_t keySize, uint32_t importType) in TestImportKey()
1197 static void ImportAgreeTest(uint32_t alg, uint32_t keySize) in ImportAgreeTest()
Dhks_import_sign_verify_test.cpp373 static int32_t CopyToInner(uint32_t alg, uint32_t importType, struct HksBlob *outKey) in CopyToInner()
387 static int32_t ConstructImportedCurve25519Key(uint32_t alg, uint32_t keySize, uint32_t importType, in ConstructImportedCurve25519Key()
729 static int32_t ConstructImportedKey(uint32_t alg, uint32_t keySize, uint32_t importType, struct Hks… in ConstructImportedKey()
744 static void ModifyImportParams(uint32_t alg, uint32_t purpose, uint32_t keySize, uint32_t digest, u… in ModifyImportParams()
753 static void ModifyinitOp1Params(uint32_t alg, uint32_t purpose, uint32_t keySize, uint32_t digest) in ModifyinitOp1Params()
761 static void ModifyinitOp2Params(uint32_t alg, uint32_t purpose, uint32_t keySize, uint32_t digest) in ModifyinitOp2Params()
893 static void ImportPlainKeyTest(uint32_t alg, uint32_t keySize, uint32_t digest) in ImportPlainKeyTest()
Dhks_access_control_secure_sign_test.cpp659 … int32_t BuildImportKeyTestParams(struct HksTestSecureSignImportParams *importParams, uint32_t alg, in BuildImportKeyTestParams()
702 uint32_t alg, bool isThreeStage) in BuildUpdateFinishParams()
737 uint32_t alg, bool isThreeStage, struct HksBlob *inData, struct HksBlob *signature) in BuildUpdateFinishVerifyParams()
995 static void TestImportKeyWithSignTagAndTestUseKeyCommonCase(uint32_t alg, bool isThreeStage, in TestImportKeyWithSignTagAndTestUseKeyCommonCase()
Dhks_import_wrapped_x25519_suite_test.cpp303 uint32_t alg, uint32_t keySize, uint32_t importType, struct HksBlob *outKey) in ConstructCurve25519Key()
343 … static int32_t ConstructImportedCurve25519Key(uint32_t alg, uint32_t keySize, uint32_t importType, in ConstructImportedCurve25519Key()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_hash.c47 static int32_t HksMbedtlsHashMd5Init(void **ctx, uint32_t alg) in HksMbedtlsHashMd5Init()
131 static int32_t HksMbedtlsHashSha1Init(void **ctx, uint32_t alg) in HksMbedtlsHashSha1Init()
221 static int32_t HksMbedtlsHashSha256Init(void **ctx, int is224, uint32_t alg) in HksMbedtlsHashSha256Init()
319 static int32_t HksMbedtlsHashSha512Init(void **ctx, int is384, uint32_t alg) in HksMbedtlsHashSha512Init()
603 int32_t HksMbedtlsHash(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HksMbedtlsHash()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_hmac_helper.c44 static const EVP_MD *GetAlg(uint32_t alg) in GetAlg()
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
Dcommon_standard_bind_exchange.c97 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in PackageAuthInfo() local
181 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in GenerateSignInfo() local
347 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in VerifySignInfo() local
372 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in SaveAuthInfo() local
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_common.c51 static int32_t TranslateToInnerCurve25519Format(const uint32_t alg, const struct HksBlob *key, in TranslateToInnerCurve25519Format()
Dhks_client_service_adapter.c141const uint32_t alg, uint32_t keySize, const struct HksBlob *x, const struct HksBlob *y, struct Hks… in EccToX509PublicKey()
467 static int32_t EcKeyToPublicKey(const uint32_t alg, EC_KEY *ecKey, struct HksBlob *eccPublicKey) in EcKeyToPublicKey()
522 static int32_t X509PublicKeyToEcc(const uint32_t alg, EVP_PKEY *pkey, struct HksBlob *eccPublicKey) in X509PublicKeyToEcc()
640 int32_t TranslateFromX509PublicKey(const uint32_t alg, const struct HksBlob *x509Key, struct HksBlo… in TranslateFromX509PublicKey()
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Dopenssl_common.c93 const EVP_MD *GetOpensslDigestAlg(uint32_t alg) in GetOpensslDigestAlg()
/base/security/huks/test/unittest/huks_lite_test/common/include/
Dhks_test_common.h51 uint32_t alg; member
80 uint32_t alg; member
93 uint32_t alg; member
123 uint32_t alg; member
141 uint32_t alg; member
291 uint32_t alg; member
302 uint32_t alg; member
321 uint32_t alg; member
353 uint32_t alg; member
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/include/
Dhks_test_common.h63 uint32_t alg; member
92 uint32_t alg; member
105 uint32_t alg; member
135 uint32_t alg; member
153 uint32_t alg; member
303 uint32_t alg; member
314 uint32_t alg; member
333 uint32_t alg; member
365 uint32_t alg; member
/base/security/device_auth/services/authenticators/src/account_unrelated/
Ddas_version_util.c27 uint32_t alg; member
/base/security/certificate_manager/test/unittest/src/
Dcm_finish_test.cpp64 static void TestInstallAppCert(uint32_t alg) in TestInstallAppCert()
128 static void TestSignVerify(uint32_t alg, bool isValidSignature, struct CmSignatureSpec *spec) in TestSignVerify()

12