Lines Matching defs:bt
15 EC2N::EC2N(BufferedTransformation &bt)
16 : m_field(BERDecodeGF2NP(bt))
18 BERSequenceDecoder seq(bt);
27 void EC2N::DEREncode(BufferedTransformation &bt) const
29 m_field->DEREncode(bt);
30 DERSequenceEncoder seq(bt);
42 bool EC2N::DecodePoint(EC2N::Point &P, BufferedTransformation &bt, size_t encodedPointLen) const
45 if (encodedPointLen < 1 || !bt.Get(type))
60 P.x.Decode(bt, m_field->MaxElementByteLength());
86 P.x.Decode(bt, len);
87 P.y.Decode(bt, len);
95 void EC2N::EncodePoint(BufferedTransformation &bt, const Point &P, bool compressed) const
98 NullStore().TransferTo(bt, EncodedPointSize(compressed));
101 bt.Put(2 + (!P.x ? 0 : m_field->Divide(P.y, P.x).GetBit(0)));
102 P.x.Encode(bt, m_field->MaxElementByteLength());
107 bt.Put(4); // uncompressed
108 P.x.Encode(bt, len);
109 P.y.Encode(bt, len);
120 EC2N::Point EC2N::BERDecodePoint(BufferedTransformation &bt) const
123 BERDecodeOctetString(bt, str);
130 void EC2N::DEREncodePoint(BufferedTransformation &bt, const Point &P, bool compressed) const
134 DEREncodeOctetString(bt, str);
252 void EcPrecomputation<EC2N>::Load(BufferedTransformation &bt)
254 BERSequenceDecoder seq(bt);
265 void EcPrecomputation<EC2N>::Save(BufferedTransformation &bt) const
267 DERSequenceEncoder seq(bt);