MCPcopy Create free account
hub / github.com/LUX-Core/lux / BERDecodePublicKey

Method BERDecodePublicKey

src/cryptopp/eccrypto.cpp:650–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648
649template <class EC>
650void DL_PublicKey_EC<EC>::BERDecodePublicKey(BufferedTransformation &bt, bool parametersPresent, size_t size)
651{
652 CRYPTOPP_UNUSED(parametersPresent);
653
654 typename EC::Point P;
655 if (!this->GetGroupParameters().GetCurve().DecodePoint(P, bt, size))
656 BERDecodeError();
657 this->SetPublicElement(P);
658}
659
660template <class EC>
661void DL_PublicKey_EC<EC>::DEREncodePublicKey(BufferedTransformation &bt) const

Callers

nothing calls this directly

Calls 3

SetPublicElementMethod · 0.95
BERDecodeErrorFunction · 0.85
DecodePointMethod · 0.45

Tested by

no test coverage detected