| 4008 | // ******************************************************** |
| 4009 | |
| 4010 | ModularArithmetic::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 | |
| 4021 | void ModularArithmetic::DEREncode(BufferedTransformation &bt) const |
| 4022 | { |
nothing calls this directly
no test coverage detected