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

Function DEREncodeTextString

libcryptopp/cryptopp/asn.cpp:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146size_t DEREncodeTextString(BufferedTransformation &bt, const std::string &str, byte asnTag)
147{
148 bt.Put(asnTag);
149 size_t lengthBytes = DERLengthEncode(bt, str.size());
150 bt.Put((const byte *)str.data(), str.size());
151 return 1+lengthBytes+str.size();
152}
153
154size_t BERDecodeTextString(BufferedTransformation &bt, std::string &str, byte asnTag)
155{

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