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

Method Init

src/cryptopp/asn.cpp:404–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void BERGeneralDecoder::Init(byte asnTag)
405{
406 byte b;
407 if (!m_inQueue.Get(b) || b != asnTag)
408 BERDecodeError();
409
410 if (!BERLengthDecode(m_inQueue, m_length, m_definiteLength))
411 BERDecodeError();
412
413 if (!m_definiteLength && !(asnTag & CONSTRUCTED))
414 BERDecodeError(); // cannot be primitive and have indefinite length
415}
416
417BERGeneralDecoder::~BERGeneralDecoder()
418{

Callers 1

iterhash.hFile · 0.45

Calls 3

BERDecodeErrorFunction · 0.85
BERLengthDecodeFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected