| 254 | } |
| 255 | |
| 256 | void OID::DEREncode(BufferedTransformation &bt) const |
| 257 | { |
| 258 | CRYPTOPP_ASSERT(m_values.size() >= 2); |
| 259 | ByteQueue temp; |
| 260 | temp.Put(byte(m_values[0] * 40 + m_values[1])); |
| 261 | for (size_t i=2; i<m_values.size(); i++) |
| 262 | EncodeValue(temp, m_values[i]); |
| 263 | bt.Put(OBJECT_IDENTIFIER); |
| 264 | DERLengthEncode(bt, temp.CurrentSize()); |
| 265 | temp.TransferTo(bt); |
| 266 | } |
| 267 | |
| 268 | void OID::BERDecode(BufferedTransformation &bt) |
| 269 | { |
nothing calls this directly
no test coverage detected