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

Function DEREncodeBitString

libcryptopp/cryptopp/asn.cpp:172–179  ·  view source on GitHub ↗

ASN BitString

Source from the content-addressed store, hash-verified

170
171/// ASN BitString
172size_t DEREncodeBitString(BufferedTransformation &bt, const byte *str, size_t strLen, unsigned int unusedBits)
173{
174 bt.Put(BIT_STRING);
175 size_t lengthBytes = DERLengthEncode(bt, strLen+1);
176 bt.Put((byte)unusedBits);
177 bt.Put(str, strLen);
178 return 2+lengthBytes+strLen;
179}
180
181size_t BERDecodeBitString(BufferedTransformation &bt, SecByteBlock &str, unsigned int &unusedBits)
182{

Callers

nothing calls this directly

Calls 2

DERLengthEncodeFunction · 0.85
PutMethod · 0.45

Tested by

no test coverage detected