ASN BitString
| 177 | |
| 178 | /// ASN BitString |
| 179 | size_t DEREncodeBitString(BufferedTransformation &bt, const byte *str, size_t strLen, unsigned int unusedBits) |
| 180 | { |
| 181 | bt.Put(BIT_STRING); |
| 182 | size_t lengthBytes = DERLengthEncode(bt, strLen+1); |
| 183 | bt.Put((byte)unusedBits); |
| 184 | bt.Put(str, strLen); |
| 185 | return 2+lengthBytes+strLen; |
| 186 | } |
| 187 | |
| 188 | size_t BERDecodeBitString(BufferedTransformation &bt, SecByteBlock &str, unsigned int &unusedBits) |
| 189 | { |
nothing calls this directly
no test coverage detected