16 using namespace CryptoPP;
21 CertificateSubjectDescription::encode(CryptoPP::BufferedTransformation& out)
const
33 DERSequenceEncoder attributeTypeAndValue(out);
35 m_oid.encode(attributeTypeAndValue);
36 DEREncodeTextString(attributeTypeAndValue, m_value, PRINTABLE_STRING);
38 attributeTypeAndValue.MessageEnd();
42 CertificateSubjectDescription::decode(CryptoPP::BufferedTransformation& in)
55 BERSequenceDecoder attributeTypeAndValue(in);
57 m_oid.decode(attributeTypeAndValue);
61 BERDecodeTextString(attributeTypeAndValue, m_value, PRINTABLE_STRING);
63 attributeTypeAndValue.MessageEnd();