asn.1/pEp.asn1
author Volker Birk <vb@pep.foundation>
Mon, 22 Aug 2016 17:26:40 +0200
branchkeysync
changeset 1047 2a4a2ec1340b
parent 951 dec407deb10e
child 1063 8f9c94812786
permissions -rw-r--r--
restructuring things (will not build)
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@940
     8
EXPORTS Identity, IdentityList, Header;
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@595
    33
Header ::= SEQUENCE {
vb@595
    34
    version     Version,
vb@951
    35
    sequence    INTEGER,  /* always increases */
vb@951
    36
    me          Identity, /* identity of the sender */
vb@951
    37
    state       INTEGER,  /* state the sender is in */
vb@951
    38
    devicegroup BOOLEAN DEFAULT FALSE
vb@951
    39
        /* signals if this message is coming from a device group member */
vb@595
    40
}
vb@595
    41
vb@592
    42
END
vb@592
    43