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

Method DEREncodePrivateKey

src/cryptopp/eccrypto.cpp:708–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706
707template <class EC>
708void DL_PrivateKey_EC<EC>::DEREncodePrivateKey(BufferedTransformation &bt) const
709{
710 DERSequenceEncoder privateKey(bt);
711 DEREncodeUnsigned<word32>(privateKey, 1); // version
712 // SEC 1 ver 1.0 says privateKey (m_d) has the same length as order of the curve
713 // this will be changed to order of base point in a future version
714 this->GetPrivateExponent().DEREncodeAsOctetString(privateKey, this->GetGroupParameters().GetSubgroupOrder().ByteCount());
715 privateKey.MessageEnd();
716}
717
718// ******************************************************************
719

Callers

nothing calls this directly

Calls 3

ByteCountMethod · 0.80
MessageEndMethod · 0.80

Tested by

no test coverage detected