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

Method EC2N

src/cryptopp/ec2n.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14NAMESPACE_BEGIN(CryptoPP)
15
16EC2N::EC2N(BufferedTransformation &bt)
17 : m_field(BERDecodeGF2NP(bt))
18{
19 BERSequenceDecoder seq(bt);
20 m_field->BERDecodeElement(seq, m_a);
21 m_field->BERDecodeElement(seq, m_b);
22 // skip optional seed
23 if (!seq.EndReached())
24 {
25 SecByteBlock seed;
26 unsigned int unused;
27 BERDecodeBitString(seq, seed, unused);
28 }
29 seq.MessageEnd();
30}
31
32void EC2N::DEREncode(BufferedTransformation &bt) const
33{

Callers

nothing calls this directly

Calls 5

BERDecodeGF2NPFunction · 0.85
BERDecodeBitStringFunction · 0.85
EndReachedMethod · 0.80
MessageEndMethod · 0.80
BERDecodeElementMethod · 0.45

Tested by

no test coverage detected