asn.1/devicegroup.asn1
author Volker Birk <vb@pep.foundation>
Tue, 27 Dec 2016 21:13:41 +0100
changeset 1513 e7f7e42385b5
parent 1297 78f5f9894fbd
child 1585 655cfb838ac6
permissions -rw-r--r--
adding license info to each file
vb@1513
     1
/* This file is under GNU General Public License 3.0 */
vb@1513
     2
/* see LICENSE.txt */
vb@1513
     3
vb@633
     4
DEVICEGROUP
vb@908
     5
    { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp (47878) sync(1) keysync(1) }
vb@633
     6
vb@633
     7
DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
vb@633
     8
vb@628
     9
BEGIN
vb@628
    10
vb@743
    11
EXPORTS DeviceGroup-Protocol;
vb@1063
    12
IMPORTS Version, Identity, IdentityList FROM PEP;
vb@633
    13
vb@1077
    14
Beacon ::= NULL
vb@1058
    15
edouard@1216
    16
HandshakeRequest ::= SEQUENCE {
edouard@1216
    17
    partner Identity /* identity of the receiver */
edouard@1216
    18
}
vb@628
    19
vb@711
    20
GroupKeys ::= SEQUENCE {
edouard@1216
    21
    partner Identity, /* identity of the receiver */
vb@940
    22
    ownIdentities IdentityList
vb@628
    23
}
vb@628
    24
edouard@1281
    25
GroupUpdate ::= SEQUENCE {
edouard@1281
    26
    ownIdentities IdentityList
edouard@1281
    27
}
edouard@1281
    28
edouard@1297
    29
/* TODO: narrow request to single key */
edouard@1297
    30
UpdateRequest ::= NULL 
edouard@1297
    31
vb@711
    32
/* for the tags see end of sync.fsm */
vb@711
    33
vb@1058
    34
DeviceGroup-Protocol ::= SEQUENCE {
vb@1063
    35
    header SEQUENCE {
vb@1063
    36
        version     Version,
vb@1063
    37
        sequence    INTEGER,  /* always increases */
vb@1063
    38
        me          Identity, /* identity of the sender */
vb@1063
    39
        state       INTEGER,  /* state the sender is in */
edouard@1257
    40
        devicegroup BOOLEAN
vb@1063
    41
            /* signals if this message is coming from a device group member */
vb@1063
    42
    },
vb@1063
    43
vb@1058
    44
    payload CHOICE {
vb@1058
    45
        beacon [APPLICATION 2] Beacon,
vb@1058
    46
        handshakeRequest [APPLICATION 3] HandshakeRequest,
edouard@1281
    47
        groupKeys [APPLICATION 4] GroupKeys,
edouard@1297
    48
        groupUpdate [APPLICATION 5] GroupUpdate,
edouard@1297
    49
        updateRequest [APPLICATION 6] UpdateRequest
vb@1058
    50
    }
vb@631
    51
}
vb@631
    52
vb@628
    53
END
vb@628
    54