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