Currently all types are encoded / decoded as ber. A NTTP should be added to each ASN.1 type which allows the user to specify expected encoding scheme. An enum class should be defined to select the scheme. The encoding should be defined for types to allow optimised storage of their encoding.
Expected format:
enum class Asn1Encoding
{
ber,
der,
cer,
...
};
template <Asn1Encoding encoding = Asn1Encoding::ber, typename Identifier = ExplicitId<UniversalTag::integer>>
class Integer
{
...
};
Currently all types are encoded / decoded as
ber. A NTTP should be added to each ASN.1 type which allows the user to specify expected encoding scheme. Anenum classshould be defined to select the scheme. The encoding should be defined for types to allow optimised storage of their encoding.Expected format: