asn.1/pEp.asn1
author Volker Birk <vb@pep.foundation>
Tue, 23 Aug 2016 12:06:10 +0200
branchkeysync
changeset 1063 8f9c94812786
parent 951 dec407deb10e
child 1077 d22b9d70370d
permissions -rw-r--r--
reorga of ASN.1 files
vb@633
     1
PEP
vb@908
     2
    { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
vb@633
     3
vb@633
     4
DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
vb@633
     5
vb@592
     6
BEGIN
vb@592
     7
vb@1063
     8
EXPORTS Version, Identity, IdentityList;
vb@633
     9
vb@633
    10
major-version INTEGER ::= 1
vb@633
    11
minor-version INTEGER ::= 0
vb@633
    12
vb@648
    13
ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
vb@633
    14
Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
vb@647
    15
Hash ::= Hex(SIZE(1..128)) -- SHA1 to SHA512 in hex
vb@633
    16
vb@592
    17
Identity ::= SEQUENCE {
vb@633
    18
    address     UTF8String  (SIZE(1..1024)) OPTIONAL,
vb@633
    19
    fpr         Hash,
vb@633
    20
    user-id     UTF8String  (SIZE(1..1024)) OPTIONAL,
vb@633
    21
    username    UTF8String  (SIZE(1..1024)) OPTIONAL,
vb@633
    22
    comm-type   INTEGER     (0..255) OPTIONAL,
vb@648
    23
    lang        ISO639-1    DEFAULT "en"
vb@592
    24
}
vb@592
    25
vb@940
    26
IdentityList ::= SEQUENCE OF Identity
vb@592
    27
vb@593
    28
Version ::= SEQUENCE {
vb@633
    29
    major       INTEGER (0..255) DEFAULT major-version,
vb@633
    30
    minor       INTEGER (0..255) DEFAULT minor-version
vb@593
    31
}
vb@593
    32
vb@592
    33
END
vb@592
    34