generated from martinthomson/internet-draft-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
msgformat.cddl
73 lines (62 loc) · 1.74 KB
/
msgformat.cddl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
start = bytes .cborseq eap-fido-outer-msg
eap-fido-outer-msg = [
eap-fido-msg
]
eap-fido-msg //= ( msg_type: type_errormsg, payload_errormsg )
eap-fido-msg //= ( msg_type: type_failure_indicator, payload_failure_indicator )
eap-fido-msg //= ( msg_type: type_success_indicator )
eap-fido-msg //= ( msg_type: type_auth_request, payload_auth_request )
eap-fido-msg //= ( msg_type: type_auth_response, payload_auth_response )
eap-fido-msg //= ( msg_type: type_info_request, payload_info_request )
eap-fido-msg //= ( msg_type: type_info_response, payload_info_response )
type_errormsg = -2
payload_errormsg = {
element_error_code,
?element_error_desc
}
type_failure_indicator = -1
payload_failure_indicator = {
element_error_code,
?element_error_desc
}
type_success_indicator = 0
type_auth_request = 1
payload_auth_request = {
?element_pkids,
?element_auth_requirements,
?element_additional_client_data
}
type_auth_response = 2
payload_auth_response = {
element_pkid,
element_auth_data,
element_fido_signature,
}
type_info_request = 3
payload_info_request = {
element_identity
}
type_info_response = 4
payload_info_response = {
?element_pkids,
?element_auth_requirements,
?element_additional_client_data
}
element_identity = ( 0: text )
element_additional_client_data = ( 1: bytes )
element_pkids = ( 2: [+bytes] )
element_auth_data = ( 3: bytes )
element_fido_signature = ( 4: bytes )
element_auth_requirements = ( 5: [+auth_requirement] )
element_pkid = ( 6: bytes )
element_error_code = ( 7: error_code )
element_error_desc = ( 8: text )
auth_requirement = &(
user_presence: 1,
user_verification: 2,
experimental: text
)
error_code = &(
unexpected_message: 1,
insufficient_information: 2,
)