forked from usnistgov/ACVP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acvp_sub_kas_ffc.txt
3416 lines (2650 loc) · 233 KB
/
acvp_sub_kas_ffc.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
TBD B. Fussell, Ed.
Internet-Draft Cisco Systems, Inc.
Intended status: Informational R. Hammett, Ed.
Expires: March 5, 2019 G2, Inc.
September 2018
ACVP KAS FFC JSON Specification
draft-ietf-acvp-subkasffc-0.5
Abstract
This document defines the JSON schema for using KAS FFC algorithms
with the ACVP specification.
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 http://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 March 5, 2019.
Copyright Notice
Copyright (c) 2018 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
(http://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 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.
Fussell & Hammett Expires March 5, 2019 [Page 1]
Internet-Draft Sym Alg JSON September 2018
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Requirements Language . . . . . . . . . . . . . . . . . . 3
2. Test Types and Test Coverage . . . . . . . . . . . . . . . . 3
2.1. Test Coverage . . . . . . . . . . . . . . . . . . . . . . 4
2.1.1. KAS-ECC Requirements Covered . . . . . . . . . . . . 4
2.1.2. KAS-ECC Requirements Not Covered . . . . . . . . . . 5
3. Capabilities Registration . . . . . . . . . . . . . . . . . . 6
3.1. Required Prerequisite Algorithms for KAS FFC Validations 6
3.2. KAS FFC Algorithm Capabilities JSON Values . . . . . . . 8
3.3. Supported KAS FFC Functions . . . . . . . . . . . . . . . 9
3.4. KAS FFC Schemes . . . . . . . . . . . . . . . . . . . . . 10
3.4.1. KAS FFC Scheme Capabilities JSON Values . . . . . . . 10
3.4.2. Supported KAS FFC Schemes . . . . . . . . . . . . . . 11
3.5. KAS FFC Modes . . . . . . . . . . . . . . . . . . . . . . 12
3.5.1. KAS FFC noKdfNoKc . . . . . . . . . . . . . . . . . . 12
3.5.2. KAS FFC kdfNoKc . . . . . . . . . . . . . . . . . . . 12
3.5.3. KAS FFC kdfKc . . . . . . . . . . . . . . . . . . . . 13
3.6. Parameter Sets . . . . . . . . . . . . . . . . . . . . . 13
3.6.1. KAS FFC Parameter Set . . . . . . . . . . . . . . . . 13
3.6.2. KAS FFC Parameter Set Details . . . . . . . . . . . . 14
3.7. Supported Hash Algorithm Methods . . . . . . . . . . . . 14
3.8. Supported KAS FFC MAC Options . . . . . . . . . . . . . . 15
3.9. Supported KAS FFC KDF Options . . . . . . . . . . . . . . 16
3.9.1. Other Information Construction . . . . . . . . . . . 17
3.10. Supported KAS FFC KC Options . . . . . . . . . . . . . . 18
3.11. Example KAS FFC Capabilities JSON Object . . . . . . . . 18
3.12. Example KAS FFC Component Capabilities JSON Object . . . 21
4. Generation requirements per party per scheme . . . . . . . . 22
5. Test Vectors . . . . . . . . . . . . . . . . . . . . . . . . 30
5.1. Test Groups JSON Schema . . . . . . . . . . . . . . . . . 31
5.2. Test Case JSON Schema . . . . . . . . . . . . . . . . . . 34
5.3. Example Test Vectors JSON Object . . . . . . . . . . . . 37
5.4. Example Test Vectors Component JSON Object . . . . . . . 51
6. Test Vector Responses . . . . . . . . . . . . . . . . . . . . 53
6.1. Example Test Results JSON Object . . . . . . . . . . . . 54
6.2. Example Test Results Component JSON Object . . . . . . . 59
7. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 60
8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 60
9. Security Considerations . . . . . . . . . . . . . . . . . . . 60
10. Normative References . . . . . . . . . . . . . . . . . . . . 60
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 61
Fussell & Hammett Expires March 5, 2019 [Page 2]
Internet-Draft Sym Alg JSON September 2018
1. Introduction
The Automated Crypto Validation Protocol (ACVP) defines a mechanism
to automatically verify the cryptographic implementation of a
software or hardware crypto module. The ACVP specification defines
how a crypto module communicates with an ACVP server, including
crypto capabilities negotiation, session management, authentication,
vector processing and more. The ACVP specification does not define
algorithm specific JSON constructs for performing the crypto
validation. A series of ACVP sub-specifications define the
constructs for testing individual crypto algorithms. Each sub-
specification addresses a specific class of crypto algorithms. This
sub-specification defines the JSON constructs for testing KAS FFC
algorithms using ACVP.
1.1. Requirements Language
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted in RFC 2119 [RFC2119].
2. Test Types and Test Coverage
The ACVP server performs a set of tests on the KAS protocol in order
to assess the correctness and robustness of the implementation. A
typical ACVP validation session would require multiple tests to be
performed for every supported permutation of KAS capabilities. This
section describes the design of the tests used to validate
implementations of KAS algorithms. There are two test types for KAS
testing:
"AFT" - Algorithm Function Test. In the AFT test mode, the IUT
MUST act as a party in the Key Agreement with the ACVP server.
The server SHALL generate and provide all necessary information
for the IUT to perform a successful key agreement; both the server
and IUT MAY act as party U/V, as well as recipient/provider to key
confirmation.
"VAL" - Validation test. In the VAL test mode, The ACVP server
generates a complete (from both party U and party V's
perspectives) key agreement, and REQUIRES the IUT to determine if
that agreement is valid. Various types of errors SHALL be
introduced in varying portions of the key agreement process
(changed DKM, changed key, changed hash, etc), that the IUT MUST
be able to detect and report on.
Fussell & Hammett Expires March 5, 2019 [Page 3]
Internet-Draft Sym Alg JSON September 2018
2.1. Test Coverage
The tests described in this document have the intention of ensuring
an implementation is conformant to [SP800-56a].
2.1.1. KAS-ECC Requirements Covered
SP 800-56a - 4.1 Key Establishment Preparations. The ACVP server
is responsible for generating domain parameters as per the IUT's
capability registration.
SP 800-56a - 4.2 Key-Agreement Process. Both the ACVP server and
IUT participate in the Key Agreement process. The server and IUT
can both take the roles of party U/V, and as such the "performer"
of steps depicted in "Figure 2: Key Agreement process" can vary.
SP 800-56a - 5.1 Cryptographic Hash Functions. All modes of
performing KAS SHALL make use of a hash function. The hash
function MAY be used for confirmation of a successfully generated
shared secret Z (noKdfNoKc), or as a primitive within the KDF
being tested (kdfNoKc and kdfKc).
SP 800-56a - 5.2 Message Authentication Code (MAC) Algorithm. A
MAC is utilized for confirmation of success for kdfNoKc and kdfKc
modes of KAS. Note - a MAC prerequisite is REQUIRED only for
kdfKc, though is utilized for both kdfNoKc and kdfKc.
SP 800-56a - 5.4 Nonce. Nonces are made use of in various KAS
schemes - both the ACVP server and IUT SHALL be expected to
generate nonces.
SP 800-56a - 5.6 Domain Parameters. Domain Parameter Generation
SHALL be performed solely from the ACVP server, with constraints
from the IUTs capabilities registration. The same set of domain
parameters SHALL generate all keypairs (party U/V, static/
ephemeral) for a single test case.
SP 800-56a - 5.6 Key-Pair Generation. While Key-Pairs are used in
each KAS scheme, the generation of said key-pairs is out of scope
for KAS testing. Random tests from the VAL groups, MAY inject bad
keypairs that the IUT MUST be able detect. These random tests are
only present in groups given appropriate assurance functions see:
Section 3.3
SP 800-56a - 4.3 DLC-based Key-Transport Process / 5.7 DLC
Primitives. Depending on the scheme used, either Diffie Hellman
or MQV SHALL be used to negotiate a shared secret of z. Testing
Fussell & Hammett Expires March 5, 2019 [Page 4]
Internet-Draft Sym Alg JSON September 2018
and validation of such key exchanges is covered under their
respective schemes.
SP 800-56a - 5.8 Key-Derivation Methods for Key-Agreement Schemes.
All schemes/modes save noKdfNoKc (component) MUST make use of a
KDF. KDF construction SHALL utilize Section 3.9.1 for its
pattern.
SP 800-56a - 5.9 Key Confirmation. Most KAS schemes allow for a
Key Confirmation process, the ACVP server and IUT MAY be Providers
or Recipients of said confirmation. Additionally, key
confirmation MAY be performed on one or both parties (depending on
scheme).
SP 800-56a - 6 Key Agreement Schemes. All schemes specified in
referenced document are supported for validation with the ACVP
server.
2.1.2. KAS-ECC Requirements Not Covered
SP 800-56a - 4.1 Key Establishment Preparations. The ACVP server
SHALL NOT make a distinction between IUT generated keys via a
trusted third party and the IUT itself.
SP 800-56a - 5.3 Random Number Generation. The IUT MUST perform
all random number generation with a validated random number
generator. A DRBG is REQUIRED as a prerequisite to KAS, but SHALL
NOT be in the scope testing assurances.
SP 800-56a - 5.4 Nonce. Nonce generation is utilized for several
schemes. The various methods of generating a nonce described in
section 5.5 MUST be used, however their generation SHALL NOT be in
scope of KAS testing assurances
SP 800-56a - 5.5.2 Assurances of Domain-Parameter Validity. The
ACVP server SHALL generate all domain parameters, IUT validation
of such parameters is SHALL NOT be in scope for KAS testing.
SP 800-56a - 5.5.3 Domain Parameter Management. Domain Parameter
Management SHALL NOT be in scope for KAS testing.
SP 800-56a - 5.6 Key-Pair Generation. While Key-Pairs MUST be
used in each KAS scheme, the generation, assurances, and
management of said key-pairs SHALL NOT be in scope of KAS testing.
SP 800-56a - 5.8 Key-Derivation Methods for Key-Agreement Schemes.
Two-step Key-Derivation (Extraction-then-Expansion) SHALL NOT be
utilized in KAS testing.
Fussell & Hammett Expires March 5, 2019 [Page 5]
Internet-Draft Sym Alg JSON September 2018
SP 800-56a - 5.9 Key Confirmation. KMAC is referenced in 800-56a
as being a valid MAC function; it however SHALL NOT (currently) be
supported in KAS testing.
SP 800-56a - 5.7 Rationale for Selecting a Specific Scheme. It is
expected that the IUT registers all schemes it supports in its
capabilities registration. Selecting specific schemes from a KAS
testing perspective SHALL NOT be in scope.
SP 800-56a - 8 Key Recovery. Key Recovery SHALL NOT be in scope
of KAS testing.
3. Capabilities Registration
ACVP REQUIRES crypto modules to register their capabilities. This
allows the crypto module to advertise support for specific
algorithms, notifying the ACVP server which algorithms need test
vectors generated for the validation process. This section describes
the constructs for advertising support of KAS FFC algorithms to the
ACVP server.
The algorithm capabilities are advertised as JSON objects within the
'algorithms' value of the ACVP registration message. The
'algorithms' value is an array, where each array element is an
individual JSON object defined in this section. The 'algorithms'
value is part of the 'capability_exchange' element of the ACVP JSON
registration message. See the ACVP specification for details on the
registration message. Each KDF algorithm capability advertised is a
self-contained JSON object.
3.1. Required Prerequisite Algorithms for KAS FFC Validations
Some algorithm implementations rely on other cryptographic
primitives. For example, IKEv2 uses an underlying SHA algorithm.
Each of these underlying algorithm primitives must be validated,
either separately or as part of the same submission. ACVP provides a
mechanism for specifying the required prerequisites:
Fussell & Hammett Expires March 5, 2019 [Page 6]
Internet-Draft Sym Alg JSON September 2018
+--------------+--------------+--------------+-----------+----------+
| JSON Value | Description | JSON type | Valid | Optional |
| | | | Values | |
+--------------+--------------+--------------+-----------+----------+
| algorithm | a | value | CCM, | No |
| | prerequisite | | CMAC, | |
| | algorithm | | DRBG, | |
| | | | DSA, | |
| | | | HMAC, SHA | |
| | | | | |
| valValue | algorithm | value | actual | No |
| | validation | | number or | |
| | number | | "same" | |
| | | | | |
| prereqAlgVal | prerequistie | object with | see above | Yes |
| | algorithm | algorithm | | |
| | validation | and valValue | | |
| | | properties | | |
| | | | | |
+--------------+--------------+--------------+-----------+----------+
Table 1: Required Prerequisite Algorithms JSON Values
KAS has conditional prerequisite algorithms, depending on the
capabilities registered:
Fussell & Hammett Expires March 5, 2019 [Page 7]
Internet-Draft Sym Alg JSON September 2018
+--------------+----------------------------------------------------+
| Prerequisite | Condition |
| Algorithm | |
+--------------+----------------------------------------------------+
| DRBG | Always REQUIRED |
| | |
| SHA | Always REQUIRED |
| | |
| DSA | DSA.PQGGen validation REQUIRED when IUT using |
| | assurance function of "dpGen". DSA.PQGVer |
| | validation REQUIRED when IUT using assurance |
| | function of "dpVal". DSA.KeyPairGen validation |
| | REQUIRED when IUT using assurances functions of |
| | "keyPairGen", or "keyRegen". |
| | |
| AES-CCM | AES-CCM validation REQUIRED when IUT is performing |
| | KeyConfirmation (KC) and utilizing AES-CCM. |
| | |
| CMAC | CMAC validation REQUIRED when IUT is performing |
| | KeyConfirmation (KC) and utilizing CMAC. |
| | |
| HMAC | HMAC validation REQUIRED when IUT is performing |
| | KeyConfirmation (KC) and utilizing HMAC. |
| | |
+--------------+----------------------------------------------------+
Table 2: Prerequisite requirement conditions
3.2. KAS FFC Algorithm Capabilities JSON Values
Each algorithm capability advertised is a self-contained JSON object
using the following values.
Fussell & Hammett Expires March 5, 2019 [Page 8]
Internet-Draft Sym Alg JSON September 2018
+------------+----------------+--------------+-----------+----------+
| JSON Value | Description | JSON type | Valid | Optional |
| | | | Values | |
+------------+----------------+--------------+-----------+----------+
| algorithm | The algorithm | value | KAS-FFC | No |
| | under test | | | |
| | | | | |
| mode | The algorithm | value | Component | Yes |
| | mode. | | | |
| | | | | |
| prereqVals | Prerequisite | array of | See | No |
| | algorithm | prereqAlgVal | Section | |
| | validations | objects | 3.1 | |
| | | | | |
| function | Type of | array | See | No |
| | function | | Section | |
| | supported | | 3.3 | |
| | | | | |
| scheme | Array of | object | See | No |
| | supported key | | Section | |
| | agreement | | 3.4.1 | |
| | schemes each | | | |
| | having their | | | |
| | own | | | |
| | capabilities | | | |
| | | | | |
+------------+----------------+--------------+-----------+----------+
Table 3: KAS FFC Capabilities JSON Values
Note: Some optional values are REQUIRED depending on the algorithm.
Failure to provide these values will result in the ACVP server
returning an error to the ACVP client during registration.
3.3. Supported KAS FFC Functions
The following function types MAY be advertised by the ACVP compliant
crypto module:
o dpGen - IUT can perform domain parameter generation (FFC only)
o dpVal - IUT can perform domain parameter validation (FFC only)
o keyPairGen - IUT can perform keypair generation.
o fullVal - IUT can perform full public key validation ( [SP800-56a]
section 5.6.2.3.1 / 5.6.2.3.3)
Fussell & Hammett Expires March 5, 2019 [Page 9]
Internet-Draft Sym Alg JSON September 2018
o partialVal - IUT can perform partial public key validation (
[SP800-56a] section 5.6.2.3.2 / 5.6.2.3.4)
o keyRegen - IUT can regenerate keys given a specific seed and
domain parameter (pqg for FFC, curve for ECC)
3.4. KAS FFC Schemes
3.4.1. KAS FFC Scheme Capabilities JSON Values
All other scheme capabilities are advertised is a self-contained JSON
object using the following values. Note that at least one of
"noKdfNoKc", "kdfNoKc", or "kdfKc" MUST be supplied with the
registration. See Section 3.4.2 for allowed FFC scheme types.
Fussell & Hammett Expires March 5, 2019 [Page 10]
Internet-Draft Sym Alg JSON September 2018
+-----------+-----------------------+--------+-----------+----------+
| JSON | Description | JSON | Valid | Optional |
| Value | | type | Values | |
+-----------+-----------------------+--------+-----------+----------+
| kasRole | Roles supported for | array | initiator | No |
| | key agreement | | and/or | |
| | | | responder | |
| | | | | |
| noKdfNoKc | Indicates no KDF, no | object | Section | Yes |
| | KC tests are to be | | 3.5.1 | |
| | generated. Note this | | | |
| | is a COMPONENT mode | | | |
| | only test. This | | | |
| | property MUST only be | | | |
| | used with "KAS-FFC" / | | | |
| | "Component" | | | |
| | | | | |
| kdfNoKc | Indicates KDF, no KC | object | Section | Yes |
| | tests are to be | | 3.5.2 | |
| | generated. Note this | | | |
| | is a KAS-FFC only | | | |
| | test. This mode MUST | | | |
| | only be used for | | | |
| | registrations with | | | |
| | "KAS-FFC" (no mode) | | | |
| | | | | |
| kdfKc | Indicates KDF, KC | object | Section | Yes |
| | tests are to be | | 3.5.3 | |
| | generated. Note this | | | |
| | is a KAS-FFC only | | | |
| | test. This mode MAY | | | |
| | only be used for | | | |
| | registrations with | | | |
| | "KAS-FFC" (no mode) | | | |
| | | | | |
+-----------+-----------------------+--------+-----------+----------+
Table 4: KAS FFC Capabilities JSON Values
3.4.2. Supported KAS FFC Schemes
The following schemes MAY be advertised by the ACVP compliant crypto
module:
o dhHybrid1
o MQV2
Fussell & Hammett Expires March 5, 2019 [Page 11]
Internet-Draft Sym Alg JSON September 2018
o dhEphem - KeyConfirmation not supported.
o dhHybridOneFlow
o MQV1
o dhOneFlow - Can only provide unilateral key confirmation party V
to party U.
o dhStatic
3.5. KAS FFC Modes
3.5.1. KAS FFC noKdfNoKc
Contains properties REQUIRED for "noKdfNoKc" registration.
+--------------+---------------------+--------+----------+----------+
| JSON Value | Description | JSON | Valid | Optional |
| | | type | Values | |
+--------------+---------------------+--------+----------+----------+
| parameterSet | The parameterSet | object | Section | No |
| | options for | | 3.6.1 | |
| | "noKdfNoKc" | | | |
| | | | | |
+--------------+---------------------+--------+----------+----------+
Table 5: NoKdfNoKc Capabilities
3.5.2. KAS FFC kdfNoKc
Contains properties REQUIRED for "kdfNoKc" registration.
+--------------+---------------------+--------+----------+----------+
| JSON Value | Description | JSON | Valid | Optional |
| | | type | Values | |
+--------------+---------------------+--------+----------+----------+
| kdfOption | The kdf options for | object | Section | No |
| | "kdfNoKc" | | 3.9 | |
| | | | | |
| parameterSet | The parameterSet | object | Section | No |
| | options for | | 3.6.1 | |
| | "kdfNoKc" | | | |
| | | | | |
+--------------+---------------------+--------+----------+----------+
Table 6: kdfNoKc Capabilities
Fussell & Hammett Expires March 5, 2019 [Page 12]
Internet-Draft Sym Alg JSON September 2018
3.5.3. KAS FFC kdfKc
Contains properties REQUIRED for "kdfKc" registration.
+--------------+---------------------+--------+----------+----------+
| JSON Value | Description | JSON | Valid | Optional |
| | | type | Values | |
+--------------+---------------------+--------+----------+----------+
| kdfOption | The kdf options for | object | Section | No |
| | "kdfNoKc" | | 3.9 | |
| | | | | |
| kcOption | The kc options for | object | Section | No |
| | "kdfNoKc" | | 3.10 | |
| | | | | |
| parameterSet | The parameterSet | object | Section | No |
| | options for | | 3.6.1 | |
| | "kdfNoKc" | | | |
| | | | | |
+--------------+---------------------+--------+----------+----------+
Table 7: kdfKc Capabilities
3.6. Parameter Sets
3.6.1. KAS FFC Parameter Set
Each parameter set advertised is a self-contained JSON object using
the following values. Note that at least one parameter set ("fb",
"fc") MUST be provided.
+----------+------------------+----------+---------------+----------+
| JSON | Description | JSON | Valid Values | Optional |
| Value | | type | | |
+----------+------------------+----------+---------------+----------+
| fb | The fb parameter | object | See Section | Yes |
| | set | | 3.6.2 | |
| | | | | |
| fc | The fc parameter | object | See Section | Yes |
| | set | | 3.6.2 | |
| | | | | |
+----------+------------------+----------+---------------+----------+
Table 8: KAS FFC Parameter Set Capabilities JSON Values
Fussell & Hammett Expires March 5, 2019 [Page 13]
Internet-Draft Sym Alg JSON September 2018
3.6.2. KAS FFC Parameter Set Details
fb/fc changes minimum allowed values on options.
fb: Len p - 2048, Len q - 224, min hash len - 224, min keySize - 112,
min macSize - 64
fc: Len p - 2048, Len q - 256, min hash len - 256, min keySize - 128,
min macSize - 64
"noKdfNoKc" REQUIRES "hashAlg"
"kdfNoKc" REQUIRES "hashAlg" and at least one valid MAC registration
"kdfKc" REQUIRES "hashAlg" and at least one valid MAC registration
+-----------+-----------------------+--------+-----------+----------+
| JSON | Description | JSON | Valid | Optional |
| Value | | type | Values | |
+-----------+-----------------------+--------+-----------+----------+
| hashAlg | The hash algorithms | array | See | Yes |
| | to use for DSA (and | | Section | |
| | noKdfNoKc) | | 3.7 | |
| | | | | |
| macOption | The macOption(s) to | object | See | Yes |
| | use with "kdfNoKc" | | Section | |
| | and/or "kdfKc" | | 3.8 | |
| | | | | |
+-----------+-----------------------+--------+-----------+----------+
Table 9: KAS FFC Parameter Set Details Capabilities JSON Values
3.7. Supported Hash Algorithm Methods
The following SHA methods MAY be advertised by the ACVP compliant
crypto module:
o SHA2-224
o SHA2-256
o SHA2-384
o SHA2-512
Fussell & Hammett Expires March 5, 2019 [Page 14]
Internet-Draft Sym Alg JSON September 2018
3.8. Supported KAS FFC MAC Options
The following MAC options MAY be advertised for registration under a
"kdfNoKc" and "kdfKc" kasMode:
o AES-CCM
o CMAC
o HMAC-SHA2-224
o HMAC-SHA2-256
o HMAC-SHA2-384
o HMAC-SHA2-512
Fussell & Hammett Expires March 5, 2019 [Page 15]
Internet-Draft Sym Alg JSON September 2018
+----------+-------------+--------+---------------------+-----------+
| JSON | Description | JSON | Valid Values | Optional |
| Value | | type | | |
+----------+-------------+--------+---------------------+-----------+
| keyLen | The | Domain | AES based MACs | No |
| | supported | | limited to 128, | |
| | keyLens for | | 192, 256. HashAlg | |
| | the | | based MACs mod 8. | |
| | selected | | All keySizes | |
| | MAC. | | minimum MUST | |
| | | | conform to | |
| | | | parameter set | |
| | | | requirements See | |
| | | | Section 3.6.2 . | |
| | | | | |
| nonceLen | The nonce | value | Input as bits, | Yes |
| | len for use | | 56-104, odd byte | (REQUIRED |
| | with AES- | | values only (7-13). | for AES- |
| | CCM mac | | Additionally | CCM) |
| | | | minimum MUST | |
| | | | conform to | |
| | | | parameter set | |
| | | | requirements See | |
| | | | Section 3.6.2 . | |
| | | | | |
| macLen | The mac len | value | Input as bits, mod | Yes |
| | for use | | 8, minimum MUST | (REQUIRED |
| | with mac | | conform to | for AES- |
| | | | parameter set | CCM) |
| | | | requirements See | |
| | | | Section 3.6.2 , | |
| | | | maximum MAY NOT | |
| | | | exceed block size.. | |
| | | | | |
+----------+-------------+--------+---------------------+-----------+
Table 10: KAS FFC Mac Option Details
3.9. Supported KAS FFC KDF Options
The following MAC options are available for registration under a
"kdfNoKc" and "kdfKc" kasMode:
o concatenation
o asn1
Fussell & Hammett Expires March 5, 2019 [Page 16]
Internet-Draft Sym Alg JSON September 2018
+-----------+-----------------------+-------+------------+----------+
| JSON | Description | JSON | Valid | Optional |
| Value | | type | Values | |
+-----------+-----------------------+-------+------------+----------+
| oiPattern | The OI pattern to use | value | See | No |
| | for constructing | | Section | |
| | OtherInformation. | | 3.9.1 . | |
| | | | | |
+-----------+-----------------------+-------+------------+----------+
Table 11: KAS FFC KDF Option Details
3.9.1. Other Information Construction
Some IUTs MAY require a specific pattern for the OtherInfo portion of
the KDFs for KAS. An "oiPattern" is specified in the KDF
registration to accommodate such requirements. Regardless of the
oiPattern specified, the OI bitlength MUST be 240 for FFC, and 376
for ECC. The OI will be padded with random bits (or the most
significant bits utilized) when the specified OI pattern does not
meet the bitlength requirement
Pattern candidates:
o literal[123456789ABCDEF]
* uses the specified hex within "[]". literal[123456789ABCDEF]
substitutes "123456789ABCDEF" in place of the field
o uPartyInfo
* uPartyId { || dkmNonce }
+ dkmNonce is provided by party u for static schemes
o vPartyInfo
* vPartyId
o counter
* 32bit counter starting at "1" (0x00000001)
Example (Note that party U is the server in this case "434156536964",
party V is the IUT "a1b2c3d4e5", using an FFC non-static scheme):
o "concatenation" :
"literal[123456789CAFECAFE]||uPartyInfo||vPartyInfo"
Fussell & Hammett Expires March 5, 2019 [Page 17]
Internet-Draft Sym Alg JSON September 2018
Evaluated as:
o "123456789CAFECAFE434156536964a1b2c3d4e5b16c5f78ef56e8c14a561"
o "b16c5f78ef56e8c14a561" are random bits applied to meet length
requirements
3.10. Supported KAS FFC KC Options
The following KC options are available for registration under a
"kdfKc" kasMode:
+----------+----------------+------+---------------------+----------+
| JSON | Description | JSON | Valid Values | Optional |
| Value | | type | | |
+----------+----------------+------+---------------------+----------+
| kcRole | The role(s) | arra | provider/recipient | No |
| | the IUT is to | y | | |
| | act as for Key | | | |
| | Confirmation. | | | |
| | | | | |
| kcType | The type(s) | arra | unilateral/bilatera | No |
| | the IUT is to | y | l | |
| | act as for Key | | | |
| | Confirmation. | | | |
| | | | | |
| nonceTyp | The nonce | arra | randomNonce, | No |
| e | type(s) the | y | timestamp, | |
| | IUT is to use | | sequence, | |
| | for KeyConfirm | | timestampSequence | |
| | ation. | | | |
| | | | | |
+----------+----------------+------+---------------------+----------+
Table 12: KAS FFC KC Option Details Capabilities
3.11. Example KAS FFC Capabilities JSON Object
The following is a example JSON object advertising support for KAS
FFC.
{