| /base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
| D | alg_defs.h | 46 } 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/ |
| D | huks_adapter_utils.h | 123 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/ |
| D | identity_defines.h | 98 Algorithm signAlg;
|
| /base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/ |
| D | pake_protocol_ec_common.c | 91 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/ |
| D | README-en.md | 19 - 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/ |
| D | huks_adapter.c | 564 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()
|
| D | huks_adapter_utils.c | 734 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/ |
| D | common_standard_bind_exchange.c | 101 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/ |
| D | identity_operation.c | 293 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/ |
| D | ec_speke_protocol.c | 222 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/ |
| D | hvbtool.py | 61 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/ |
| D | das_standard_token_manager.c | 306 Algorithm alg = (params->baseParams.curveType == CURVE_256) ? P256 : ED25519; in ComputeAndSavePskInner()
|
| /base/security/device_auth/services/legacy/identity_manager/src/ |
| D | identity_cred.c | 61 static int32_t ConvertISAlgToCertAlg(uint32_t alg, Algorithm *returnAlg) in ConvertISAlgToCertAlg()
|
| /base/security/device_auth/services/session_manager/src/session/v2/ |
| D | dev_session_util.c | 630 peerCert->signAlg = (Algorithm)signAlg; in BuildPeerCertInfo()
|
| /base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/ |
| D | pub_key_exchange.c | 240 Algorithm alg = ED25519; in ExportSelfPubKey()
|
| /base/security/device_auth/test/unittest/deviceauth/source/ |
| D | identity_manager_test.cpp | 343 Algorithm algType;
|
| /base/security/device_auth/services/legacy/authenticators/src/account_related/creds_manager/ |
| D | asy_token_manager.c | 409 Algorithm alg) in ImportServerPk()
|