Home
last modified time | relevance | path

Searched refs:tmpFieldType (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Dsm2_asy_key_generator_openssl.c752 char *tmpFieldType = NULL; in PackSm2PubKey() local
760 tmpFieldType = (char *)HcfMalloc(len + 1, 0); in PackSm2PubKey()
761 if (tmpFieldType == NULL) { in PackSm2PubKey()
766 (void)memcpy_s(tmpFieldType, len, fieldType, len); in PackSm2PubKey()
780 returnPubKey->fieldType = tmpFieldType; in PackSm2PubKey()
803 char *tmpFieldType = NULL; in PackSm2PriKey() local
811 tmpFieldType = (char *)HcfMalloc(len + 1, 0); in PackSm2PriKey()
812 if (tmpFieldType == NULL) { in PackSm2PriKey()
817 (void)memcpy_s(tmpFieldType, len, fieldType, len); in PackSm2PriKey()
832 returnPriKey->fieldType = tmpFieldType; in PackSm2PriKey()
H A Decc_asy_key_generator_openssl.c1570 char *tmpFieldType = NULL; in PackEccPubKey() local
1578 tmpFieldType = (char *)HcfMalloc(len + 1, 0); in PackEccPubKey()
1579 if (tmpFieldType == NULL) { in PackEccPubKey()
1584 (void)memcpy_s(tmpFieldType, len, fieldType, len); in PackEccPubKey()
1599 returnPubKey->fieldType = tmpFieldType; in PackEccPubKey()
1613 char *tmpFieldType = NULL; in PackEccPriKey() local
1621 tmpFieldType = (char *)HcfMalloc(len + 1, 0); in PackEccPriKey()
1622 if (tmpFieldType == NULL) { in PackEccPriKey()
1627 (void)memcpy_s(tmpFieldType, len, fieldType, len); in PackEccPriKey()
1643 returnPriKey->fieldType = tmpFieldType; in PackEccPriKey()