asn.1/devicegroup.asn1
author Edouard Tisserant <edouard@pep-project.org>
Sat, 15 Oct 2016 17:45:16 +0200
changeset 1281 efff88dcdc59
parent 1257 0c12d65fe859
child 1297 78f5f9894fbd
permissions -rw-r--r--
Sync : added group update, on keygen for now
     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 ::= NULL
    12 
    13 HandshakeRequest ::= SEQUENCE {
    14     partner Identity /* identity of the receiver */
    15 }
    16 
    17 GroupKeys ::= SEQUENCE {
    18     partner Identity, /* identity of the receiver */
    19     ownIdentities IdentityList
    20 }
    21 
    22 GroupUpdate ::= SEQUENCE {
    23     ownIdentities IdentityList
    24 }
    25 
    26 /* for the tags see end of sync.fsm */
    27 
    28 DeviceGroup-Protocol ::= SEQUENCE {
    29     header SEQUENCE {
    30         version     Version,
    31         sequence    INTEGER,  /* always increases */
    32         me          Identity, /* identity of the sender */
    33         state       INTEGER,  /* state the sender is in */
    34         devicegroup BOOLEAN
    35             /* signals if this message is coming from a device group member */
    36     },
    37 
    38     payload CHOICE {
    39         beacon [APPLICATION 2] Beacon,
    40         handshakeRequest [APPLICATION 3] HandshakeRequest,
    41         groupKeys [APPLICATION 4] GroupKeys,
    42         groupUpdate [APPLICATION 5] GroupUpdate
    43     }
    44 }
    45 
    46 END
    47