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
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@634
    11
Beacon ::= SEQUENCE {
vb@1058
    12
vb@628
    13
}
vb@628
    14
vb@634
    15
HandshakeRequest ::= SEQUENCE {
vb@1058
    16
vb@628
    17
}
vb@628
    18
vb@711
    19
GroupKeys ::= SEQUENCE {
vb@940
    20
    ownIdentities IdentityList
vb@628
    21
}
vb@628
    22
vb@711
    23
/* for the tags see end of sync.fsm */
vb@711
    24
vb@1058
    25
DeviceGroup-Protocol ::= SEQUENCE {
vb@1063
    26
    header SEQUENCE {
vb@1063
    27
        version     Version,
vb@1063
    28
        sequence    INTEGER,  /* always increases */
vb@1063
    29
        me          Identity, /* identity of the sender */
vb@1063
    30
        state       INTEGER,  /* state the sender is in */
vb@1063
    31
        devicegroup BOOLEAN DEFAULT FALSE
vb@1063
    32
            /* signals if this message is coming from a device group member */
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