-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft-vangeest-x509-hash-sigs-02.txt
952 lines (615 loc) · 32 KB
/
draft-vangeest-x509-hash-sigs-02.txt
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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
Network Working Group D. Van Geest
Internet-Draft ISARA Corporation
Intended status: Standards Track S. Fluhrer
Expires: September 12, 2019 Cisco Systems
March 11, 2019
Algorithm Identifiers for HSS and XMSS for Use in the Internet X.509
Public Key Infrastructure
draft-vangeest-x509-hash-sigs-02
Abstract
This document specifies algorithm identifiers and ASN.1 encoding
formats for the Hierarchical Signature System (HSS), eXtended Merkle
Signature Scheme (XMSS), and XMSS^MT, a multi-tree variant of XMSS.
This specification applies to the Internet X.509 Public Key
infrastructure (PKI) when digital signatures are used to sign
certificates and certificate revocation lists (CRLs).
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on September 12, 2019.
Copyright Notice
Copyright (c) 2019 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
Van Geest & Fluhrer Expires September 12, 2019 [Page 1]
Internet-Draft Hash-Based Signatures for X.509 March 2019
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Subject Public Key Algorithms . . . . . . . . . . . . . . . . 3
2.1. HSS Public Keys . . . . . . . . . . . . . . . . . . . . . 3
2.2. XMSS Public Keys . . . . . . . . . . . . . . . . . . . . 4
2.3. XMSS^MT Public Keys . . . . . . . . . . . . . . . . . . . 4
3. Key Usage Bits . . . . . . . . . . . . . . . . . . . . . . . 5
4. Signature Algorithms . . . . . . . . . . . . . . . . . . . . 5
4.1. HSS Signature Algorithm . . . . . . . . . . . . . . . . . 6
4.2. XMSS Signature Algorithm . . . . . . . . . . . . . . . . 7
4.3. XMSS^MT Signature Algorithm . . . . . . . . . . . . . . . 7
5. ASN.1 Module . . . . . . . . . . . . . . . . . . . . . . . . 8
6. Security Considerations . . . . . . . . . . . . . . . . . . . 13
6.1. Algorithm Security Considerations . . . . . . . . . . . . 13
6.2. Implementation Security Considerations . . . . . . . . . 14
7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 14
8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 14
9. References . . . . . . . . . . . . . . . . . . . . . . . . . 15
9.1. Normative References . . . . . . . . . . . . . . . . . . 15
9.2. Informative References . . . . . . . . . . . . . . . . . 15
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 16
1. Introduction
The Hierarchical Signature System (HSS) is described in
[I-D.mcgrew-hash-sigs].
The eXtended Merkle Signature Scheme (XMSS), and its multi-tree
variant XMSS^MT, are described in [RFC8391].
These signature algorithms are based on well-studied Hash Based
Signature (HBS) schemes, which can withstand known attacks using
quantum computers. They combine Merkle Trees with One Time Signature
(OTS) schemes in order to create signature systems which can sign a
large but limited number of messages per private key. The private
keys are stateful; a key's state must be updated and persisted after
signing to prevent reuse of OTS keys. If an OTS key is reused,
cryptographic security is not guaranteed for that key.
Due to the statefulness of the private key and the limited number of
signatures that can be created, these signature algorithms might not
be appropriate for use in interactive protocols. While the right
selection of algorithm parameters would allow a private key to sign a
Van Geest & Fluhrer Expires September 12, 2019 [Page 2]
Internet-Draft Hash-Based Signatures for X.509 March 2019
virtually unbounded number of messages (e.g. 2^60), this is at the
cost of a larger signature size and longer signing time. Since these
algorithms are already known to be secure against quantum attacks,
and because roots of trust are generally long-lived and can take
longer to be deployed than end-entity certificates, these signature
algorithms are more appropriate to be used in root and subordinate CA
certificates. They are also appropriate in non-interactive contexts
such as code signing. In particular, there are multi-party IoT
ecosystems where publicly trusted code signing certificates are
useful.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119].
2. Subject Public Key Algorithms
Certificates conforming to [RFC5280] can convey a public key for any
public key algorithm. The certificate indicates the algorithm
through an algorithm identifier. An algorithm identifier consists of
an OID and optional parameters.
In this document, we define new OIDs for identifying the different
hash-based signature algorithms. An additional OID is defined in
[I-D.ietf-lamps-cms-hash-sig] and repeated here for convenience. For
all of the OIDs, the parameters MUST be absent.
2.1. HSS Public Keys
The object identifier and public key algorithm identifier for HSS is
defined in [I-D.ietf-lamps-cms-hash-sig]. The definitions are
repeated here for reference.
The object identifier for an HSS public key is id-alg-hss-lms-
hashsig:
id-alg-hss-lms-hashsig OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) alg(3) 17 }
Note that the id-alg-hss-lms-hashsig algorithm identifier is also
referred to as id-alg-mts-hashsig. This synonym is based on the
terminology used in an early draft of the document that became
[I-D.ietf-lamps-cms-hash-sig].
The HSS public key's properties are defined as follows:
Van Geest & Fluhrer Expires September 12, 2019 [Page 3]
Internet-Draft Hash-Based Signatures for X.509 March 2019
pk-HSS-LMS-HashSig PUBLIC-KEY ::= {
IDENTIFIER id-alg-hss-lms-hashsig
KEY HSS-LMS-HashSig-PublicKey
PARAMS ARE absent
CERT-KEY-USAGE
{ digitalSignature, nonRepudiation, keyCertSign, cRLSign } }
HSS-LMS-HashSig-PublicKey ::= OCTET STRING
[I-D.ietf-lamps-cms-hash-sig] contains more information on the
contents and format of an HSS public key.
2.2. XMSS Public Keys
The object identifier for an XMSS public key is id-alg-xmss:
id-alg-xmss OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 0 }
The XMSS public key's properties are defined as follows:
pk-XMSS PUBLIC-KEY ::= {
IDENTIFIER id-alg-xmss
KEY XMSS-PublicKey
PARAMS ARE absent
CERT-KEY-USAGE
{ digitalSignature, nonRepudiation, keyCertSign, cRLSign } }
XMSS-PublicKey ::= OCTET STRING
The format of an XMSS public key is is formally defined using XDR
[RFC4506] and is defined in Appendix B.3 of [RFC8391]. In
particular, the first 4 bytes represents the big-ending encoding of
the XMSS algorithm type.
2.3. XMSS^MT Public Keys
The object identifier for an XMSS^MT public key is id-alg-xmssmt:
id-alg-xmssmt OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 0 }
The XMSS^MT public key's properties are defined as follows:
Van Geest & Fluhrer Expires September 12, 2019 [Page 4]
Internet-Draft Hash-Based Signatures for X.509 March 2019
pk-XMSSMT PUBLIC-KEY ::= {
IDENTIFIER id-alg-xmssmt
KEY XMSSMT-PublicKey
PARAMS ARE absent
CERT-KEY-USAGE
{ digitalSignature, nonRepudiation, keyCertSign, cRLSign } }
XMSSMT-PublicKey ::= OCTET STRING
The format of an XMSS^MT public key is is formally defined using XDR
[RFC4506] and is defined in Appendix C.3 of [RFC8391]. In
particular, the first 4 bytes represents the big-ending encoding of
the XMSS^MT algorithm type.
3. Key Usage Bits
The intended application for the key is indicated in the keyUsage
certificate extension.
If the keyUsage extension is present in an end-entity certificate
that indicates id-alg-xmss or id-alg-xmssmt in SubjectPublicKeyInfo,
then the keyUsage extension MUST contain one or both of the following
values:
nonRepudiation; and
digitalSignature.
If the keyUsage extension is present in a certification authority
certificate that indicates id-alg-xmss or id-alg-xmssmt, then the
keyUsage extension MUST contain one or more of the following values:
nonRepudiation;
digitalSignature;
keyCertSign; and
cRLSign.
[I-D.ietf-lamps-cms-hash-sig] defines the key usage for id-alg-hss-
lms-hashsig, which is the same as for the keys above.
4. Signature Algorithms
This section identifies OIDs for signing using HSS, XMSS, and
XMSS^MT. When these algorithm identifiers appear in the algorithm
field as an AlgorithmIdentifier, the encoding MUST omit the
parameters field. That is, the AlgorithmIdentifier SHALL be a
SEQUENCE of one component, one of the OIDs defined below.
Van Geest & Fluhrer Expires September 12, 2019 [Page 5]
Internet-Draft Hash-Based Signatures for X.509 March 2019
The data to be signed is prepared for signing. With the OIDs id-alg-
hss-lms-hashsig, id-alg-xmss and id-alg-xmssmt the full data is
signed directly. With the other OIDs defined in this document, an
appropriate hash function is applied first and the resulting digest
is signed. Then, a private key operation is performed to generate
the signature value. For HSS, the signature value is described in
section 3.3 of [I-D.mcgrew-hash-sigs]. For XMSS and XMSS^MT the
signature values are described in sections B.2 and C.2 of [RFC8391]
respectively. The octet string representing the signature is encoded
directly in the BIT STRING without adding any additional ASN.1
wrapping. For the Certificate and CertificateList structures, the
signature value is wrapped in the "signatureValue" BIT STRING field.
4.1. HSS Signature Algorithm
The HSS public key OID is also used to specify that an HSS signature
was generated on the full message, i.e. the message was not hashed
before being processed by the HSS signature algorithm.
id-alg-hss-lms-hashsig OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) alg(3) 17 }
The ASN.1 OIDs used to specify that an HSS signature was generated on
a SHA-256, SHA-384 or SHA-512 hash of an object are, respectively:
id-alg-hss-with-SHA256 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) hss(12) 2 }
id-alg-hss-with-SHA384 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) hss(12) 3 }
id-alg-hss-with-SHA512 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) hss(12) 1 }
[I-D.ietf-lamps-cms-hash-sig] contains more information on the
contents and format of an HSS signature.
Van Geest & Fluhrer Expires September 12, 2019 [Page 6]
Internet-Draft Hash-Based Signatures for X.509 March 2019
4.2. XMSS Signature Algorithm
The XMSS public key OID is also used to specify that an XMSS
signature was generated on the full message, i.e. the message was not
hashed before being processed by the XMSS signature algorithm.
id-alg-xmss OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 0 }
The ASN.1 OIDs used to specify that an XMSS signature was generated
on a SHA-256, SHA-384 or SHA-512 hash of an object are, respectively:
id-alg-xmss-with-SHA256 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 2 }
id-alg-xmss-with-SHA384 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 3 }
id-alg-xmss-with-SHA512 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 1 }
The format of an XMSS signature is is formally defined using XDR
[RFC4506] and is defined in Appendix B.2 of [RFC8391].
4.3. XMSS^MT Signature Algorithm
The XMSS^MT public key OID is also used to specify that an XMSS^MT
signature was generated on the full message, i.e. the message was not
hashed before being processed by the XMSS^MT signature algorithm.
id-alg-xmssmt OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 0 }
The ASN.1 OIDs used to specify that an XMSS^MT signature was
generated on a SHA-256, SHA384 or SHA-512 hash of an object are,
respectively:
Van Geest & Fluhrer Expires September 12, 2019 [Page 7]
Internet-Draft Hash-Based Signatures for X.509 March 2019
id-alg-xmssmt-with-SHA256 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 2 }
id-alg-xmssmt-with-SHA384 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 3 }
id-alg-xmssmt-with-SHA512 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 1 }
The format of an XMSS^MT signature is is formally defined using XDR
[RFC4506] and is defined in Appendix C.2 of [RFC8391].
5. ASN.1 Module
For reference purposes, the ASN.1 syntax is presented as an ASN.1
module here.
-- ASN.1 Module
Hashsigs-pkix-0 -- TBD - IANA assigned module OID
DEFINITIONS EXPLICIT TAGS ::=
BEGIN
IMPORTS
PUBLIC-KEY, SIGNATURE-ALGORITHM
FROM AlgorithmInformation-2009
{iso(1) identified-organization(3) dod(6) internet(1) security(5)
mechanisms(5) pkix(7) id-mod(0)
id-mod-algorithmInformation-02(58)}
;
Van Geest & Fluhrer Expires September 12, 2019 [Page 8]
Internet-Draft Hash-Based Signatures for X.509 March 2019
--
-- HSS Signatures
--
-- HSS Object Identifiers
--
-- id-alg-hss-lms-hashsig is defined in [ietf-lamps-cms-hash-sig]
--
-- id-alg-hss-lms-hashsig OBJECT IDENTIFIER ::= { iso(1)
-- member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
-- smime(16) alg(3) 17 }
id-alg-hss-with-SHA256 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) hss(12) 2 }
id-alg-hss-with-SHA384 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) hss(12) 3 }
id-alg-hss-with-SHA512 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) hss(12) 1 }
-- HSS Signature Algorithms and Public Key
--
-- sa-HSS-LMS-HashSig is defined in [ietf-lamps-cms-hash-sig]
--
-- sa-HSS-LMS-HashSig SIGNATURE-ALGORITHM ::= {
-- IDENTIFIER id-alg-hss-lms-hashsig
-- PARAMS ARE absent
-- PUBLIC-KEYS { pk-HSS-LMS-HashSig }
-- SMIME-CAPS { IDENTIFIED BY id-alg-hss-lms-hashsig } }
sa-HSS-with-SHA256 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-hss-with-SHA256
PARAMS ARE absent
HASHES { mda-sha256 }
PUBLIC-KEYS { pk-HSS-LMS-HashSig }
SMIME-CAPS { IDENTIFIED BY id-alg-hss-with-SHA256 } }
Van Geest & Fluhrer Expires September 12, 2019 [Page 9]
Internet-Draft Hash-Based Signatures for X.509 March 2019
sa-HSS-with-SHA384 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-hss-with-SHA384
PARAMS ARE absent
HASHES { mda-sha384 }
PUBLIC-KEYS { pk-HSS-LMS-HashSig }
SMIME-CAPS { IDENTIFIED BY id-alg-hss-with-SHA384 } }
sa-HSS-with-SHA512 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-hss-with-SHA512
PARAMS ARE absent
HASHES { mda-sha512 }
PUBLIC-KEYS { pk-HSS-LMS-HashSig }
SMIME-CAPS { IDENTIFIED BY id-alg-hss-with-SHA512 } }
--
-- pk-HSS-LMS-HashSig is defined in [ietf-lamps-cms-hash-sig]
--
-- pk-HSS-LMS-HashSig PUBLIC-KEY ::= {
-- IDENTIFIER id-alg-hss-lms-hashsig
-- KEY HSS-LMS-HashSig-PublicKey
-- PARAMS ARE absent
-- CERT-KEY-USAGE
-- { digitalSignature, nonRepudiation, keyCertSign, cRLSign } }
--
-- HSS-LMS-HashSig-PublicKey ::= OCTET STRING
--
-- XMSS Keys and Signatures
--
-- XMSS Object Identifiers
id-alg-xmss OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 0 }
id-alg-xmss-with-SHA256 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 2 }
id-alg-xmss-with-SHA384 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 3 }
Van Geest & Fluhrer Expires September 12, 2019 [Page 10]
Internet-Draft Hash-Based Signatures for X.509 March 2019
id-alg-xmss-with-SHA512 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmss(13) 1 }
-- XMSS Signature Algorithms and Public Key
sa-XMSS SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmss
PARAMS ARE absent
PUBLIC-KEYS { pk-XMSS }
SMIME-CAPS { IDENTIFIED BY id-alg-xmss } }
sa-XMSS-with-SHA256 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmss-with-SHA256
PARAMS ARE absent
HASHES { mda-sha256 }
PUBLIC-KEYS { pk-XMSS }
SMIME-CAPS { IDENTIFIED BY id-alg-xmss-with-SHA256 } }
sa-XMSS-with-SHA384 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmss-with-SHA384
PARAMS ARE absent
HASHES { mda-sha384 }
PUBLIC-KEYS { pk-XMSS }
SMIME-CAPS { IDENTIFIED BY id-alg-xmss-with-SHA384 } }
sa-XMSS-with-SHA512 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmss-with-SHA512
PARAMS ARE absent
HASHES { mda-sha512 }
PUBLIC-KEYS { pk-XMSS }
SMIME-CAPS { IDENTIFIED BY id-alg-xmss-with-SHA512 } }
pk-XMSS PUBLIC-KEY ::= {
IDENTIFIER id-alg-xmss
KEY XMSS-PublicKey
PARAMS ARE absent
CERT-KEY-USAGE
{ digitalSignature, nonRepudiation, keyCertSign, cRLSign } }
XMSS-PublicKey ::= OCTET STRING
Van Geest & Fluhrer Expires September 12, 2019 [Page 11]
Internet-Draft Hash-Based Signatures for X.509 March 2019
--
-- XMSS^MT Keys and Signatures
--
-- XMSS^MT Object Identifiers
id-alg-xmssmt OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 0 }
id-alg-xmssmt-with-SHA256 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 2 }
id-alg-xmssmt-with-SHA384 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 3 }
id-alg-xmssmt-with-SHA512 OBJECT IDENTIFIER ::= { itu-t(0)
identified-organization(4) etsi(0) reserved(127)
etsi-identified-organization(0) isara(15) algorithms(1)
asymmetric(1) xmssmt(14) 1 }
-- XMSS^MT Signature Algorithms and Public Key
sa-XMSSMT SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmssmt
PARAMS ARE absent
PUBLIC-KEYS { pk-XMSSMT }
SMIME-CAPS { IDENTIFIED BY id-alg-xmssmt } }
sa-XMSSMT-with-SHA256 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmssmt-with-SHA256
PARAMS ARE absent
HASHES { mda-sha256 }
PUBLIC-KEYS { pk-XMSSMT }
SMIME-CAPS { IDENTIFIED BY id-alg-xmssmt-with-SHA256 } }
sa-XMSSMT-with-SHA384 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmssmt-with-SHA384
PARAMS ARE absent
HASHES { mda-sha384 }
PUBLIC-KEYS { pk-XMSSMT }
SMIME-CAPS { IDENTIFIED BY id-alg-xmssmt-with-SHA384 } }
Van Geest & Fluhrer Expires September 12, 2019 [Page 12]
Internet-Draft Hash-Based Signatures for X.509 March 2019
sa-XMSSMT-with-SHA512 SIGNATURE-ALGORITHM ::= {
IDENTIFIER id-alg-xmssmt-with-SHA512
PARAMS ARE absent
HASHES { mda-sha512 }
PUBLIC-KEYS { pk-XMSSMT }
SMIME-CAPS { IDENTIFIED BY id-alg-xmssmt-with-SHA512 } }
pk-XMSSMT PUBLIC-KEY ::= {
IDENTIFIER id-alg-xmssmt
KEY XMSSMT-PublicKey
PARAMS ARE absent
CERT-KEY-USAGE
{ digitalSignature, nonRepudiation, keyCertSign, cRLSign } }
XMSSMT-PublicKey ::= OCTET STRING
END
6. Security Considerations
6.1. Algorithm Security Considerations
The cryptographic security of the signatures generated by the
algorithms mentioned in this document depends only on the hash
algorithms used within the signature algorithms and the pre-hash
algorithm used to create an X.509 certificate's message digest.
Grover's algorithm [Grover96] is a quantum search algorithm which
gives a quadratic improvement in search time to brute-force pre-image
attacks. The results of [BBBV97] show that this improvement is
optimal, however [Fluhrer17] notes that Grover's algorithm doesn't
parallelize well. Thus, given a bounded amount of time to perform
the attack and using a conservative estimate of the performance of a
real quantum computer, the pre-image quantum security of SHA-256 is
closer to 190 bits. All parameter sets for the signature algorithms
in this document currently use SHA-256 internally and thus have at
least 128 bits of quantum pre-image resistance, or 190 bits using the
security assumptions in [Fluhrer17].
[Zhandry15] shows that hash collisions can be found using an
algorithm with a lower bound on the number of oracle queries on the
order of 2^(n/3) on the number of bits, however [DJB09] demonstrates
that the quantum memory requirements would be much greater.
Therefore a pre-hash using SHA-256 would have at least 128 bits of
quantum collision-resistance as well as the pre-image resistance
mentioned in the previous paragraph.
Given the quantum collision and pre-image resistance of SHA-256
estimated above, the algorithm identifiers id-alg-hss-with-SHA256,
Van Geest & Fluhrer Expires September 12, 2019 [Page 13]
Internet-Draft Hash-Based Signatures for X.509 March 2019
id-alg-xmss-with-SHA256 and id-alg-xmssmt-with-SHA256 defined in this
document provide 128 bits or more of quantum security. This is
believed to be secure enough to protect X.509 certificates for well
beyond any reasonable certificate lifetime, although the SHA-384 and
SHA-512 variants could be used if there are any doubts.
6.2. Implementation Security Considerations
Implementations MUST protect the private keys. Compromise of the
private keys may result in the ability to forge signatures. Along
with the private key, the implementation MUST keep track of which
leaf nodes in the tree have been used. Loss of integrity of this
tracking data can cause a one-time key to be used more than once. As
a result, when a private key and the tracking data are stored on non-
volatile media or stored in a virtual machine environment, care must
be taken to preserve confidentiality and integrity.
The generation of private keys relies on random numbers. The use of
inadequate pseudo-random number generators (PRNGs) to generate these
values can result in little or no security. An attacker may find it
much easier to reproduce the PRNG environment that produced the keys,
searching the resulting small set of possibilities, rather than brute
force searching the whole key space. The generation of quality
random numbers is difficult. [RFC4086] offers important guidance in
this area.
The generation of hash-based signatures also depends on random
numbers. While the consequences of an inadequate pseudo-random
number generator (PRNGs) to generate these values is much less severe
than the generation of private keys, the guidance in [RFC4086]
remains important.
7. Acknowledgements
Thanks for Russ Housley for the helpful suggestions.
This document uses a lot of text from similar documents ([RFC3279]
and [RFC8410]) as well as [I-D.ietf-lamps-cms-hash-sig]. Thanks go
to the authors of those documents. "Copying always makes things
easier and less error prone" - [RFC8411].
8. IANA Considerations
IANA is requested to assign a module OID from the "SMI for PKIX
Module Identifier" registry for the ASN.1 module in Section 5.
Van Geest & Fluhrer Expires September 12, 2019 [Page 14]
Internet-Draft Hash-Based Signatures for X.509 March 2019
9. References
9.1. Normative References
[I-D.ietf-lamps-cms-hash-sig]
Housley, R., "Use of the HSS/LMS Hash-based Signature
Algorithm in the Cryptographic Message Syntax (CMS)",
draft-ietf-lamps-cms-hash-sig-07 (work in progress), March
2019.
[I-D.mcgrew-hash-sigs]
McGrew, D., Curcio, M., and S. Fluhrer, "Hash-Based
Signatures", draft-mcgrew-hash-sigs-15 (work in progress),
January 2019.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC4506] Eisler, M., Ed., "XDR: External Data Representation
Standard", STD 67, RFC 4506, DOI 10.17487/RFC4506, May
2006, <https://www.rfc-editor.org/info/rfc4506>.
[RFC5280] Cooper, D., Santesson, S., Farrell, S., Boeyen, S.,
Housley, R., and W. Polk, "Internet X.509 Public Key
Infrastructure Certificate and Certificate Revocation List
(CRL) Profile", RFC 5280, DOI 10.17487/RFC5280, May 2008,
<https://www.rfc-editor.org/info/rfc5280>.
[RFC8391] Huelsing, A., Butin, D., Gazdag, S., Rijneveld, J., and A.
Mohaisen, "XMSS: eXtended Merkle Signature Scheme",
RFC 8391, DOI 10.17487/RFC8391, May 2018,
<https://www.rfc-editor.org/info/rfc8391>.
9.2. Informative References
[BBBV97] Bennett, C., Bernstein, E., Brassard, G., and U. Vazirani,
"Strengths and weaknesses of quantum computing", SIAM J.
Comput. 26(5), 1510-1523, 1997.
[DJB09] Bernstein, D., "Cost analysis of hash collisions: Will
quantum computers make SHARCS obsolete?", SHARCS 9, p.
105, 2009.
Van Geest & Fluhrer Expires September 12, 2019 [Page 15]
Internet-Draft Hash-Based Signatures for X.509 March 2019
[Fluhrer17]
Fluhrer, S., "Reassessing Grover's Algorithm", Cryptology
ePrint Archive Report 2017/811, August 2017,
<https://eprint.iacr.org/2017/811.pdf>.
[Grover96]
Grover, L., "A fast quantum mechanical algorithm for
database search", 28th ACM Symposium on the Theory of
Computing p. 212, 1996.
[RFC3279] Bassham, L., Polk, W., and R. Housley, "Algorithms and
Identifiers for the Internet X.509 Public Key
Infrastructure Certificate and Certificate Revocation List
(CRL) Profile", RFC 3279, DOI 10.17487/RFC3279, April
2002, <https://www.rfc-editor.org/info/rfc3279>.
[RFC4086] Eastlake 3rd, D., Schiller, J., and S. Crocker,
"Randomness Requirements for Security", BCP 106, RFC 4086,
DOI 10.17487/RFC4086, June 2005,
<https://www.rfc-editor.org/info/rfc4086>.
[RFC8410] Josefsson, S. and J. Schaad, "Algorithm Identifiers for
Ed25519, Ed448, X25519, and X448 for Use in the Internet
X.509 Public Key Infrastructure", RFC 8410,
DOI 10.17487/RFC8410, August 2018,
<https://www.rfc-editor.org/info/rfc8410>.
[RFC8411] Schaad, J. and R. Andrews, "IANA Registration for the
Cryptographic Algorithm Object Identifier Range",
RFC 8411, DOI 10.17487/RFC8411, August 2018,
<https://www.rfc-editor.org/info/rfc8411>.
[Zhandry15]
Zhandry, M., "A note on the quantum collision and set
equality problems", Quantum Information & Computation 15,
7-8, 557-567, May 2015.
Authors' Addresses
Daniel Van Geest
ISARA Corporation
560 Westmount Rd N
Waterloo, Ontario N2L 0A9
Canada
Email: [email protected]
Van Geest & Fluhrer Expires September 12, 2019 [Page 16]
Internet-Draft Hash-Based Signatures for X.509 March 2019
Scott Fluhrer
Cisco Systems
170 West Tasman Drive
San Jose, CA 95134
USA
Email: [email protected]
Van Geest & Fluhrer Expires September 12, 2019 [Page 17]