Home
last modified time | relevance | path

Searched refs:returnGenerator (Results 1 – 5 of 5) sorted by relevance

/base/security/crypto_framework/frameworks/crypto_operation/
Dkey_agreement.c171 …HcfKeyAgreementImpl *returnGenerator = (HcfKeyAgreementImpl *)HcfMalloc(sizeof(HcfKeyAgreementImpl… in HcfKeyAgreementCreate() local
172 if (returnGenerator == NULL) { in HcfKeyAgreementCreate()
176 if (strcpy_s(returnGenerator->algoName, HCF_MAX_ALGO_NAME_LEN, algoName) != EOK) { in HcfKeyAgreementCreate()
178 HcfFree(returnGenerator); in HcfKeyAgreementCreate()
185 HcfFree(returnGenerator); in HcfKeyAgreementCreate()
188 returnGenerator->base.base.destroy = DestroyKeyAgreement; in HcfKeyAgreementCreate()
189 returnGenerator->base.base.getClass = GetKeyAgreementClass; in HcfKeyAgreementCreate()
190 returnGenerator->base.generateSecret = GenerateSecret; in HcfKeyAgreementCreate()
191 returnGenerator->base.getAlgoName = GetAlgoName; in HcfKeyAgreementCreate()
192 returnGenerator->spiObj = spiObj; in HcfKeyAgreementCreate()
[all …]
Dcipher.c359 CipherGenImpl *returnGenerator = (CipherGenImpl *)HcfMalloc(sizeof(CipherGenImpl), 0); in HcfCipherCreate() local
360 if (returnGenerator == NULL) { in HcfCipherCreate()
364 if (strcpy_s(returnGenerator->algoName, HCF_MAX_ALGO_NAME_LEN, transformation) != EOK) { in HcfCipherCreate()
366 HcfFree(returnGenerator); in HcfCipherCreate()
373 HcfFree(returnGenerator); in HcfCipherCreate()
376 returnGenerator->spiObj = spiObj; in HcfCipherCreate()
377 InitCipher(spiObj, returnGenerator); in HcfCipherCreate()
379 *returnObj = (HcfCipher *)returnGenerator; in HcfCipherCreate()
/base/security/crypto_framework/frameworks/key/
Dsym_key_generator.c200 …HcfSymmKeyGeneratorImpl *returnGenerator = (HcfSymmKeyGeneratorImpl *)HcfMalloc(sizeof(HcfSymmKeyG… in HcfSymKeyGeneratorCreate() local
201 if (returnGenerator == NULL) { in HcfSymKeyGeneratorCreate()
205 if (strcpy_s(returnGenerator->algoName, HCF_MAX_ALGO_NAME_LEN, algoName)) { in HcfSymKeyGeneratorCreate()
207 HcfFree(returnGenerator); in HcfSymKeyGeneratorCreate()
214 HcfFree(returnGenerator); in HcfSymKeyGeneratorCreate()
217 returnGenerator->base.generateSymKey = GenerateSymmKey; in HcfSymKeyGeneratorCreate()
218 returnGenerator->base.convertSymKey = ConvertSymmKey; in HcfSymKeyGeneratorCreate()
219 returnGenerator->base.base.destroy = DestroySymmKeyGenerator; in HcfSymKeyGeneratorCreate()
220 returnGenerator->base.base.getClass = GetSymKeyGeneratorClass; in HcfSymKeyGeneratorCreate()
221 returnGenerator->base.getAlgoName = GetAlgoName; in HcfSymKeyGeneratorCreate()
[all …]
Dasy_key_generator.c1051 …HcfAsyKeyGeneratorImpl *returnGenerator = (HcfAsyKeyGeneratorImpl *)HcfMalloc(sizeof(HcfAsyKeyGene… in HcfAsyKeyGeneratorCreate() local
1052 if (returnGenerator == NULL) { in HcfAsyKeyGeneratorCreate()
1056 if (strcpy_s(returnGenerator->algoName, HCF_MAX_ALGO_NAME_LEN, algoName) != EOK) { in HcfAsyKeyGeneratorCreate()
1058 HcfFree(returnGenerator); in HcfAsyKeyGeneratorCreate()
1066 HcfFree(returnGenerator); in HcfAsyKeyGeneratorCreate()
1069 returnGenerator->base.base.destroy = DestroyAsyKeyGenerator; in HcfAsyKeyGeneratorCreate()
1070 returnGenerator->base.base.getClass = GetAsyKeyGeneratorClass; in HcfAsyKeyGeneratorCreate()
1071 returnGenerator->base.convertKey = ConvertKey; in HcfAsyKeyGeneratorCreate()
1072 returnGenerator->base.generateKeyPair = GenerateKeyPair; in HcfAsyKeyGeneratorCreate()
1073 returnGenerator->base.getAlgoName = GetAlgoName; in HcfAsyKeyGeneratorCreate()
[all …]
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
Dsym_key_openssl.c327 … HcfSymKeyGeneratorSpiOpensslImpl *returnGenerator = (HcfSymKeyGeneratorSpiOpensslImpl *)HcfMalloc( in HcfSymKeyGeneratorSpiCreate() local
329 if (returnGenerator == NULL) { in HcfSymKeyGeneratorSpiCreate()
333 (void)memcpy_s(&returnGenerator->attr, sizeof(SymKeyAttr), attr, sizeof(SymKeyAttr)); in HcfSymKeyGeneratorSpiCreate()
334 returnGenerator->base.engineGenerateSymmKey = GenerateSymmKey; in HcfSymKeyGeneratorSpiCreate()
335 returnGenerator->base.engineConvertSymmKey = ConvertSymmKey; in HcfSymKeyGeneratorSpiCreate()
336 returnGenerator->base.base.destroy = DestroySymKeyGeneratorSpi; in HcfSymKeyGeneratorSpiCreate()
337 returnGenerator->base.base.getClass = GetSymKeyGeneratorClass; in HcfSymKeyGeneratorSpiCreate()
338 *generator = (HcfSymKeyGeneratorSpi *)returnGenerator; in HcfSymKeyGeneratorSpiCreate()