asn.1/devicegroup.asn1
author Krista Grothoff <krista@pep-project.org>
Thu, 15 Dec 2016 18:00:28 +0100
branchENGINE-155
changeset 1493 40b1e72d1d89
parent 1297 78f5f9894fbd
child 1513 e7f7e42385b5
permissions -rw-r--r--
merged in default
     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 /* TODO: narrow request to single key */
    27 UpdateRequest ::= NULL 
    28 
    29 /* for the tags see end of sync.fsm */
    30 
    31 DeviceGroup-Protocol ::= SEQUENCE {
    32     header SEQUENCE {
    33         version     Version,
    34         sequence    INTEGER,  /* always increases */
    35         me          Identity, /* identity of the sender */
    36         state       INTEGER,  /* state the sender is in */
    37         devicegroup BOOLEAN
    38             /* signals if this message is coming from a device group member */
    39     },
    40 
    41     payload CHOICE {
    42         beacon [APPLICATION 2] Beacon,
    43         handshakeRequest [APPLICATION 3] HandshakeRequest,
    44         groupKeys [APPLICATION 4] GroupKeys,
    45         groupUpdate [APPLICATION 5] GroupUpdate,
    46         updateRequest [APPLICATION 6] UpdateRequest
    47     }
    48 }
    49 
    50 END
    51