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

Function DEREncodeTextString

src/cryptopp/asn.cpp:151–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151size_t DEREncodeTextString(BufferedTransformation &bt, const std::string &str, byte asnTag)
152{
153 bt.Put(asnTag);
154 size_t lengthBytes = DERLengthEncode(bt, str.size());
155 bt.Put((const byte *)str.data(), str.size());
156 return 1+lengthBytes+str.size();
157}
158
159size_t BERDecodeTextString(BufferedTransformation &bt, std::string &str, byte asnTag)
160{

Callers

nothing calls this directly

Calls 4

DERLengthEncodeFunction · 0.85
PutMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected