| /base/security/crypto_framework/frameworks/key/ |
| D | asy_key_generator.c | 64 HcfAsyKeyParamsSpec *paramsSpec; member 135 static bool IsDsaCommParamsSpecValid(HcfDsaCommParamsSpec *paramsSpec) in IsDsaCommParamsSpecValid() 152 static bool IsDsaPubKeySpecValid(HcfDsaPubKeyParamsSpec *paramsSpec) in IsDsaPubKeySpecValid() 164 static bool IsDsaKeyPairSpecValid(HcfDsaKeyPairParamsSpec *paramsSpec) in IsDsaKeyPairSpecValid() 180 static bool IsDsaParamsSpecValid(const HcfAsyKeyParamsSpec *paramsSpec) in IsDsaParamsSpecValid() 200 static bool IsDhCommParamsSpecValid(HcfDhCommParamsSpec *paramsSpec) in IsDhCommParamsSpecValid() 213 static bool IsDhPriKeySpecValid(HcfDhPriKeyParamsSpec *paramsSpec) in IsDhPriKeySpecValid() 225 static bool IsDhPubKeySpecValid(HcfDhPubKeyParamsSpec *paramsSpec) in IsDhPubKeySpecValid() 237 static bool IsDhKeyPairSpecValid(HcfDhKeyPairParamsSpec *paramsSpec) in IsDhKeyPairSpecValid() 253 static bool IsDhParamsSpecValid(const HcfAsyKeyParamsSpec *paramsSpec) in IsDhParamsSpecValid() [all …]
|
| /base/security/crypto_framework/frameworks/native/src/ |
| D | crypto_mac.c | 29 HcfMacParamsSpec *paramsSpec; member 45 HcfMacParamsSpec *paramsSpec = NULL; in OH_CryptoMac_Create() local 71 static OH_Crypto_ErrCode SetCmacParam(HcfCmacParamsSpec *paramsSpec, CryptoMac_ParamType type, in SetCmacParam() 91 static OH_Crypto_ErrCode SetHmacParam(HcfHmacParamsSpec *paramsSpec, CryptoMac_ParamType type, in SetHmacParam()
|
| /base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
| D | dh_asy_key_generator_openssl.c | 241 static HcfResult GetDhPriKeyEncodedPem(const HcfPriKey *self, HcfParamsSpec *paramsSpec, const char… in GetDhPriKeyEncodedPem() 645 static HcfResult ConvertCommSpec2Bn(const HcfDhCommParamsSpec *paramsSpec, BIGNUM **p, BIGNUM **g) in ConvertCommSpec2Bn() 660 static HcfResult CreateOpensslDhKey(const HcfDhCommParamsSpec *paramsSpec, BIGNUM *pk, BIGNUM *sk, … in CreateOpensslDhKey() 704 static HcfResult GenerateOpensslDhKeyByCommSpec(const HcfDhCommParamsSpec *paramsSpec, DH **returnD… in GenerateOpensslDhKeyByCommSpec() 721 static HcfResult GenerateOpensslDhKeyByPubKeySpec(const HcfDhPubKeyParamsSpec *paramsSpec, DH **ret… in GenerateOpensslDhKeyByPubKeySpec() 737 static HcfResult GenerateOpensslDhKeyByPriKeySpec(const HcfDhPriKeyParamsSpec *paramsSpec, DH **ret… in GenerateOpensslDhKeyByPriKeySpec() 753 static HcfResult GenerateOpensslDhKeyByKeyPairSpec(const HcfDhKeyPairParamsSpec *paramsSpec, DH **r… in GenerateOpensslDhKeyByKeyPairSpec() 775 static HcfResult CreateDhKeyPairByCommSpec(const HcfDhCommParamsSpec *paramsSpec, HcfKeyPair **retu… in CreateDhKeyPairByCommSpec() 817 static HcfResult CreateDhPubKeyByKeyPairSpec(const HcfDhKeyPairParamsSpec *paramsSpec, in CreateDhPubKeyByKeyPairSpec() 833 static HcfResult CreateDhPriKeyByKeyPairSpec(const HcfDhKeyPairParamsSpec *paramsSpec, in CreateDhPriKeyByKeyPairSpec() [all …]
|
| D | dsa_asy_key_generator_openssl.c | 218 static HcfResult GetDsaPriKeyEncodedPem(const HcfPriKey *self, HcfParamsSpec *paramsSpec, const cha… in GetDsaPriKeyEncodedPem() 568 static HcfResult ConvertCommSpec2Bn(const HcfDsaCommParamsSpec *paramsSpec, BIGNUM **p, BIGNUM **q,… in ConvertCommSpec2Bn() 591 static HcfResult CreateOpensslDsaKey(const HcfDsaCommParamsSpec *paramsSpec, BIGNUM *pk, BIGNUM *sk… in CreateOpensslDsaKey() 627 static HcfResult GenerateOpensslDsaKeyByCommSpec(const HcfDsaCommParamsSpec *paramsSpec, DSA **retu… in GenerateOpensslDsaKeyByCommSpec() 643 static HcfResult GenerateOpensslDsaKeyByPubKeySpec(const HcfDsaPubKeyParamsSpec *paramsSpec, DSA **… in GenerateOpensslDsaKeyByPubKeySpec() 658 static HcfResult GenerateOpensslDsaKeyByKeyPairSpec(const HcfDsaKeyPairParamsSpec *paramsSpec, DSA … in GenerateOpensslDsaKeyByKeyPairSpec() 679 static HcfResult CreateDsaKeyPairByCommSpec(const HcfDsaCommParamsSpec *paramsSpec, HcfKeyPair **re… in CreateDsaKeyPairByCommSpec() 717 static HcfResult CreateDsaPubKeyByKeyPairSpec(const HcfDsaKeyPairParamsSpec *paramsSpec, in CreateDsaPubKeyByKeyPairSpec() 731 static HcfResult CreateDsaPriKeyByKeyPairSpec(const HcfDsaKeyPairParamsSpec *paramsSpec, in CreateDsaPriKeyByKeyPairSpec() 745 static HcfResult CreateDsaKeyPairByKeyPairSpec(const HcfDsaKeyPairParamsSpec *paramsSpec, HcfKeyPai… in CreateDsaKeyPairByKeyPairSpec() [all …]
|
| D | alg_25519_asy_key_generator_openssl.c | 237 static HcfResult GetAlg25519PriKeyEncodedPem(const HcfPriKey *self, HcfParamsSpec *paramsSpec, cons… in GetAlg25519PriKeyEncodedPem() 981 static HcfResult CreateAlg25519PubKeyByKeyPairSpec(const HcfAlg25519KeyPairParamsSpec *paramsSpec, in CreateAlg25519PubKeyByKeyPairSpec() 997 static HcfResult CreateAlg25519PriKeyByKeyPairSpec(const HcfAlg25519KeyPairParamsSpec *paramsSpec, in CreateAlg25519PriKeyByKeyPairSpec() 1013 static HcfResult CreateAlg25519KeyPairByKeyPairSpec(const HcfAlg25519KeyPairParamsSpec *paramsSpec, in CreateAlg25519KeyPairByKeyPairSpec() 1043 static HcfResult CreateAlg25519PubKeyByPubKeySpec(const HcfAlg25519PubKeyParamsSpec *paramsSpec, in CreateAlg25519PubKeyByPubKeySpec() 1059 static HcfResult CreateAlg25519PriKeyByPriKeySpec(const HcfAlg25519PriKeyParamsSpec *paramsSpec, in CreateAlg25519PriKeyByPriKeySpec() 1076 const HcfAsyKeyParamsSpec *paramsSpec, HcfPubKey **returnPubKey) in EngineGenerateAlg25519PubKeyBySpec() 1110 const HcfAsyKeyParamsSpec *paramsSpec, HcfPriKey **returnPriKey) in EngineGenerateAlg25519PriKeyBySpec() 1144 const HcfAsyKeyParamsSpec *paramsSpec, HcfKeyPair **returnKeyPair) in EngineGenerateAlg25519KeyPairBySpec()
|
| D | rsa_asy_key_generator_openssl.c | 1264 static HcfResult ParseRsaBnFromBin(const HcfAsyKeyParamsSpec *paramsSpec, BIGNUM **n, in ParseRsaBnFromBin() 1299 static RSA *InitRsaStructByBin(const HcfAsyKeyParamsSpec *paramsSpec) in InitRsaStructByBin() 1333 static HcfResult GenerateKeyPairBySpec(const HcfAsyKeyParamsSpec *paramsSpec, HcfKeyPair **keyPair) in GenerateKeyPairBySpec() 1390 static HcfResult GeneratePubKeyBySpec(const HcfAsyKeyParamsSpec *paramsSpec, HcfPubKey **pubKey) in GeneratePubKeyBySpec() 1417 static HcfResult GeneratePriKeyBySpec(const HcfAsyKeyParamsSpec *paramsSpec, HcfPriKey **priKey) in GeneratePriKeyBySpec() 1437 const HcfAsyKeyParamsSpec *paramsSpec, HcfKeyPair **returnKeyPair) in EngineGenerateKeyPairBySpec() 1459 const HcfAsyKeyParamsSpec *paramsSpec, HcfPubKey **returnPubKey) in EngineGeneratePubKeyBySpec() 1481 const HcfAsyKeyParamsSpec *paramsSpec, HcfPriKey **returnPriKey) in EngineGeneratePriKeyBySpec()
|
| D | sm2_asy_key_generator_openssl.c | 523 static HcfResult GetSm2PriKeyEncodedPem(const HcfPriKey *self, HcfParamsSpec *paramsSpec, const cha… in GetSm2PriKeyEncodedPem()
|
| /base/security/crypto_framework/frameworks/spi/ |
| D | dh_key_util_spi.h | 26 HcfDhCommParamsSpec paramsSpec; member
|
| D | ecc_key_util_spi.h | 26 HcfEccCommParamsSpec paramsSpec; member
|
| /base/security/crypto_framework/frameworks/crypto_operation/ |
| D | mac.c | 170 static HcfResult HandleCmacAlgo(HcfMacImpl *macImpl, const HcfMacParamsSpec *paramsSpec, in HandleCmacAlgo() 187 static HcfResult HandleHmacAlgo(HcfMacImpl *macImpl, const HcfMacParamsSpec *paramsSpec, in HandleHmacAlgo() 199 HcfResult HcfMacCreate(HcfMacParamsSpec *paramsSpec, HcfMac **mac) in HcfMacCreate()
|
| D | kdf.c | 132 static HcfResult GenerateSecret(HcfKdf *self, HcfKdfParamsSpec *paramsSpec) in GenerateSecret()
|
| /base/security/crypto_framework/frameworks/cj/src/ |
| D | kdf_impl.cpp | 36 int32_t KdfImpl::GenerateSecret(HcfKdfParamsSpec *paramsSpec) in GenerateSecret()
|
| D | crypto_ffi.cpp | 399 HcfParamsSpec *paramsSpec = reinterpret_cast<HcfParamsSpec *>(ivParamsSpec); in FfiOHOSCipherInitByIv() local 442 HcfParamsSpec *paramsSpec = reinterpret_cast<HcfParamsSpec *>(gcmParamsSpec); in FfiOHOSCipherInitByGcm() local 486 HcfParamsSpec *paramsSpec = reinterpret_cast<HcfParamsSpec *>(ccmParamsSpec); in FfiOHOSCipherInitByCcm() local 508 HcfParamsSpec *paramsSpec = nullptr; in FfiOHOSCipherInitWithOutParams() local 604 HcfHmacParamsSpec paramsSpec = {}; in FFiOHOSCryptoMacConstructor() local 1388 HcfParamsSpec *paramsSpec = nullptr; in FFiOHOSPriKeyGetEncodedPem() local
|
| /base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
| D | napi_pri_key.cpp | 45 static void FreeEncodeParamsSpec(HcfParamsSpec *paramsSpec) in FreeEncodeParamsSpec() 124 HcfParamsSpec **paramsSpec, NapiPriKey **napiPriKey) in ValidateAndGetParams() 164 HcfParamsSpec *paramsSpec = nullptr; in JsGetEncodedPem() local
|
| D | napi_mac.cpp | 669 …GetHmacParamsSpec(napi_env env, napi_value arg, const char *algName, HcfMacParamsSpec **paramsSpec) in GetHmacParamsSpec() 715 …GetCmacParamsSpec(napi_env env, napi_value arg, const char *algName, HcfMacParamsSpec **paramsSpec) in GetCmacParamsSpec() 793 static bool GetStringMacParams(napi_env env, napi_value argv, HcfMacParamsSpec **paramsSpec) in GetStringMacParams() 827 static bool SetparamsSpec(napi_env env, napi_value argv, HcfMacParamsSpec **paramsSpec) in SetparamsSpec() 859 HcfMacParamsSpec *paramsSpec = nullptr; in CreateMac() local
|
| D | napi_cipher.cpp | 46 HcfParamsSpec *paramsSpec = nullptr; member 57 static void FreeParamsSpec(HcfParamsSpec *paramsSpec) in FreeParamsSpec() 534 HcfParamsSpec *paramsSpec) in SyncInit() 582 HcfParamsSpec *paramsSpec = nullptr; in JsCipherInitSync() local
|
| D | napi_asy_key_generator.cpp | 142 static void FreeDecodeParamsSpec(HcfParamsSpec *paramsSpec) in FreeDecodeParamsSpec() 347 HcfParamsSpec **paramsSpec) in ValidateAndGetParams() 389 HcfParamsSpec *paramsSpec = nullptr; in BuildConvertPemKeyCtx() local 893 HcfParamsSpec *paramsSpec, HcfKeyPair **returnKeyPair) in ConvertPemKeySync() 918 HcfParamsSpec *paramsSpec = nullptr; in JsConvertPemKeySync() local
|
| D | napi_kdf.cpp | 45 HcfKdfParamsSpec *paramsSpec = nullptr; member 659 static napi_value NewKdfJsGenSecretSyncWork(napi_env env, HcfKdfParamsSpec *paramsSpec) in NewKdfJsGenSecretSyncWork() 706 HcfKdfParamsSpec *paramsSpec = nullptr; in JsKdfGenerateSecretSync() local
|
| D | napi_utils.cpp | 398 static bool GetIvParamsSpec(napi_env env, napi_value arg, HcfParamsSpec **paramsSpec) in GetIvParamsSpec() 438 …ol GetGcmParamsSpec(napi_env env, napi_value arg, HcfCryptoMode opMode, HcfParamsSpec **paramsSpec) in GetGcmParamsSpec() 493 …ol GetCcmParamsSpec(napi_env env, napi_value arg, HcfCryptoMode opMode, HcfParamsSpec **paramsSpec) in GetCcmParamsSpec() 547 …msSpecFromNapiValue(napi_env env, napi_value arg, HcfCryptoMode opMode, HcfParamsSpec **paramsSpec) in GetParamsSpecFromNapiValue()
|
| /base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/hmac/src/ |
| D | mac_openssl.c | 185 HcfResult OpensslHmacSpiCreate(HcfMacParamsSpec *paramsSpec, HcfMacSpi **spiObj) in OpensslHmacSpiCreate() 321 HcfResult OpensslCmacSpiCreate(HcfMacParamsSpec *paramsSpec, HcfMacSpi **spiObj) in OpensslCmacSpiCreate()
|
| /base/security/crypto_framework/test/unittest/src/ |
| D | crypto_ed25519_asy_key_generator_by_spec_test.cpp | 492 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable 521 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable 550 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable
|
| D | crypto_x25519_asy_key_generator_by_spec_test.cpp | 432 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable
|
| /base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/kdf/src/ |
| D | pbkdf2_openssl.c | 203 static HcfResult EngineGenerateSecret(HcfKdfSpi *self, HcfKdfParamsSpec *paramsSpec) in EngineGenerateSecret()
|
| D | scrypt_openssl.c | 223 static HcfResult EngineGenerateSecret(HcfKdfSpi *self, HcfKdfParamsSpec *paramsSpec) in EngineGenerateSecret()
|
| D | hkdf_openssl.c | 289 static HcfResult EngineGenerateSecret(HcfKdfSpi *self, HcfKdfParamsSpec *paramsSpec) in EngineGenerateSecret()
|