/ohos5.0/base/security/crypto_framework/test/unittest/src/sm2/ |
H A D | crypto_sm2_util_test.cpp | 86 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructCorrectSm2CipherTextSpec() 104 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructMissYErrorSm2CipherTextSpec() 120 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructMissXErrorSm2CipherTextSpec() 136 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructMissHashDataErrorSm2CipherTextSpec() 152 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructMissCipherDataErrorSm2CipherTextSpec() 169 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructLenErrorSm2CipherTextSpec() 187 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructLenZeroXSm2CipherTextSpec() 205 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructLenZeroYSm2CipherTextSpec() 223 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructLenZeroCipherDataSm2CipherTextSpec() 241 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructLenZeroHashDataSm2CipherTextSpec() [all …]
|
/ohos5.0/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfsm2create_fuzzer/ |
H A D | hcfsm2create_fuzzer.cpp | 64 …HcfResult ConstructCorrectSm2CipherTextXSpec(Sm2CipherTextSpec **spec, const uint8_t* data, size_t… in ConstructCorrectSm2CipherTextXSpec() 66 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructCorrectSm2CipherTextXSpec() 82 …HcfResult ConstructCorrectSm2CipherTextYSpec(Sm2CipherTextSpec **spec, const uint8_t* data, size_t… in ConstructCorrectSm2CipherTextYSpec() 84 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructCorrectSm2CipherTextYSpec() 100 …HcfResult ConstructCorrectSm2CipherTextSpec(Sm2CipherTextSpec **spec, const uint8_t* data, size_t … in ConstructCorrectSm2CipherTextSpec() 102 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in ConstructCorrectSm2CipherTextSpec() 125 Sm2CipherTextSpec *spec = nullptr; in TestHcfGenCipherTextBySpec() 150 Sm2CipherTextSpec *spec = nullptr; in TestHcfGenCipherTextByXSpec() 175 Sm2CipherTextSpec *spec = nullptr; in TestHcfGenCipherTextByYSpec() 199 Sm2CipherTextSpec *spec = nullptr; in TestHcfGetCipherTextSpec() [all …]
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
H A D | cipher_sm2_crypto_util_openssl.c | 26 static HcfResult BuildSm2Ciphertext(const Sm2CipherTextSpec *spec, struct Sm2CipherTextSt *sm2Text) in BuildSm2Ciphertext() 55 HcfResult HcfSm2SpecToAsn1(Sm2CipherTextSpec *spec, HcfBlob *output) in HcfSm2SpecToAsn1() 82 static HcfResult BuildSm2CiphertextSpec(struct Sm2CipherTextSt *sm2Text, Sm2CipherTextSpec *tempSpe… in BuildSm2CiphertextSpec() 122 HcfResult HcfAsn1ToSm2Spec(HcfBlob *input, Sm2CipherTextSpec **returnSpec) in HcfAsn1ToSm2Spec() 129 Sm2CipherTextSpec *tempSpec = (Sm2CipherTextSpec *)(HcfMalloc(sizeof(Sm2CipherTextSpec), 0)); in HcfAsn1ToSm2Spec()
|
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
H A D | napi_sm2_crypto_util.cpp | 44 static bool GetSm2CipherTextSpecFromNapiValue(napi_env env, napi_value arg, Sm2CipherTextSpec **ret… in GetSm2CipherTextSpecFromNapiValue() 50 …Sm2CipherTextSpec *tempSpec = static_cast<Sm2CipherTextSpec *>(HcfMalloc(sizeof(Sm2CipherTextSpec)… in GetSm2CipherTextSpecFromNapiValue() 121 Sm2CipherTextSpec *spec = nullptr; in JsGenCipherTextBySpec() 158 static bool CheckSm2CipherTextSpec(Sm2CipherTextSpec *spec) in CheckSm2CipherTextSpec() 194 static bool BuildSm2CipherTextSpecToNapiValue(napi_env env, Sm2CipherTextSpec *spec, napi_value *in… in BuildSm2CipherTextSpecToNapiValue() 215 static napi_value ConvertSm2CipherTextSpecToNapiValue(napi_env env, Sm2CipherTextSpec *spec) in ConvertSm2CipherTextSpecToNapiValue() 265 Sm2CipherTextSpec *returnSpec = nullptr; in JsGetCipherTextSpec()
|
/ohos5.0/base/security/crypto_framework/interfaces/innerkits/algorithm_parameter/ |
H A D | sm2_crypto_params.h | 22 typedef struct Sm2CipherTextSpec { struct 27 } Sm2CipherTextSpec; argument 33 void DestroySm2CipherTextSpec(Sm2CipherTextSpec *spec);
|
/ohos5.0/base/security/crypto_framework/frameworks/cj/src/ |
H A D | sm2_crypto_util_impl.cpp | 24 HcfBlob Sm2CryptoUtilImpl::GenCipherTextBySpec(Sm2CipherTextSpec spec, char *mode, int32_t *errCode) in GenCipherTextBySpec() 31 Sm2CipherTextSpec *Sm2CryptoUtilImpl::GetCipherTextSpec(HcfBlob input, char *mode, int32_t *errCode) in GetCipherTextSpec() 33 Sm2CipherTextSpec *returnSpec = nullptr; in GetCipherTextSpec()
|
H A D | crypto_ffi.cpp | 1806 …HcfBlob FFiOHOSSm2CryptoUtilGenCipherTextBySpec(Sm2CipherTextSpec spec, char *mode, int32_t *errCo… in FFiOHOSSm2CryptoUtilGenCipherTextBySpec() 1811 …Sm2CipherTextSpec *FFiOHOSSm2CryptoUtilGetCipherTextSpec(HcfBlob input, char *mode, int32_t *errCo… in FFiOHOSSm2CryptoUtilGetCipherTextSpec()
|
/ohos5.0/base/security/crypto_framework/frameworks/crypto_operation/ |
H A D | sm2_crypto_util.c | 25 typedef HcfResult (*HcfSm2SpecToASN1CreateFunc)(Sm2CipherTextSpec *spec, HcfBlob *output); 64 static bool CheckSm2CipherTextSpec(Sm2CipherTextSpec *spec) in CheckSm2CipherTextSpec() 93 HcfResult HcfGenCipherTextBySpec(Sm2CipherTextSpec *spec, const char *mode, HcfBlob *output) in HcfGenCipherTextBySpec() 115 HcfResult HcfGetCipherTextSpec(HcfBlob *input, const char *mode, Sm2CipherTextSpec **returnSpc) in HcfGetCipherTextSpec()
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/inc/ |
H A D | cipher_sm2_crypto_util_openssl.h | 26 HcfResult HcfSm2SpecToAsn1(Sm2CipherTextSpec *spec, HcfBlob *output); 27 HcfResult HcfAsn1ToSm2Spec(HcfBlob *input, Sm2CipherTextSpec **returnSpec);
|
/ohos5.0/base/security/crypto_framework/interfaces/innerkits/crypto_operation/ |
H A D | sm2_crypto_util.h | 36 HcfResult HcfGenCipherTextBySpec(Sm2CipherTextSpec *spec, const char *mode, HcfBlob *output); 47 HcfResult HcfGetCipherTextSpec(HcfBlob *input, const char *mode, Sm2CipherTextSpec **returnSpc);
|
/ohos5.0/base/security/crypto_framework/frameworks/cj/include/ |
H A D | sm2_crypto_util_impl.h | 26 static HcfBlob GenCipherTextBySpec(Sm2CipherTextSpec spec, char *mode, int32_t *errCode); 27 static Sm2CipherTextSpec *GetCipherTextSpec(HcfBlob input, char *mode, int32_t *errCode);
|
H A D | crypto_ffi.h | 190 …FFI_EXPORT HcfBlob FFiOHOSSm2CryptoUtilGenCipherTextBySpec(Sm2CipherTextSpec spec, char *mode, int… 191 …FFI_EXPORT Sm2CipherTextSpec *FFiOHOSSm2CryptoUtilGetCipherTextSpec(HcfBlob input, char *mode, int…
|
/ohos5.0/base/security/crypto_framework/common/src/ |
H A D | asy_key_params.c | 471 void DestroySm2CipherTextSpec(Sm2CipherTextSpec *spec) in DestroySm2CipherTextSpec()
|