This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
draft-ounsworth-pq-composite-kem.txt
1400 lines (900 loc) · 51.5 KB
/
draft-ounsworth-pq-composite-kem.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
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
LAMPS M. Ounsworth
Internet-Draft J. Gray
Intended status: Standards Track Entrust
Expires: 25 November 2023 24 May 2023
Composite KEM For Use In Internet PKI
draft-ounsworth-pq-composite-kem-02
Abstract
The migration to post-quantum cryptography is unique in the history
of modern digital cryptography in that neither the old outgoing nor
the new incoming algorithms are fully trusted to protect data for the
required data lifetimes. The outgoing algorithms, such as RSA and
elliptic curve, may fall to quantum cryptalanysis, while the incoming
post-quantum algorithms face uncertainty about both the underlying
mathematics as well as hardware and software implementations that
have not had sufficient maturing time to rule out classical
cryptanalytic attacks and implementation bugs.
Cautious implementers may wish to layer cryptographic algorithms such
that an attacker would need to break all of them in order to
compromise the data being protected using either a Post-Quantum /
Traditional Hybrid, Post-Quantum / Post-Quantum Hybrid, or
combinations thereof. This document, and its companions, defines a
specific instantiation of hybrid paradigm called "composite" where
multiple cryptographic algorithms are combined to form a single key,
signature, or key encapsulation mechanism (KEM) such that they can be
treated as a single atomic object at the protocol level.
This document defines the structure CompositeCiphertextValue which is
a sequence of the respective ciphertexts for each component
algorithm. Explicit pairings of algorithms are defined which should
meet most Internet needs. For the purpose of combining KEMs, the
combiner function from [I-D.ounsworth-cfrg-kem-combiners] is used.
This document is intended to be coupled with the composite keys
structure define in [I-D.ounsworth-pq-composite-keys] and the CMS
KEMRecipientInfo mechanism in [I-D.housley-lamps-cms-kemri].
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Ounsworth & Gray Expires 25 November 2023 [Page 1]
Internet-Draft PQ Composite Keys May 2023
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 25 November 2023.
Copyright Notice
Copyright (c) 2023 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 include Revised BSD License text as
described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Revised BSD License.
Table of Contents
1. Changes in version -02 . . . . . . . . . . . . . . . . . . . 3
2. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1. Algorithm Selection Criteria . . . . . . . . . . . . . . 4
2.2. Terminology . . . . . . . . . . . . . . . . . . . . . . . 5
3. Composite KEM Structures . . . . . . . . . . . . . . . . . . 5
3.1. Key Encapsulation Mechanisms (KEMs) . . . . . . . . . . . 5
3.2. kema-CompositeKEM . . . . . . . . . . . . . . . . . . . . 7
3.3. Composite Keys . . . . . . . . . . . . . . . . . . . . . 7
3.3.1. Key Usage Bits . . . . . . . . . . . . . . . . . . . 8
3.4. CompositeCiphertextValue . . . . . . . . . . . . . . . . 8
3.5. CompositKemParameters . . . . . . . . . . . . . . . . . . 8
3.6. Encoding Rules . . . . . . . . . . . . . . . . . . . . . 8
3.7. KEM Combiner . . . . . . . . . . . . . . . . . . . . . . 9
4. Algorithm Identifiers . . . . . . . . . . . . . . . . . . . . 11
4.1. Notes on id-Kyber768-RSA-KMAC256 . . . . . . . . . . . . 13
5. ASN.1 Module . . . . . . . . . . . . . . . . . . . . . . . . 14
6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 17
7. Security Considerations . . . . . . . . . . . . . . . . . . . 18
7.1. Policy for Deprecated and Acceptable Algorithms . . . . . 18
7.2. OR Modes . . . . . . . . . . . . . . . . . . . . . . . . 18
Ounsworth & Gray Expires 25 November 2023 [Page 2]
Internet-Draft PQ Composite Keys May 2023
7.3. KEM Combiner . . . . . . . . . . . . . . . . . . . . . . 18
8. References . . . . . . . . . . . . . . . . . . . . . . . . . 18
8.1. Normative References . . . . . . . . . . . . . . . . . . 18
8.2. Informative References . . . . . . . . . . . . . . . . . 20
Appendix A. Samples . . . . . . . . . . . . . . . . . . . . . . 22
Appendix B. Implementation Considerations . . . . . . . . . . . 22
B.1. Backwards Compatibility . . . . . . . . . . . . . . . . . 22
B.1.1. K-of-N modes . . . . . . . . . . . . . . . . . . . . 23
B.1.2. Parallel PKIs . . . . . . . . . . . . . . . . . . . . 24
Appendix C. Intellectual Property Considerations . . . . . . . . 24
Appendix D. Contributors and Acknowledgements . . . . . . . . . 24
D.1. Making contributions . . . . . . . . . . . . . . . . . . 25
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 25
1. Changes in version -02
* Removed all references to generic composite.
* Added selection criteria note about requesting new explicit
combinations.
2. Introduction
During the transition to post-quantum cryptography, there will be
uncertainty as to the strength of cryptographic algorithms; we will
no longer fully trust traditional cryptography such as RSA, Diffie-
Hellman, DSA and their elliptic curve variants, while we may also not
fully trust their post-quantum replacements until they have had
sufficient scrutiny and time to discover and fix implementation bugs.
Unlike previous cryptographic algorithm migrations, the choice of
when to migrate and which algorithms to migrate to, is not so clear.
Even after the migration period, it may be advantageous for an
entity's cryptographic identity to be composed of multiple public-key
algorithms.
The deployment of composite public keys and composite encryption
using post-quantum algorithms will face two challenges
* Algorithm strength uncertainty: During the transition period, some
post-quantum signature and encryption algorithms will not be fully
trusted, while also the trust in legacy public key algorithms will
start to erode. A relying party may learn some time after
deployment that a public key algorithm has become untrustworthy,
but in the interim, they may not know which algorithm an adversary
has compromised.
Ounsworth & Gray Expires 25 November 2023 [Page 3]
Internet-Draft PQ Composite Keys May 2023
* Migration: During the transition period, systems will require
mechanisms that allow for staged migrations from fully classical
to fully post-quantum-aware cryptography.
This document provides a mechanism to address algorithm strength
uncertainty by building on [I-D.ounsworth-pq-composite-keys] by
providing the format and process for combining multiple cryptographic
algorithms into a single key encapsulation operation. Backwards
compatibility is not directly covered in this document, but is the
subject of Appendix B.1.
This document is intended for general applicability anywhere that key
establishment or enveloped content encryption is used within PKIX or
CMS structures.
2.1. Algorithm Selection Criteria
The composite algorithm combinations defined in this document were
chosen according to the following guidelines:
1. A single RSA combination is provided (but RSA modulus size not
mandated), matched with NIST PQC Level 3 algorithms.
2. Elliptic curve algorithms are provided with combinations on each
of the NIST [RFC6090], Brainpool [RFC5639], and Edwards [RFC7748]
curves. NIST PQC Levels 1 - 3 algorithms are matched with
256-bit curves, while NIST levels 4 - 5 are matched with 384-bit
elliptic curves. This provides a balance between matching
classical security levels of post-quantum and traditional
algorithms, and also selecting elliptic curves which already have
wide adoption.
3. NIST level 1 candidates (Falcon512 and Kyber512) are provided,
matched with 256-bit elliptic curves, intended for constrained
use cases. The authors wish to note that although all the
composite structures defined in this and the companion documents
[I-D.ounsworth-pq-composite-keys] and
[I-D.ounsworth-pq-composite-sigs] pecifications are defined in
such a way as to easily allow 3 or more component algorithms, it
was decided to only specify explicit pairs. This also does not
preclude future specification of explicit combinations with three
or more components.
Ounsworth & Gray Expires 25 November 2023 [Page 4]
Internet-Draft PQ Composite Keys May 2023
To maximize interoperability, use of the specific algorithm
combinations specified in this document is encouraged. If other
combinations are needed, a separate specification should be submitted
to the IETF LAMPS working group. To ease implementation, these
specifications are encouraged to follow the construction pattern of
the algorithms specified in this document.
2.2. Terminology
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 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
This document is consistent with all terminology from
[I-D.driscoll-pqt-hybrid-terminology].
In addition, the following terms are used in this document:
BER: Basic Encoding Rules (BER) as defined in [X.690].
CLIENT: Any software that is making use of a cryptographic key. This
includes a signer, verifier, encrypter, decrypter.
COMBINER: A combiner specifies how multiple shared secrets are
combined into a single shared secret. DER: Distinguished Encoding
Rules as defined in [X.690].
KEM: A key encapsulation mechanism as defined in Section 3.1.
PKI: Public Key Infrastructure, as defined in [RFC5280].
SHARED SECRET: A value established between two communicating parties
for use as cryptographic key material, but which cannot be learned by
an active or passive adversary. This document is concerned with
shared secrets established via public key cryptagraphic operations.
3. Composite KEM Structures
3.1. Key Encapsulation Mechanisms (KEMs)
We borrow here the definition of a key encapsulation mechanism (KEM)
from [I-D.ietf-tls-hybrid-design], in which a KEM is a cryptographic
primitive that consists of three algorithms:
* KeyGen() -> (pk, sk): A probabilistic key generation algorithm,
which generates a public key pk and a secret key sk.
Ounsworth & Gray Expires 25 November 2023 [Page 5]
Internet-Draft PQ Composite Keys May 2023
* Encaps(pk) -> (ct, ss): A probabilistic encapsulation algorithm,
which takes as input a public key pk and outputs a ciphertext ct
and shared secret ss.
* Decaps(sk, ct) -> ss: A decapsulation algorithm, which takes as
input a secret key sk and ciphertext ct and outputs a shared
secret ss, or in some cases a distinguished error value.
This document is not concerned with the KeyGen() algorithm of a KEM,
but it is included above for completeness.
The KEM interface defined above differs from both traditional key
transport mechanism (for example for use with KeyTransRecipientInfo
defined in [RFC5652]), and key agreement (for example for use with
KeyAgreeRecipientInfo defined in [RFC5652]).
The KEM interface was chosen as the interface for a composite key
exchange because it allows for arbitrary combinations of component
algorithm types since both key transport and key agreement mechanisms
can be promoted into KEMs in the following ways:
A key transport mechanism can be transformed into a KEM.Encaps(pk) by
generating a random shared secret ss and performing
KeyTrans.Encrypt(pk, ss) -> ct; and into a KEM.Decaps(sk, ct) by
KeyTrans.Decrypt(sk, ct) -> ss. This follows the pattern of RSA-KEM
[RFC5990].
A key agreement mechanism can be transformed into a KEM.Encaps(pk) by
generating an ephemeral key pair (pk_e, sk_e), and performing
KeyAgree(pk, sk_e) -> (ss, pk_e); and into a KEM.Decaps(sk, ct) by
completing the key agreement as KeyAgree(pk_e, sk) -> ss.
A composite KEM allows two or more underlying key transport, key
agreement, or KEM algorithms to be combined into a single
cryptographic operations by performing each operation, transformed to
a KEM as outline above, and using a specified combiner function to
combine the two or more component shared secrets into a single shared
secret.
The main security property for KEMs is indistinguishability under
adaptive chosen ciphertext attack (IND-CCA2), which means that shared
secret values should be indistinguishable from random strings even
given the ability to have other arbitrary ciphertexts decapsulated.
By using the KEM combiner defined in
[I-D.ounsworth-cfrg-kem-combiners], the composite KEMs defined in
this document inherit the IND-CCA2 security from the general
combiner.
Ounsworth & Gray Expires 25 November 2023 [Page 6]
Internet-Draft PQ Composite Keys May 2023
TODO: needs more formal analysis that the methods of transforming
KeyTrans and KeyAgree meet this.
3.2. kema-CompositeKEM
The ASN.1 algorithm object for a composite KEM is:
kema-CompositeKEM KEM-ALGORITHM ::= {
IDENTIFIER TYPE OBJECT IDENTIFIER
VALUE CompositeCiphertextValue
PARAMS TYPE CompositeKemParams ARE required
PUBLIC-KEYS { pk-Composite }
SMIME-CAPS { IDENTIFIED BY id-alg-composite } }
The following is an explanation how KEM-ALGORITHM elements are used
to create Composite KEMs:
+=====================+=======================================+
| SIGNATURE-ALGORITHM | Definition |
| element | |
+=====================+=======================================+
| IDENTIFIER | The Object ID used to identify the |
| | composite Signature Algorithm |
+---------------------+---------------------------------------+
| VALUE | The Sequence of BIT STRINGS for each |
| | component signature value |
+---------------------+---------------------------------------+
| PARAMS | Parameters of type CompositeKemParams |
| | may be provided when required |
+---------------------+---------------------------------------+
| PUBLIC-KEYS | The composite key required to produce |
| | the composite signature |
+---------------------+---------------------------------------+
| SMIME_CAPS | Not needed for composite |
+---------------------+---------------------------------------+
Table 1
3.3. Composite Keys
A composite KEM MAY be associated with a composite public key as
defined in [I-D.ounsworth-pq-composite-keys], but MAY also be
associated with multiple public keys from different sources, for
example multiple X.509 certificates, or multiple cryptographic
modules. In the latter case, composite KEMs MAY be used as the
mechanism for carrying multiple ciphertexts in a non-composite hybrid
encryption equivalent of those described for digital signatures in
[I-D.becker-guthrie-noncomposite-hybrid-auth].
Ounsworth & Gray Expires 25 November 2023 [Page 7]
Internet-Draft PQ Composite Keys May 2023
3.3.1. Key Usage Bits
When using composite KEM keys in a structure which defines a key
usage (such as in an X509Certificate as defined in [RFC5280]), the
following key usage MUST be used.
keyEncipherment
Additional key usages SHOULD not be used.
3.4. CompositeCiphertextValue
The compositeCipherTextValue is a concatenation of the ciphertexts of
the underlying component algorithms. It is represented in ASN.1 as
follows:
CompositeCiphertextValue ::= SEQUENCE SIZE (2..MAX) OF OCTET STRING
3.5. CompositKemParameters
Composite KEM parameters are defined as follows and MAY be included
when a composite KEM algorithm is used with an AlgorithmIdentifier:
CompositeKemParams ::= SEQUENCE SIZE (2..MAX) OF AlgorithmIdentifier{
KEM-ALGORITHM, {KEMAlgSet} }
The KEM's CompositeKemParams sequence MUST contain the same component
algorithms listed in the same order as in the associated
CompositePublicKey.
For explicit composite algorithms, it is required in cases where one
or both of the components themselves have parameters that need to be
carried, however the authors have chosen to always carry it in order
to simplify parsers. Implementation SHOULD NOT rely directly on the
algorithmIDs contained in the CompositeKemParams and SHOULD verify
that they match the algorithms expected from the overall composite
AlgorithmIdentifier.
3.6. Encoding Rules
Many protocol specifications will require that composite KEM data
structures be represented by an octet string or bit string.
When an octet string is required, the DER encoding of the composite
data structure SHALL be used directly.
Ounsworth & Gray Expires 25 November 2023 [Page 8]
Internet-Draft PQ Composite Keys May 2023
EDNOTE: will this definition include an ASN.1 tag and length byte
inside the OCTET STRING object? If so, that's probably an extra
unnecessary layer.
When a bit string is required, the octets of the DER encoded
composite data structure SHALL be used as the bits of the bit string,
with the most significant bit of the first octet becoming the first
bit, and so on, ending with the least significant bit of the last
octet becoming the last bit of the bit string.
In the interests of simplicity and avoiding compatibility issues,
implementations that parse these structures MAY accept both BER and
DER.
3.7. KEM Combiner
TODO: as per https://www.enisa.europa.eu/publications/post-quantum-
cryptography-integration-study section 4.2, might need to specify
behaviour in light of KEMs with a non-zero failure probility.
This document follows the construction of
[I-D.ounsworth-cfrg-kem-combiners], which is repeated here for
clarity:
KDF(counter || k_1 || ... || k_n || fixedInfo, outputBits)
where
k_i = H(ss_i || ct_i)
where:
* KDF and H, and outputBits represent a hash functions suitable to
the chosen KEMs,
* fixedInfo any additional context string provided by the protocol,
* counter is fixed to the 32-bit value 0x00000001,
* || represents concatenation.
Each registered composite KEM algorithm must specify the exact KEM
combiner construction that is to be used.
For convenience we define the following KMAC-basid intantiations of
KEM combiner:
Ounsworth & Gray Expires 25 November 2023 [Page 9]
Internet-Draft PQ Composite Keys May 2023
+==============+=========+==========+============+
| KEM Combiner | KDF | H | outputBits |
+==============+=========+==========+============+
| KMAC128/256 | KMAC128 | SHA3-256 | 256 |
+--------------+---------+----------+------------+
| KMAC256/384 | KMAC256 | SHA3-512 | 384 |
+--------------+---------+----------+------------+
| KMAC256/512 | KMAC256 | SHA3-512 | 512 |
+--------------+---------+----------+------------+
Table 2: KEM Combiners
KMAC is defined in NIST SP 800-185 [SP800-185]. The KMAC(K, X, L, S)
parameters are instantiated as follows:
* K: the ASCI value of the name of the Kem Type OID.
* X: the value "0x00000001 || k_1 || ... || k_n || fixedInfo", where
k_i = H(ss_i || ct_i), as defined above.
* L: integer representation of outputBits.
* S: empty string.
~~~ BEGIN EDNOTE ~~~
these choices are somewhat arbitrary but aiming to match security
level of the input KEMs. Feedback welcome.
* Kyber512: KMAC128/256
* Kyber768: KMAC256/384
* Kyber1024 KMAC256/512
~~~ END EDNOTE ~~~
For example, the KEM combiner instantiation of the first entry of
Table 3 would be:
ss = KMAC128("id-Kyber512-ECDH-P256-KMAC128",
0x00000001 || SHA3-256(ss_1 || ct_1) || SHA3-256(ss_2 || ct_2) || fixedInfo,
256, "")
Ounsworth & Gray Expires 25 November 2023 [Page 10]
Internet-Draft PQ Composite Keys May 2023
4. Algorithm Identifiers
This table summarizes the list of explicit composite Signature
algorithms by the key and signature OID and the two component
algorithms which make up the explicit composite algorithm. These are
denoted by First Signature Alg, and Second Signature Alg.
The OID referenced are TBD and MUST be used only for prototyping and
replaced with the final IANA-assigned OIDS. The following prefix is
used for each: replace <CompKEM> with the String
"2.16.840.1.114027.80.5.2"
Therefore <CompKEM>.1 is equal to 2.16.840.1.114027.80.5.2.1
The "KEM Combiner" column refers to the definitions in Section 3.7.
Ounsworth & Gray Expires 25 November 2023 [Page 11]
Internet-Draft PQ Composite Keys May 2023
+=======================+============+=========+===============+===========+
|KEM Type OID |OID |First |Second |KEM |
| | |Algorithm|Algorithm |Combiner |
+=======================+============+=========+===============+===========+
|id-Kyber512-ECDH- |<CompKEM>.1 |Kyber512 |ECDH-P256 |KMAC128/256|
|P256-KMAC128 | | | | |
+-----------------------+------------+---------+---------------+-----------+
|id-Kyber512-ECDH- |<CompKEM>.2 |Kyber512 |ECDH- |KMAC128/256|
|brainpoolP256r1-KMAC128| | |brainpoolp256r1| |
+-----------------------+------------+---------+---------------+-----------+
|id- |<CompKEM>.3 |Kyber512 |X25519 |KMAC128/256|
|Kyber512-X25519-KMAC128| | | | |
+-----------------------+------------+---------+---------------+-----------+
|id-Kyber768-RSA-KMAC256|<CompKEM>.4 |Kyber768 |RSA-KEM |KMAC256/384|
+-----------------------+------------+---------+---------------+-----------+
|id-Kyber768-ECDH- |<CompKEM>.5 |Kyber768 |ECDH-P256 |KMAC256/384|
|P256-KMAC256 | | | | |
+-----------------------+------------+---------+---------------+-----------+
|id-Kyber768-ECDH- |<CompKEM>.6 |Kyber768 |ECDH- |KMAC256/384|
|brainpoolP256r1-KMAC256| | |brainpoolp256r1| |
+-----------------------+------------+---------+---------------+-----------+
|id- |<CompKEM>.7 |Kyber768 |X25519 |KMAC256/384|
|Kyber768-X25519-KMAC256| | | | |
+-----------------------+------------+---------+---------------+-----------+
|id-Kyber1024-ECDH- |<CompKEM>.8 |Kyber1024|ECDH-P384 |KMAC256/512|
|P384-KMAC256 | | | | |
+-----------------------+------------+---------+---------------+-----------+
|id-Kyber1024-ECDH- |<CompKEM>.9 |Kyber1024|ECDH- |KMAC256/512|
|brainpoolP384r1-KMAC256| | |brainpoolP384r1| |
+-----------------------+------------+---------+---------------+-----------+
|id- |<CompKEM>.10|Kyber1024|X448 |KMAC256/512|
|Kyber1024-X448-KMAC256 | | | | |
+-----------------------+------------+---------+---------------+-----------+
Table 3: Composite KEM key types
The table above contains everything needed to implement the listed
explicit composite algorithms, with the exception of some special
notes found below in this section. See the ASN.1 module in section
Section 5 for the explicit definitions of the above Composite
signature algorithms.
Full specifications for the referenced algorithms can be found as
follows:
* _ECDH_: There does not appear to be a single IETF definition of
ECDH, so we refer to the following:
Ounsworth & Gray Expires 25 November 2023 [Page 12]
Internet-Draft PQ Composite Keys May 2023
- _ECDH NIST_: SHALL be Elliptic Curve Cryptography Cofactor
Diffie-Hellman (ECC CDH) as defined in section 5.7.1.2 of
[SP.800-56Ar3].
- _ECDH BSI / brainpool_: SHALL be Elliptic Curve Key Agreement
algorithm (ECKA) as defined in section 4.3.1 of [BSI-ECC]
* _Kyber_: [I-D.ietf-lamps-kyber-certificates]
* _RSA-KEM_: [RFC5990]
* _X25519 / X448_: [RFC8410]
EDNOTE: I believe that [SP.800-56Ar3] and [BSI-ECC] give equivalent
and interoperable algorithms, so maybe this is extranuous detail to
include?
4.1. Notes on id-Kyber768-RSA-KMAC256
Use of RSA-KEM [RFC5990] deserves a special explanation.
GenericHybridParameters is defined in [RFC5990], repeated here for
clarity:
GenericHybridParameters ::= {
kem KeyEncapsulationMechanism,
dem DataEncapsulationMechanism
}
The GenericHybridParameters.kem MUST be id-kem-rsa as defined in
[RFC5990]:
id-kem-rsa OID ::= {
is18033-2 key-encapsulation-mechanism(2) rsa(4)
}
The associated parameters for id-kem-rsa have type RsaKemParameters:
RsaKemParameters ::= {
keyDerivationFunction KeyDerivationFunction,
keyLength KeyLength
}
For use with id-Kyber768-RSA-KMAC256, the keyDerivationFunction SHALL
be id-sha3-384 and keyLength SHALL be 384.
Ounsworth & Gray Expires 25 November 2023 [Page 13]
Internet-Draft PQ Composite Keys May 2023
EDNOTE: I'm borrowing id-sha3-384 from draft-turner-lamps-adding-
sha3-to-pkix-00, which looks ilke was abandoned. Do we have PKIX
OIDs for SHA3?
EDNOTE: Since the crypto is fixed, we could omit the parameters
entirely and expect implementations to re-constitute the params
structures as necessary in order to call into lower-level crypto
libraries.
TODO: there must be a way to put all this the ASN.1 Module rather
than just specifying it as text?
5. ASN.1 Module
<CODE STARTS>
Composite-KEM-2023
{iso(1) identified-organization(3) dod(6) internet(1) security(5)
mechanisms(5) pkix(7) id-mod(0) id-mod-composite-kems(TBD)}
DEFINITIONS IMPLICIT TAGS ::= BEGIN
EXPORTS ALL;
IMPORTS
AlgorithmIdentifier{}
FROM AlgorithmInformation-2009 -- RFC 5912 [X509ASN1]
{ iso(1) identified-organization(3) dod(6) internet(1)
security(5) mechanisms(5) pkix(7) id-mod(0)
id-mod-algorithmInformation-02(58) }
KEM-ALGORITHM, KEMAlgSet
FROM KEMAlgorithmInformation-2023
{ iso(1) identified-organization(3) dod(6) internet(1)
security(5) mechanisms(5) pkix(7) id-mod(0)
id-mod-kemAlgorithmInformation-2023(99) }
id-rsa-kem, GenericHybridParameters
FROM CMS-RSA-KEM
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
pkcs-9(9) smime(16) modules(0) cms-rsa-kem(21) }
id-RSASSA-PSS, RSASSA-PSS-Params
FROM PKCS-1 {
iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
modules(0) pkcs-1(1)
Ounsworth & Gray Expires 25 November 2023 [Page 14]
Internet-Draft PQ Composite Keys May 2023
}
id-Kyber512-ECDH-P256-KMAC128,
pk-Kyber512-ECDH-P256-KMAC128,
id-Kyber512-ECDH-brainpoolP256r1-KMAC128,
pk-Kyber512-ECDH-brainpoolP256r1-KMAC128,
id-Kyber512-X25519-KMAC128,
pk-Kyber512-X25519-KMAC128,
id-Kyber768-RSA-KMAC256,
pk-Kyber768-RSA-KMAC256,
id-Kyber768-ECDH-P256-KMAC256,
pk-Kyber768-ECDH-P256-KMAC256,
id-Kyber768-ECDH-brainpoolP256r1-KMAC256,
pk-Kyber768-ECDH-brainpoolP256r1-KMAC256,
id-Kyber768-X25519-KMAC256,
pk-Kyber768-X25519-KMAC256,
id-Kyber1024-ECDH-P384-KMAC256,
pk-Kyber1024-ECDH-P384-KMAC256,
id-Kyber1024-ECDH-brainpoolP384r1-KMAC256,
pk-Kyber1024-ECDH-brainpoolP384r1-KMAC256,
id-Kyber1024-X448-KMAC256,
pk-Kyber1024-X448-KMAC256
FROM CompositeKeys-2023
{iso(1) identified-organization(3) dod(6) internet(1) security(5)
mechanisms(5) pkix(7) id-mod(0) id-mod-composite-keys(98)};
--
-- Composite structures
--
CompositeCiphertextValue ::= SEQUENCE SIZE (2..MAX) OF OCTET STRING
CompositeKemParams ::= SEQUENCE SIZE (2..MAX) OF AlgorithmIdentifier{
KEM-ALGORITHM, {KEMAlgSet} }
ExplicitCompositeKemParams{KEM-ALGORITHM:FirstKemAlg,
KEM-ALGORITHM:SecondKemAlg} ::=
SEQUENCE {
kemAlgorithm1 AlgorithmIdentifier
{ KEM-ALGORITHM, {FirstKemAlg}},
kemAlgorithm2 AlgorithmIdentifier
{ KEM-ALGORITHM, {SecondKemAlg}} }
kema-explicitCompositeKEM{OBJECT IDENTIFIER:id, PUBLIC-KEY:publicKeyObject,
CompositeKemParams} KEM-ALGORITHM ::= {
Ounsworth & Gray Expires 25 November 2023 [Page 15]
Internet-Draft PQ Composite Keys May 2023
IDENTIFIER id
VALUE CompositeCiphertextValue
PARAMS TYPE CompositeKemParams ARE required
PUBLIC-KEYS {publicKeyObject} }
-- Explicit Composite KEMs
kema-Kyber512-ECDH-P256-KMAC128 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber512-ECDH-P256-KMAC128,
pk-Kyber512-ECDH-P256-KMAC128,
ExplicitCompositeKemParams{{kema-Kyber512TBD}, {kema-ecdh-p256}} }
--TODO: `kema-ecdh-p256` does not actually exist yet.
kema-Kyber512-ECDH-brainpoolP256r1-KMAC128 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber512-ECDH-brainpoolP256r1-KMAC128,
pk-Kyber512-ECDH-brainpoolP256r1-KMAC128,
ExplicitCompositeKemParams{{kema-Kyber512TBD}, {kema-ecdh-brainpoolp256r1}} }
--TODO: `kema-ecdh-brainpoolp256r1` does not actually exist yet.
kema-Kyber512-X25519-KMAC128 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber512-X25519-KMAC128,
pk-Kyber512-X25519-KMAC128,
ExplicitCompositeKemParams{{kema-Kyber512TBD}, {kema-x25519}} }
--TODO: `kema-x25519` does not actually exist yet.
kema-Kyber768-RSA-KMAC256 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber768-RSA-KMAC256,
pk-Kyber768-RSA-KMAC256,
ExplicitCompositeKemParams{{kema-Kyber512TBD}, {kema-kem-rsa}} }
kema-Kyber768-ECDH-P256-KMAC256 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber768-ECDH-P256-KMAC256,
pk-Kyber768-ECDH-P256-KMAC256,
ExplicitCompositeKemParams{{kema-Kyber768TBD}, {kema-ecdh-p256}} }
--TODO: `kema-ecdh-p256` does not actually exist yet.
Ounsworth & Gray Expires 25 November 2023 [Page 16]
Internet-Draft PQ Composite Keys May 2023
kema-Kyber768-ECDH-brainpoolP256r1-KMAC256 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber768-ECDH-brainpoolP256r1-KMAC256,
pk-Kyber768-ECDH-brainpoolP256r1-KMAC256,
ExplicitCompositeKemParams{{kema-Kyber768TBD}, {kema-ecdh-brainpoolp256r1}} }
--TODO: `kema-ecdh-brainpoolp256r1` does not actually exist yet.
kema-Kyber768-X25519-KMAC256 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber768-X25519-KMAC256,
pk-Kyber768-X25519-KMAC256,
ExplicitCompositeKemParams{{kema-Kyber768TBD}, {kema-x25519}} }
--TODO: `kema-x25519` does not actually exist yet.
kema-Kyber1024-ECDH-P384-KMAC256 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber1024-ECDH-P384-KMAC256,
pk-Kyber1024-ECDH-P384-KMAC256,
ExplicitCompositeKemParams{{kema-Kyber1024TBD}, {kema-ecdh-p384}} }
--TODO: `kema-ecdh-p384` does not actually exist yet.
kema-Kyber1024-ECDH-brainpoolP384r1-KMAC256 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber1024-ECDH-brainpoolP384r1-KMAC256,
pk-Kyber1024-ECDH-brainpoolP384r1-KMAC256,
ExplicitCompositeKemParams{{kema-Kyber1024TBD}, {kema-ecdh-brainpoolp384r1}}}
--TODO: `kema-ecdh-brainpoolp384r1` does not actually exist yet.
kema-Kyber1024-X448-KMAC256 KEM-ALGORITHM ::=
kema-explicitCompositeKEM{id-Kyber1024-X448-KMAC256,
pk-Kyber1024-X448-KMAC256,
ExplicitCompositeKemParams{{kema-Kyber1024TBD}, {kema-x448}} }
--TODO: `kema-x448` does not actually exist yet.
END
<CODE ENDS>
6. IANA Considerations
The following need to be assigned by IANA:
* The OID for the ASN.1 module Composite-KEM-2023
Ounsworth & Gray Expires 25 November 2023 [Page 17]
Internet-Draft PQ Composite Keys May 2023
TODO
7. Security Considerations
7.1. Policy for Deprecated and Acceptable Algorithms
Traditionally, a public key, certificate, or signature contains a
single cryptographic algorithm. If and when an algorithm becomes
deprecated (for example, RSA-512, or SHA1), it is obvious that
structures using that algorithm are implicitly revoked.
In the composite model this is less obvious since implementers may
decide that certain cryptographic algorithms have complementary
security properties and are acceptable in combination even though one
or both algorithms are deprecated for individual use. As such, a
single composite public key, certificate, signature, or ciphertext
may contain a mixture of deprecated and non-deprecated algorithms.
Specifying behaviour in these cases is beyond the scope of this
document, but should be considered by Implementers and potentially in
additional standards.
EDNOTE: Max is working on a CRL mechanism to accomplish this.
7.2. OR Modes
TODO -- we'll need security consideration analysis of whatever OR
modes we choose.
7.3. KEM Combiner
This document uses directly the KEM Combiner defined in
[I-D.ounsworth-cfrg-kem-combiners] and therefore inherits all of its
security considerations, which the authors believe have all been
addressed in the concrete choices for explicit composites.
8. References
8.1. Normative References
[BSI-ECC] Federal Office for Information Security (BSI), "Technical
Guideline BSI TR-03111: Elliptic Curve Cryptography.
Version 2.10", 1 June 2018.