Searched refs:uncompressedPublicKey (Results 1 – 2 of 2) sorted by relevance
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_sm2.c | 177 uint8_t *uncompressedPublicKey = HksMalloc(fullSize); in PushPubKeyToParam() local 178 if (uncompressedPublicKey == NULL) { in PushPubKeyToParam() 184 if (memset_s(uncompressedPublicKey, fullSize, 0, fullSize) != EOK) { in PushPubKeyToParam() 197 uncompressedPublicKey[0] = POINT_CONVERSION_UNCOMPRESSED; in PushPubKeyToParam() 198 …errno_t memRet = memcpy_s(uncompressedPublicKey + 1 + HKS_KEY_BYTES(size->keySize) - size->xSize, … in PushPubKeyToParam() 204 memRet = memcpy_s(uncompressedPublicKey + fullSize - size->ySize, size->ySize, in PushPubKeyToParam() 211 uncompressedPublicKey, fullSize); in PushPubKeyToParam() 219 HksFree(uncompressedPublicKey) in PushPubKeyToParam()
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter.c | 204 uint8_t *uncompressedPublicKey = HksMalloc(fullSize); in ConstructSm2ParamsPushPubKey() local 205 if (uncompressedPublicKey == NULL) { in ConstructSm2ParamsPushPubKey() 211 errno_t memRet = memset_s(uncompressedPublicKey, fullSize, 0, fullSize); in ConstructSm2ParamsPushPubKey() 225 uncompressedPublicKey[0] = POINT_CONVERSION_UNCOMPRESSED; in ConstructSm2ParamsPushPubKey() 226 …memRet = memcpy_s(uncompressedPublicKey + 1 + HKS_KEY_BYTES(keySize) - x->size, x->size, x->data, … in ConstructSm2ParamsPushPubKey() 231 memRet = memcpy_s(uncompressedPublicKey + fullSize - y->size, y->size, y->data, y->size); in ConstructSm2ParamsPushPubKey() 237 uncompressedPublicKey, fullSize); in ConstructSm2ParamsPushPubKey() 244 HksFree(uncompressedPublicKey) in ConstructSm2ParamsPushPubKey()
|