MCPcopy Create free account
hub / github.com/c3d/tao3D / ModularArithmetic

Method ModularArithmetic

libcryptopp/cryptopp/integer.cpp:4010–4019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4008// ********************************************************
4009
4010ModularArithmetic::ModularArithmetic(BufferedTransformation &bt)
4011{
4012 BERSequenceDecoder seq(bt);
4013 OID oid(seq);
4014 if (oid != ASN1::prime_field())
4015 BERDecodeError();
4016 m_modulus.BERDecode(seq);
4017 seq.MessageEnd();
4018 m_result.reg.resize(m_modulus.reg.size());
4019}
4020
4021void ModularArithmetic::DEREncode(BufferedTransformation &bt) const
4022{

Callers

nothing calls this directly

Calls 5

BERDecodeErrorFunction · 0.85
MessageEndMethod · 0.80
BERDecodeMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected