asn.1/pEp.asn1
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Wed, 04 Sep 2019 18:53:09 +0200
branchsync
changeset 4050 6608abc1ce8c
parent 2829 e444c3c960bb
child 4253 64ff1db68934
permissions -rw-r--r--
merge heads
     1 -- This file is under BSD License 2.0
     2 
     3 -- Sync protocol for p≡p
     4 -- Copyright (c) 2016, 2017 p≡p foundation
     5 
     6 -- Written by Volker Birk
     7 
     8 PEP
     9     { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
    10 
    11 DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
    12 
    13 BEGIN
    14 
    15 EXPORTS Identity, IdentityList, TID, Hash;
    16 
    17 ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
    18 Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
    19 Hash ::= Hex(SIZE(16..128)) -- 32bit Key ID to SHA512 in hex
    20 PString ::= UTF8String  (SIZE(1..1024))
    21 TID ::= OCTET STRING (SIZE(16)) -- UUID version 4 variant 1
    22 
    23 Identity ::= SEQUENCE {
    24     address     PString,
    25     fpr         Hash,
    26     user-id     PString,
    27     username    PString,
    28     comm-type   INTEGER (0..255),
    29     lang        ISO639-1
    30 }
    31 
    32 IdentityList ::= SEQUENCE OF Identity
    33 
    34 END
    35