Skip to content

Add encoding scheme as a template argument to types #27

Description

@Samuel-Tyler

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
{
     ...
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions