forked from w3c/webauthn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft-jones-webauthn-cose-algorithms.xml
402 lines (353 loc) · 11.7 KB
/
draft-jones-webauthn-cose-algorithms.xml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='http://xml2rfc.tools.ietf.org/authoring/rfc2629.xslt' ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="4"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="info"
ipr="trust200902"
docName="draft-jones-webauthn-cose-algorithms-01">
<front>
<title>COSE Algorithms for Web Authentication (WebAuthn)</title>
<author fullname="Michael B. Jones" surname="Jones" initials="M.B.">
<organization>Microsoft</organization>
<address>
<email>mbj@microsoft.com</email>
<uri>http://self-issued.info/</uri>
</address>
</author>
<date day="2" month="May" year="2018" />
<area>Security</area>
<workgroup>WebAuthn Working Group</workgroup>
<keyword>Cryptography</keyword>
<keyword>Digital Signature</keyword>
<keyword>Encryption</keyword>
<keyword>Internet-Draft</keyword>
<abstract>
<t>
The W3C Web Authentication (WebAuthn) specification uses COSE algorithm identifiers.
This specification registers algorithms in the IANA "COSE Algorithms" registry
that are used by WebAuthn that are not already registered.
Also, they are registered in the IANA "JSON Web Signature and Encryption Algorithms" registry,
when not already registered there.
</t>
</abstract>
</front>
<middle>
<section anchor="Introduction" title="Introduction">
<t>
This specification defines how to use several algorithms with
COSE <xref target="RFC8152"/> that are used by the
W3C Web Authentication (WebAuthn) <xref target="WebAuthn"/> specification.
These algorithms are registered in
the IANA "COSE Algorithms" registry <xref target="IANA.COSE.Algorithms"/>
and also in
the IANA "JSON Web Signature and Encryption Algorithms" registry <xref target="IANA.JOSE.Algorithms"/>,
when not already registered there.
</t>
<section anchor="rnc" title="Requirements Notation and Conventions">
<t>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and
only when, they appear in all capitals, as shown here.
</t>
</section>
</section>
<section title="RSASSA-PKCS1-v1_5 Signature Algorithm" anchor="RSASSA-PKCS1-v1_5">
<t>
The RSASSA-PKCS1-v1_5 signature algorithm is defined in <xref target="RFC8017"/>.
The RSASSA-PKCS1-v1_5 signature algorithm is parameterized with a hash function (h).
</t>
<t>
A key of size 2048 bits or larger MUST be used with these algorithms.
Implementations need to check that the key type is 'RSA' when creating or verifying a signature.
</t>
<t>
The RSASSA-PKCS1-v1_5 algorithms specified in this document are in the following table.
</t>
<texttable anchor="table-rsa-algs" title="RSASSA-PKCS1-v1_5 Algorithm Values" suppress-title="false" align="center" style="full">
<ttcol align="left">Name</ttcol>
<ttcol align="left">Value</ttcol>
<ttcol align="left">Hash</ttcol>
<ttcol align="left">Description</ttcol>
<c>RS256</c>
<c>TBD (requested assignment -257)</c>
<c>SHA-256</c>
<c>RSASSA-PKCS1-v1_5 w/ SHA-256</c>
<c>RS384</c>
<c>TBD (requested assignment -258)</c>
<c>SHA-384</c>
<c>RSASSA-PKCS1-v1_5 w/ SHA-384</c>
<c>RS512</c>
<c>TBD (requested assignment -259)</c>
<c>SHA-512</c>
<c>RSASSA-PKCS1-v1_5 w/ SHA-512</c>
<c>RS1</c>
<c>TBD (requested assignment -65535)</c>
<c>SHA-1</c>
<c>RSASSA-PKCS1-v1_5 w/ SHA-1</c>
</texttable>
</section>
<section anchor="IANA" title="IANA Considerations">
<section anchor="cose-algorithms-registrations" title="COSE Algorithms Registrations">
<t>
This section registers the following values in the
IANA "COSE Algorithms" registry <xref target="IANA.COSE.Algorithms"/>.
</t>
<t>
<?rfc subcompact="yes"?>
<list style='symbols'>
<t>
Name: RS256
</t>
<t>
Value: TBD (requested assignment -257)
</t>
<t>
Description: RSASSA-PKCS1-v1_5 w/ SHA-256
</t>
<t>
Reference: <xref target="RSASSA-PKCS1-v1_5"/> of this document
</t>
<t>
Recommended: No
</t>
</list>
</t>
<t>
<list style='symbols'>
<t>
Name: RS384
</t>
<t>
Value: TBD (requested assignment -258)
</t>
<t>
Description: RSASSA-PKCS1-v1_5 w/ SHA-384
</t>
<t>
Reference: <xref target="RSASSA-PKCS1-v1_5"/> of this document
</t>
<t>
Recommended: No
</t>
</list>
</t>
<t>
<list style='symbols'>
<t>
Name: RS512
</t>
<t>
Value: TBD (requested assignment -259)
</t>
<t>
Description: RSASSA-PKCS1-v1_5 w/ SHA-512
</t>
<t>
Reference: <xref target="RSASSA-PKCS1-v1_5"/> of this document
</t>
<t>
Recommended: No
</t>
</list>
</t>
<t>
<list style='symbols'>
<t>
Name: RS1
</t>
<t>
Value: TBD (requested assignment -65535)
</t>
<t>
Description: RSASSA-PKCS1-v1_5 w/ SHA-1
</t>
<t>
Reference: <xref target="RSASSA-PKCS1-v1_5"/> of this document
</t>
<t>
Recommended: Deprecated
</t>
</list>
</t>
<?rfc subcompact="no"?>
</section>
</section>
<section anchor="Security" title="Security Considerations">
<section title="RSA Key Size Security Considerations" anchor="KeySize-considerations">
<t>
The security considerations on key sizes for RSA algorithms
from Section 6.1 of <xref target="RFC8230"/> also apply to the RSA algorithms
in this specification.
</t>
</section>
<section title="RSASSA-PKCS1-v1_5 with SHA-2 Security Considerations" anchor="RSASSA-PKCS1-v1_5_SHA-2_considerations">
<t>
The security considerations on the use of RSASSA-PKCS1-v1_5 with SHA-2 hash functions
from Section 8.3 of <xref target="RFC7518"/> also apply to their use
in this specification.
For that reason, these algorithms are registered as being "Not Recommended".
</t>
</section>
<section title="RSASSA-PKCS1-v1_5 with SHA-1 Security Considerations" anchor="RSASSA-PKCS1-v1_5_SHA-1_considerations">
<t>
The security considerations on the use of the SHA-1 hash function
from <xref target="RFC6194"/> apply in this specification.
For that reason, the "RS1" algorithm is registered as "Deprecated".
It MUST NOT be used by COSE implementations.
</t>
<t>
A COSE algorithm identifier for this algorithm is nonetheless being registered
because deployed TPMs continue to use it, and therefore WebAuthn implementations
need a COSE algorithm identifier for "RS1" when TPM attestations using
this algorithm are being represented.
</t>
</section>
</section>
</middle>
<back>
<references title="Normative References">
<?rfc include="reference.RFC.2119.xml"?>
<?rfc include="reference.RFC.6194.xml"?>
<?rfc include="reference.RFC.7049.xml"?>
<?rfc include="reference.RFC.7515.xml"?>
<?rfc include="reference.RFC.7518.xml"?>
<?rfc include="reference.RFC.8017.xml"?>
<?rfc include="reference.RFC.8152.xml"?>
<?rfc include="reference.RFC.8174.xml"?>
<?rfc include="reference.RFC.8230.xml"?>
</references>
<references title="Informative References">
<reference anchor="WebAuthn" target="https://w3c.github.io/webauthn/">
<front>
<title>Web Authentication: An API for accessing Public Key Credentials</title>
<author initials="D." surname="Balfanz" fullname="Dirk Balfanz">
<organization>Google</organization>
<address>
<email>balfanz@google.com</email>
</address>
</author>
<author initials="A." surname="Czeskis" fullname="Alexei Czeskis">
<organization>Google</organization>
<address>
<email>aczeskis@google.com</email>
</address>
</author>
<author initials="J." surname="Hodges" fullname="Jeff Hodges">
<organization>PayPal</organization>
<address>
<email>Jeff.Hodges@paypal.com</email>
</address>
</author>
<author initials="J.C." surname="Jones" fullname="J.C. Jones">
<organization>Mozilla</organization>
<address>
<email>jc@mozilla.com</email>
</address>
</author>
<author initials="M.B." surname="Jones" fullname="Michael B. Jones">
<organization>Microsoft</organization>
<address>
<email>mbj@microsoft.com</email>
<uri>http://self-issued.info/</uri>
</address>
</author>
<author initials="A." surname="Kumar" fullname="Akshay Kumar">
<organization>Microsoft</organization>
<address>
<email>akshayku@microsoft.com</email>
</address>
</author>
<author initials="A." surname="Liao" fullname="Angelo Liao">
<organization>Microsoft</organization>
<address>
<email>huliao@microsoft.com</email>
</address>
</author>
<author initials="R." surname="Lindemann" fullname="Rolf Lindemann">
<organization>Nok Nok Labs</organization>
<address>
<email>rolf@noknok.com</email>
</address>
</author>
<author initials="E." surname="Lundberg" fullname="Emil Lundberg">
<organization>Yubico</organization>
<address>
<email>emil@yubico.com</email>
</address>
</author>
<date month="March" day="20" year="2018" />
</front>
<seriesInfo name="" value="Candidate Recommendation" />
<seriesInfo name="World Wide Web Consortium (W3C)" value="Recommendation-track" />
<format type="HTML" target="www.w3.org/TR/2018/CR-webauthn-20180320/" />
</reference>
<reference anchor="IANA.COSE.Algorithms" target="https://www.iana.org/assignments/cose/cose.xhtml#algorithms">
<front>
<title>COSE Algorithms</title>
<author>
<organization>IANA</organization>
</author>
<date/>
</front>
</reference>
<reference anchor="IANA.JOSE.Algorithms" target="https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms">
<front>
<title>JSON Web Signature and Encryption Algorithms</title>
<author>
<organization>IANA</organization>
</author>
<date/>
</front>
</reference>
</references>
<section title="Acknowledgements" anchor="Acknowledgements" numbered="no">
<t>
Thanks to
John Fontana,
Jeff Hodges,
Tony Nadalin,
Jim Schaad,
Göran Selander,
Wendy Seltzer,
Sean Turner,
and
Samuel Weiler
for their roles in registering these algorithm identifiers.
</t>
</section>
<section title="Document History" anchor="History">
<t>
[[ to be removed by the RFC Editor before publication as an RFC ]]
</t>
<t>
-01
<list style='symbols'>
<t>
Updated the requested RS1 value from -262 to -65535
to match the temporary registration made on 2018-04-19.
</t>
<t>
Populated the Acknowledgements section.
</t>
</list>
</t>
<t>
-00
<list style='symbols'>
<t>
Initial version.
</t>
</list>
</t>
</section>
</back>
</rfc>