Searched refs:sm2Key (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
H A D | cipher_sm2_openssl.c | 34 EC_KEY *sm2Key; member 70 impl->sm2Key = OpensslEcKeyDup(((HcfOpensslSm2PubKey *)key)->ecKey); in InitSm2Key() 73 impl->sm2Key = OpensslEcKeyDup(((HcfOpensslSm2PriKey *)key)->ecKey); in InitSm2Key() 78 if (impl->sm2Key == NULL) { in InitSm2Key() 163 …if (OpensslSm2CipherTextSize(impl->sm2Key, impl->sm2Digest, input->len, &textLen) != HCF_OPENSSL_S… in GetTextLen() 190 …ret = OpensslOsslSm2Encrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &t… in DoSm2EncryptAndDecrypt() 192 …ret = OpensslOsslSm2Decrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &t… in DoSm2EncryptAndDecrypt() 261 if (impl->sm2Key != NULL) { in EngineDestroySpiImpl() 262 OpensslEcKeyFree(impl->sm2Key); in EngineDestroySpiImpl() 263 impl->sm2Key = NULL; in EngineDestroySpiImpl()
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_import_sign_verify_test.cpp | 594 Sm2TestKeyData *sm2Key) in ConstructImportedSm2Key() argument 597 return CopyKey(sm2Key->pubData, sm2Key->pubSize, outKey); in ConstructImportedSm2Key() 604 material.xSize = isPriKey ? 0 : sm2Key->xSize; in ConstructImportedSm2Key() 605 material.ySize = isPriKey ? 0 : sm2Key->ySize; in ConstructImportedSm2Key() 606 material.zSize = sm2Key->zSize; in ConstructImportedSm2Key() 623 if (memcpy_s(data + offset, size - offset, sm2Key->xData, sm2Key->xSize) != EOK) { in ConstructImportedSm2Key() 630 if (memcpy_s(data + offset, size - offset, sm2Key->yData, sm2Key->ySize) != EOK) { in ConstructImportedSm2Key() 638 if (memcpy_s(data + offset, size - offset, sm2Key->zData, sm2Key->zSize) != EOK) { in ConstructImportedSm2Key()
|