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

Method DEREncode

src/cryptopp/asn.cpp:256–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256void OID::DEREncode(BufferedTransformation &bt) const
257{
258 CRYPTOPP_ASSERT(m_values.size() >= 2);
259 ByteQueue temp;
260 temp.Put(byte(m_values[0] * 40 + m_values[1]));
261 for (size_t i=2; i<m_values.size(); i++)
262 EncodeValue(temp, m_values[i]);
263 bt.Put(OBJECT_IDENTIFIER);
264 DERLengthEncode(bt, temp.CurrentSize());
265 temp.TransferTo(bt);
266}
267
268void OID::BERDecode(BufferedTransformation &bt)
269{

Callers

nothing calls this directly

Calls 9

EncodeValueFunction · 0.85
DERLengthEncodeFunction · 0.85
GetAlgorithmIDFunction · 0.85
TransferToMethod · 0.80
MessageEndMethod · 0.80
sizeMethod · 0.45
PutMethod · 0.45
CurrentSizeMethod · 0.45

Tested by

no test coverage detected