Home
last modified time | relevance | path

Searched refs:Algorithm (Results 1 – 17 of 17) sorted by relevance

/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/
Dalg_defs.h46 } Algorithm; typedef
114 typedef int32_t (*HashToPointFunc)(const Uint8Buff *hash, Algorithm algo, Uint8Buff *outEcPoint);
117 Algorithm algo, uint32_t sharedKeyLen, const Uint8Buff *sharedKeyAlias);
119 …32_t (*AgreeSharedSecretFunc)(const KeyParams *priKeyParams, const KeyBuff *pubKey, Algorithm algo,
125 …32_t (*GenerateKeyPairWithStorageFunc)(const KeyParams *keyParams, uint32_t keyLen, Algorithm algo,
128 typedef int32_t (*GenerateKeyPairFunc)(Algorithm algo, Uint8Buff *outPriKey, Uint8Buff *outPubKey);
132 typedef int32_t (*SignFunc)(const KeyParams *keyParams, const Uint8Buff *message, Algorithm algo,
135 typedef int32_t (*VerifyFunc)(const KeyParams *keyParams, const Uint8Buff *message, Algorithm algo,
138 …int32_t (*ImportPublicKeyFunc)(const KeyParams *keyParams, const Uint8Buff *pubKey, Algorithm algo,
141 typedef bool (*CheckEcPublicKeyFunc)(const Uint8Buff *pubKey, Algorithm algo);
/base/security/device_auth/deps_adapter/key_management_adapter/impl/inc/
Dhuks_adapter_utils.h123 int32_t ConstructAgreeWithStorageParams(struct HksParamSet **paramSet, uint32_t keyLen, Algorithm a…
129 int32_t ConstructAgreeParamSet(const KeyParams *keyParams, Algorithm algo, const Uint8Buff *sharedK…
131 int32_t ConstructGenerateKeyPairWithStorageParams(struct HksParamSet **paramSet, Algorithm algo,
134 int32_t ConstructGenerateKeyPairParams(struct HksParamSet **paramSet, Algorithm algo, uint32_t keyL…
138 Algorithm algo);
141 int32_t ConstructVerifyParams(struct HksParamSet **paramSet, const KeyParams *keyParams, Algorithm
144 int32_t ConstructImportPublicKeyParams(struct HksParamSet **paramSet, Algorithm algo, uint32_t keyL…
/base/security/device_auth/services/legacy/identity_manager/inc/
Didentity_defines.h98 Algorithm signAlg;
/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()
124 Algorithm alg = (params->curveType == CURVE_256) ? P256 : X25519; in AgreeEcSharedSecret()
/base/security/certificate_framework/
DREADME-en.md19 - Algorithm library adaptation layer: calls specific APIs of the OpenSSL or Mbed TLS algorithm li…
30 │ ├── adapter # Algorithm library adaptation layer
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
Dhuks_adapter.c564 static int32_t HashToPoint(const Uint8Buff *hash, Algorithm algo, Uint8Buff *outEcPoint) in HashToPoint()
649 Algorithm algo, uint32_t sharedKeyLen, const Uint8Buff *sharedKeyAlias) in AgreeSharedSecretWithStorage()
703 static int32_t AgreeSharedSecret(const KeyParams *priKeyParams, const KeyBuff *pubKey, Algorithm al… in AgreeSharedSecret()
738 static int32_t GenerateKeyPairWithStorage(const KeyParams *keyParams, uint32_t keyLen, Algorithm al… in GenerateKeyPairWithStorage()
806 static int32_t GenerateKeyPair(Algorithm algo, Uint8Buff *outPriKey, Uint8Buff *outPubKey) in GenerateKeyPair()
905 static int32_t Sign(const KeyParams *keyParams, const Uint8Buff *message, Algorithm algo, in Sign()
960 static int32_t Verify(const KeyParams *keyParams, const Uint8Buff *message, Algorithm algo, in Verify()
996 static int32_t ImportPublicKey(const KeyParams *keyParams, const Uint8Buff *pubKey, Algorithm algo, in ImportPublicKey()
1121 static bool CheckEcPublicKey(const Uint8Buff *pubKey, Algorithm algo) in CheckEcPublicKey()
Dhuks_adapter_utils.c734 int32_t ConstructAgreeWithStorageParams(struct HksParamSet **paramSet, uint32_t keyLen, Algorithm a… in ConstructAgreeWithStorageParams()
814 int32_t ConstructAgreeParamSet(const KeyParams *keyParams, Algorithm algo, const Uint8Buff *sharedK… in ConstructAgreeParamSet()
839 int32_t ConstructGenerateKeyPairWithStorageParams(struct HksParamSet **paramSet, Algorithm algo, in ConstructGenerateKeyPairWithStorageParams()
884 int32_t ConstructGenerateKeyPairParams(struct HksParamSet **paramSet, Algorithm algo, uint32_t keyL… in ConstructGenerateKeyPairParams()
944 Algorithm algo) in ConstructSignParams()
980 int32_t ConstructVerifyParams(struct HksParamSet **paramSet, const KeyParams *keyParams, Algorithm in ConstructVerifyParams()
1018 int32_t ConstructImportPublicKeyParams(struct HksParamSet **paramSet, Algorithm algo, uint32_t keyL… in ConstructImportPublicKeyParams()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
Dcommon_standard_bind_exchange.c101 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in GenerateKeyPairIfNotExist()
202 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in GenerateSignInfo()
382 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in VerifySignInfo()
420 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in SaveAuthInfo()
/base/security/device_auth/services/identity_service/src/
Didentity_operation.c293 static Algorithm GetAlgoFromCred(uint8_t algorithmType) in GetAlgoFromCred()
306 Credential *credential, KeyParams keyParams, Algorithm algo, ExtraInfo exInfo) in GenerateKeyValue()
330 Uint8Buff *keyValue, Algorithm algo, ExtraInfo exInfo, uint8_t subject) in ImportKeyValue()
366 Algorithm algo = GetAlgoFromCred(credential->algorithmType); in AddKeyValueToHuks()
1178 Algorithm algo = GetAlgoFromCred(credAlgo); in ComputeAndSavePskInner()
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
Dec_speke_protocol.c222 Algorithm algo; in EcSpekeCalBase()
281 Algorithm algo; in EcSpekeCalEpkSelf()
317 Algorithm algo = (params->curveType == CURVE_TYPE_256) ? P256 : X25519; in CheckEpkPeerValid()
329 Algorithm algo = (params->curveType == CURVE_TYPE_256) ? P256 : X25519; in CalP()
/base/startup/hvb/tools/
Dhvbtool.py61 class Algorithm(object): class
71 ALGORITHMS = {'SHA256_RSA3072': Algorithm(
79 'SHA256_RSA4096': Algorithm(
87 'SHA256_RSA2048': Algorithm(
95 'SM2': Algorithm(
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/creds_manager/
Ddas_standard_token_manager.c306 Algorithm alg = (params->baseParams.curveType == CURVE_256) ? P256 : ED25519; in ComputeAndSavePskInner()
/base/security/device_auth/services/legacy/identity_manager/src/
Didentity_cred.c61 static int32_t ConvertISAlgToCertAlg(uint32_t alg, Algorithm *returnAlg) in ConvertISAlgToCertAlg()
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_util.c630 peerCert->signAlg = (Algorithm)signAlg; in BuildPeerCertInfo()
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dpub_key_exchange.c240 Algorithm alg = ED25519; in ExportSelfPubKey()
/base/security/device_auth/test/unittest/deviceauth/source/
Didentity_manager_test.cpp343 Algorithm algType;
/base/security/device_auth/services/legacy/authenticators/src/account_related/creds_manager/
Dasy_token_manager.c409 Algorithm alg) in ImportServerPk()