asn.1/devicegroup.asn1
author Edouard Tisserant <edouard@pep-project.org>
Wed, 05 Oct 2016 18:18:41 +0200
changeset 1248 c332c47fe26e
parent 1216 76e7a6748913
child 1257 0c12d65fe859
permissions -rw-r--r--
KEYSYNC: Added arbitrary hard coded sync message expiry (10m), and made special case when receiving groupKeys message so that they are not consumed giving a chance to other devices in the group to receive it as well.
vb@633
     1
DEVICEGROUP
vb@908
     2
    { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp (47878) sync(1) keysync(1) }
vb@633
     3
vb@633
     4
DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
vb@633
     5
vb@628
     6
BEGIN
vb@628
     7
vb@743
     8
EXPORTS DeviceGroup-Protocol;
vb@1063
     9
IMPORTS Version, Identity, IdentityList FROM PEP;
vb@633
    10
vb@1077
    11
Beacon ::= NULL
vb@1058
    12
edouard@1216
    13
HandshakeRequest ::= SEQUENCE {
edouard@1216
    14
    partner Identity /* identity of the receiver */
edouard@1216
    15
}
vb@628
    16
vb@711
    17
GroupKeys ::= SEQUENCE {
edouard@1216
    18
    partner Identity, /* identity of the receiver */
vb@940
    19
    ownIdentities IdentityList
vb@628
    20
}
vb@628
    21
vb@711
    22
/* for the tags see end of sync.fsm */
vb@711
    23
vb@1058
    24
DeviceGroup-Protocol ::= SEQUENCE {
vb@1063
    25
    header SEQUENCE {
vb@1063
    26
        version     Version,
vb@1063
    27
        sequence    INTEGER,  /* always increases */
vb@1063
    28
        me          Identity, /* identity of the sender */
vb@1063
    29
        state       INTEGER,  /* state the sender is in */
edouard@1248
    30
        devicegroup BOOLEAN,
vb@1063
    31
            /* signals if this message is coming from a device group member */
edouard@1248
    32
        expiry      GeneralizedTime
vb@1063
    33
    },
vb@1063
    34
vb@1058
    35
    payload CHOICE {
vb@1058
    36
        beacon [APPLICATION 2] Beacon,
vb@1058
    37
        handshakeRequest [APPLICATION 3] HandshakeRequest,
vb@1058
    38
        groupKeys [APPLICATION 4] GroupKeys
vb@1058
    39
    }
vb@631
    40
}
vb@631
    41
vb@628
    42
END
vb@628
    43