MCPcopy Create free account
hub / github.com/LUX-Core/lux / DEREncodeBitString

Function DEREncodeBitString

src/cryptopp/asn.cpp:179–186  ·  view source on GitHub ↗

ASN BitString

Source from the content-addressed store, hash-verified

177
178/// ASN BitString
179size_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
188size_t BERDecodeBitString(BufferedTransformation &bt, SecByteBlock &str, unsigned int &unusedBits)
189{

Callers

nothing calls this directly

Calls 2

DERLengthEncodeFunction · 0.85
PutMethod · 0.45

Tested by

no test coverage detected