asn.1/devicegroup.asn1
author Volker Birk <vb@pep.foundation>
Tue, 23 Aug 2016 12:06:10 +0200
branchkeysync
changeset 1063 8f9c94812786
parent 1061 6406a8b521e7
child 1077 d22b9d70370d
permissions -rw-r--r--
reorga of ASN.1 files
     1 DEVICEGROUP
     2     { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp (47878) sync(1) keysync(1) }
     3 
     4 DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
     5 
     6 BEGIN
     7 
     8 EXPORTS DeviceGroup-Protocol;
     9 IMPORTS Version, Identity, IdentityList FROM PEP;
    10 
    11 Beacon ::= SEQUENCE {
    12 
    13 }
    14 
    15 HandshakeRequest ::= SEQUENCE {
    16 
    17 }
    18 
    19 GroupKeys ::= SEQUENCE {
    20     ownIdentities IdentityList
    21 }
    22 
    23 /* for the tags see end of sync.fsm */
    24 
    25 DeviceGroup-Protocol ::= SEQUENCE {
    26     header SEQUENCE {
    27         version     Version,
    28         sequence    INTEGER,  /* always increases */
    29         me          Identity, /* identity of the sender */
    30         state       INTEGER,  /* state the sender is in */
    31         devicegroup BOOLEAN DEFAULT FALSE
    32             /* signals if this message is coming from a device group member */
    33     },
    34 
    35     payload CHOICE {
    36         beacon [APPLICATION 2] Beacon,
    37         handshakeRequest [APPLICATION 3] HandshakeRequest,
    38         groupKeys [APPLICATION 4] GroupKeys
    39     }
    40 }
    41 
    42 END
    43