MCPcopy Create free account
hub / github.com/Tencent/mars / ECKeyToString

Function ECKeyToString

mars/openssl/export/crypto/iCoreCrypt.cpp:1429–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1427//}
1428
1429int ECKeyToString(EC_KEY* pPriKey, enECKeyType eType, std::string* pKeyString)
1430{
1431 if( eEC_PRIVATE_KEY == eType)
1432 {
1433 return ECPriKeyToString(pPriKey, pKeyString);
1434 }else
1435 {
1436 return ECPubKeyToString(pPriKey, pKeyString);
1437 //return ECNewKeyToString(pPriKey, eType, pKeyString);
1438 }
1439}
1440
1441
1442int ComputeECDHKey(int nid,const std::string& sPubKey, EC_KEY* pPriKey, std::string* pEcdhKey, const enECDH_KDF_TYPE eKdfType /*=eECDH_KDF_MD5*/ )

Callers

nothing calls this directly

Calls 2

ECPriKeyToStringFunction · 0.85
ECPubKeyToStringFunction · 0.85

Tested by

no test coverage detected