Home
last modified time | relevance | path

Searched defs:paramsSpec (Results 1 – 25 of 26) sorted by relevance

12

/base/security/crypto_framework/frameworks/key/
Dasy_key_generator.c64 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/
Dcrypto_mac.c29 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/
Ddh_asy_key_generator_openssl.c241 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 …]
Ddsa_asy_key_generator_openssl.c218 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 …]
Dalg_25519_asy_key_generator_openssl.c237 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()
Drsa_asy_key_generator_openssl.c1264 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()
Dsm2_asy_key_generator_openssl.c523 static HcfResult GetSm2PriKeyEncodedPem(const HcfPriKey *self, HcfParamsSpec *paramsSpec, const cha… in GetSm2PriKeyEncodedPem()
/base/security/crypto_framework/frameworks/spi/
Ddh_key_util_spi.h26 HcfDhCommParamsSpec paramsSpec; member
Decc_key_util_spi.h26 HcfEccCommParamsSpec paramsSpec; member
/base/security/crypto_framework/frameworks/crypto_operation/
Dmac.c170 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()
Dkdf.c132 static HcfResult GenerateSecret(HcfKdf *self, HcfKdfParamsSpec *paramsSpec) in GenerateSecret()
/base/security/crypto_framework/frameworks/cj/src/
Dkdf_impl.cpp36 int32_t KdfImpl::GenerateSecret(HcfKdfParamsSpec *paramsSpec) in GenerateSecret()
Dcrypto_ffi.cpp399 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/
Dnapi_pri_key.cpp45 static void FreeEncodeParamsSpec(HcfParamsSpec *paramsSpec) in FreeEncodeParamsSpec()
124 HcfParamsSpec **paramsSpec, NapiPriKey **napiPriKey) in ValidateAndGetParams()
164 HcfParamsSpec *paramsSpec = nullptr; in JsGetEncodedPem() local
Dnapi_mac.cpp669 …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
Dnapi_cipher.cpp46 HcfParamsSpec *paramsSpec = nullptr; member
57 static void FreeParamsSpec(HcfParamsSpec *paramsSpec) in FreeParamsSpec()
534 HcfParamsSpec *paramsSpec) in SyncInit()
582 HcfParamsSpec *paramsSpec = nullptr; in JsCipherInitSync() local
Dnapi_asy_key_generator.cpp142 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
Dnapi_kdf.cpp45 HcfKdfParamsSpec *paramsSpec = nullptr; member
659 static napi_value NewKdfJsGenSecretSyncWork(napi_env env, HcfKdfParamsSpec *paramsSpec) in NewKdfJsGenSecretSyncWork()
706 HcfKdfParamsSpec *paramsSpec = nullptr; in JsKdfGenerateSecretSync() local
Dnapi_utils.cpp398 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/
Dmac_openssl.c185 HcfResult OpensslHmacSpiCreate(HcfMacParamsSpec *paramsSpec, HcfMacSpi **spiObj) in OpensslHmacSpiCreate()
321 HcfResult OpensslCmacSpiCreate(HcfMacParamsSpec *paramsSpec, HcfMacSpi **spiObj) in OpensslCmacSpiCreate()
/base/security/crypto_framework/test/unittest/src/
Dcrypto_ed25519_asy_key_generator_by_spec_test.cpp492 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable
521 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable
550 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable
Dcrypto_x25519_asy_key_generator_by_spec_test.cpp432 HcfAsyKeyParamsSpec *paramsSpec = nullptr; variable
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/kdf/src/
Dpbkdf2_openssl.c203 static HcfResult EngineGenerateSecret(HcfKdfSpi *self, HcfKdfParamsSpec *paramsSpec) in EngineGenerateSecret()
Dscrypt_openssl.c223 static HcfResult EngineGenerateSecret(HcfKdfSpi *self, HcfKdfParamsSpec *paramsSpec) in EngineGenerateSecret()
Dhkdf_openssl.c289 static HcfResult EngineGenerateSecret(HcfKdfSpi *self, HcfKdfParamsSpec *paramsSpec) in EngineGenerateSecret()

12