asn.1/pEp.asn1
author Volker Birk <vb@pep-project.org>
Thu, 02 Jun 2016 13:46:38 +0200
changeset 711 d88dea0f5448
parent 648 1f83d8ad4f55
child 907 8f5cca5bfa2d
permissions -rw-r--r--
slightly redesigning things
     1 PEP
     2 
     3 DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
     4 
     5 BEGIN
     6 
     7 EXPORTS Identity, KeyList, Header;
     8 
     9 major-version INTEGER ::= 1
    10 minor-version INTEGER ::= 0
    11 
    12 ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
    13 Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
    14 Hash ::= Hex(SIZE(1..128)) -- SHA1 to SHA512 in hex
    15 
    16 Identity ::= SEQUENCE {
    17     address     UTF8String  (SIZE(1..1024)) OPTIONAL,
    18     fpr         Hash,
    19     user-id     UTF8String  (SIZE(1..1024)) OPTIONAL,
    20     username    UTF8String  (SIZE(1..1024)) OPTIONAL,
    21     comm-type   INTEGER     (0..255) OPTIONAL,
    22     lang        ISO639-1    DEFAULT "en"
    23 }
    24 
    25 KeyList ::= SEQUENCE OF Hash
    26 
    27 Version ::= SEQUENCE {
    28     major       INTEGER (0..255) DEFAULT major-version,
    29     minor       INTEGER (0..255) DEFAULT minor-version
    30 }
    31 
    32 Header ::= SEQUENCE {
    33     version     Version,
    34     sequence    INTEGER
    35 }
    36 
    37 END
    38