forked from usnistgov/ACVP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acvp_sub_kdf108.txt
1008 lines (649 loc) · 36.4 KB
/
acvp_sub_kdf108.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 August 1, 2018
Expires: February 2, 2019
ACVP SP800-108 Key Derivation Function Algorithm JSON Specification
draft-ietf-acvp-subkdf108-0.5
Abstract
This document defines the JSON schema for using SP800-108 KDF
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 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 February 2, 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
(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 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 Expires February 2, 2019 [Page 1]
Internet-Draft Sym Alg JSON August 2018
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1. Requirements Language . . . . . . . . . . . . . . . . . . 2
2. Capabilities Registration . . . . . . . . . . . . . . . . . . 3
2.1. Required Prerequisite Algorithms for SP800-108 KDF
Validations . . . . . . . . . . . . . . . . . . . . . . . 3
2.2. SP800-108 KDF Algorithm Capabilities Registration . . . . 4
2.3. Supported SP800-108 KDF Modes . . . . . . . . . . . . . . 5
2.4. Supported KDF Modes Capabilities . . . . . . . . . . . . 6
2.5. Supported SP800-108 KDF MACs . . . . . . . . . . . . . . 8
3. Test Vectors . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1. Test Groups JSON Schema . . . . . . . . . . . . . . . . . 9
3.2. Test Case JSON Schema . . . . . . . . . . . . . . . . . . 10
4. Test Vector Responses . . . . . . . . . . . . . . . . . . . . 11
5. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 13
6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 13
7. Security Considerations . . . . . . . . . . . . . . . . . . . 13
8. Normative References . . . . . . . . . . . . . . . . . . . . 13
Appendix A. Example SP800-108 KDF Capabilities JSON Object . . . 14
Appendix B. Example Test Vectors JSON Object . . . . . . . . . . 16
Appendix C. Example Test Results JSON Object . . . . . . . . . . 17
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 18
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 SP800-108
KDF 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].
Fussell Expires February 2, 2019 [Page 2]
Internet-Draft Sym Alg JSON August 2018
2. 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 SP800-108 KDF 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.
2.1. Required Prerequisite Algorithms for SP800-108 KDF Validations
Each SP800-108 KDF implementation relies on other cryptographic
primitives. For example, the KDF must utilize an underlying MAC
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 Expires February 2, 2019 [Page 3]
Internet-Draft Sym Alg JSON August 2018
+--------------+--------------+---------------+----------+----------+
| JSON Value | Description | JSON type | Valid | Optional |
| | | | Values | |
+--------------+--------------+---------------+----------+----------+
| algorithm | a | value | KAS, | No |
| | prerequisite | | DRBG, | |
| | algorithm | | CMAC, | |
| | | | HMAC | |
| | | | | |
| valValue | algorithm | value | actual | No |
| | validation | | number | |
| | number | | or | |
| | | | "same" | |
| | | | | |
| prereqAlgVal | prerequistie | object with | see | No |
| | algorithm | algorithm and | above | |
| | validation | valValue | | |
| | | properties | | |
| | | | | |
| prereqVals | prerequistie | array of | see | No |
| | algorithm | prereqAlgVal | above | |
| | validations | objects | | |
+--------------+--------------+---------------+----------+----------+
Table 1: Required SP800-108 KDF Prerequisite Algorithms JSON Values
2.2. SP800-108 KDF Algorithm Capabilities Registration
Each algorithm capability advertised is a self-contained JSON object
using the following values.
Fussell Expires February 2, 2019 [Page 4]
Internet-Draft Sym Alg JSON August 2018
+-------------+-------------+--------------+-------------+----------+
| JSON Value | Description | JSON type | Valid | Optional |
| | | | Values | |
+-------------+-------------+--------------+-------------+----------+
| algorithm | The KDF to | value | "KDF" | No |
| | be | | | |
| | validated | | | |
| | | | | |
| prereqVals | prerequisti | array of | See Section | No |
| | e algorithm | prereqAlgVal | 2.1 | |
| | validations | objects | | |
| | | | | |
| capabilitie | array of | Array of | See Section |
| s | JSON | JSON objects | 2.4 |
| | objects, | | |
| | each with | | |
| | fields | | |
| | pertaining | | |
| | to the KDF | | |
| | mode | | |
| | identified | | |
| | uniquely by | | |
| | the | | |
| | combination | | |
| | of the | | |
| | "kdfMode" | | |
| | and | | |
| | indicated | | |
| | properties | | |
+-------------+-------------+--------------+-------------+----------+
Table 2: SP800-108 KDF Algorithm 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.
2.3. Supported SP800-108 KDF Modes
The following SP800-108 KDF modes may be advertised by the ACVP
compliant crypto module:
o counter
o feedback
o double pipeline iteration
Fussell Expires February 2, 2019 [Page 5]
Internet-Draft Sym Alg JSON August 2018
2.4. Supported KDF Modes Capabilities
The KDF mode capabilities are advertised as JSON objects within the
'capabilities' value of the ACVP registration message - see Table 2 .
The 'capabilities' value is an array, where each array element is a
JSON object corresponding to a particular KDF mode defined in this
section. The 'capabilities' 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 mode's capabilities are advertised as JSON objects.
The complete list of KDF key generation capabilities may be
advertised by the ACVP compliant crypto module:
+------------------+-------------+---------+-------------+----------+
| JSON Value | Description | JSON | Valid | Optional |
| | | type | Values | |
+------------------+-------------+---------+-------------+----------+
| kdfMode | The KDF | value | See Section | No |
| | mode for | | 2.3 | |
| | testing. | | | |
| | | | | |
| macMode | The MAC | array | Any non- | No |
| | used in the | | empty | |
| | KDF. | | subset of | |
| | | | MACs in | |
| | | | Section 2.5 | |
| | | | | |
| supportedLengths | The lengths | domain | Minimum | No |
| | of data the | | must be | |
| | IUT | | greater | |
| | supports in | | than or | |
| | bits. | | equal to 1. | |
| | | | Maximum | |
| | | | must be | |
| | | | less than | |
| | | | or equal to | |
| | | | 4096. | |
| | | | | |
| fixedDataOrder | Describes | array | Any non- | No |
| | where the | | empty | |
| | counter | | subset of | |
| | appears in | | {"none", | |
| | the fixed | | "after | |
| | data | | fixed | |
| | | | data", | |
| | | | "before | |
Fussell Expires February 2, 2019 [Page 6]
Internet-Draft Sym Alg JSON August 2018
| | | | fixed | |
| | | | data", | |
| | | | "middle | |
| | | | fixed | |
| | | | data", | |
| | | | "before | |
| | | | iterator"}. | |
| | | | Note that | |
| | | | "none" and | |
| | | | "before | |
| | | | iterator" | |
| | | | are not | |
| | | | valid for | |
| | | | "counter" | |
| | | | KDF. | |
| | | | "middle | |
| | | | fixed data" | |
| | | | is not | |
| | | | valid for | |
| | | | "feedback" | |
| | | | nor "double | |
| | | | pipeline | |
| | | | iterator" | |
| | | | KDF. | |
| | | | | |
| counterLength | Valid | array | Any non- | No |
| | counter | | empty | |
| | lengths in | | subset of | |
| | bits that | | {0, 8, 16, | |
| | appears in | | 24, 32}. | |
| | the fixed | | Note that 0 | |
| | data | | describes | |
| | | | that there | |
| | | | is no | |
| | | | counter | |
| | | | used. The 0 | |
| | | | option is | |
| | | | not valid | |
| | | | for | |
| | | | "counter" | |
| | | | KDF. | |
| | | | | |
| supportsEmptyIv | Whether the | boolean | true/false | No |
| | IUT | | | |
| | supports an | | | |
| | empty IV. | | | |
+------------------+-------------+---------+-------------+----------+
Fussell Expires February 2, 2019 [Page 7]
Internet-Draft Sym Alg JSON August 2018
Table 3: KDF Capabilities JSON Values
2.5. Supported SP800-108 KDF MACs
The following MACs may be advertised by the ACVP compliant crypto
module:
o CMAC-AES128
o CMAC-AES192
o CMAC-AES256
o CMAC-TDES
o HMAC-SHA1
o HMAC-SHA224
o HMAC-SHA256
o HMAC-SHA384
o HMAC-SHA512
3. Test Vectors
The ACVP server provides test vectors to the ACVP client, which are
then processed and returned to the ACVP server for validation. A
typical ACVP validation session would require multiple test vector
sets to be downloaded and processed by the ACVP client. Each test
vector set represents an individual Key Derivation Function (KDF),
such as SNMP, SSH, etc. This section describes the JSON schema for a
test vector set used with SP800-108 KDF algorithms.
The test vector set JSON schema is a multi-level hierarchy that
contains meta data for the entire vector set as well as individual
test vectors to be processed by the ACVP client.The following table
describes the JSON elements at the top level of the hierarchy.
Fussell Expires February 2, 2019 [Page 8]
Internet-Draft Sym Alg JSON August 2018
+------------+---------------------------------------------+--------+
| JSON Value | Description | JSON |
| | | type |
+------------+---------------------------------------------+--------+
| acvVersion | Protocol version identifier | value |
| | | |
| vsId | Unique numeric identifier for the vector | value |
| | set | |
| | | |
| algorithm | See Section 2.3 | value |
| | | |
| testGroups | Array of test group JSON objects, which are | array |
| | defined in Section 3.1 | |
+------------+---------------------------------------------+--------+
Table 4: Vector Set JSON Object
3.1. Test Groups JSON Schema
The testGroups element at the top level in the test vector JSON
object is an array of test groups. Test vectors are grouped into
similar test cases to reduce the amount of data transmitted in the
vector set. For instance, all test vectors that use the same key
size would be grouped together. The Test Group JSON object contains
meta data that applies to all test vectors within the group. The
following table describes the secure hash JSON elements of the Test
Group JSON object.
The KDF test group for KDF108 is as follows:
Fussell Expires February 2, 2019 [Page 9]
Internet-Draft Sym Alg JSON August 2018
+-----------------+----------------------------+---------+----------+
| JSON Value | Description | JSON | Optional |
| | | type | |
+-----------------+----------------------------+---------+----------+
| tgId | Numeric identifier for the | value | No |
| | test group, unique across | | |
| | the entire vector set. | | |
| | | | |
| kdfMode | The kdfMode used for the | value | No |
| | test group. See Section | | |
| | 2.3 for possible values | | |
| | | | |
| macMode | Psuedorandom function HMAC | value | No |
| | or CMAC used | | |
| | | | |
| counterLocation | "none", "after fixed | value | No |
| | data", "before fixed | | |
| | data", "middle fixed | | |
| | data", or "before | | |
| | iterator" | | |
| | | | |
| keyOutLength | Expected length of the | integer | No |
| | derived key in bits. | | |
| | | | |
| counterLength | Expected length of the | integer | No |
| | counter in bits. | | |
| | | | |
| tests | Array of individual test | array | No |
| | vector JSON objects, which | | |
| | are defined in Section 3.2 | | |
+-----------------+----------------------------+---------+----------+
Table 5: Vector Group JSON Object
Note: The feedback mode KDF counter location of "counter after
iterator" is referenced with the option "before fixed data" in the
'counterLocation' specification.
3.2. Test Case JSON Schema
Each test group contains an array of one or more test cases. Each
test case is a JSON object that represents a single test vector to be
processed by the ACVP client. The following table describes the JSON
elements for each SP800-108 KDF test vector.
Fussell Expires February 2, 2019 [Page 10]
Internet-Draft Sym Alg JSON August 2018
+----------+-----------------------------------+---------+----------+
| JSON | Description | JSON | Optional |
| Value | | type | |
+----------+-----------------------------------+---------+----------+
| tcId | Numeric identifier for the test | integer | No |
| | case, unique across the entire | | |
| | vector set. | | |
| | | | |
| keyIn | Key derivation key. The length | string | No |
| | corresponds to the | | |
| | supportedLengths (see Table 3). | | |
| | | | |
| iv | IV required for feedback mode. | string | Yes |
| | Value may be empty. If not empty, | | (only |
| | the length corresponds to the | | provided |
| | underlying macMode (see Table 3) | | for |
| | digest size. | | feedback |
| | | | mode) |
| | | | |
| deferred | This flag indicates that the | boolean | No |
| | client is responsible for | | |
| | generating inputs (keyIn, iv). If | | |
| | "true", the client must generate | | |
| | the relevant inputs and attach to | | |
| | associated vector set response. | | |
+----------+-----------------------------------+---------+----------+
Table 6: Test Case JSON Object
4. Test Vector Responses
After the ACVP client downloads and processes a vector set, it must
send the response vectors back to the ACVP server. The following
table describes the JSON object that represents a vector set
response.
Fussell Expires February 2, 2019 [Page 11]
Internet-Draft Sym Alg JSON August 2018
+------------+---------------------------------------------+--------+
| JSON Value | Description | JSON |
| | | type |
+------------+---------------------------------------------+--------+
| acvVersion | Protocol version identifier | value |
| | | |
| vsId | Unique numeric identifier for the vector | value |
| | set | |
| | | |
| testGroups | Array of JSON objects that represent each | array |
| | test vector group. See | |
| | Table 8 | |
| | | |
| |
+------------+---------------------------------------------+--------+
Table 7: Vector Set Response JSON Object
The testGroups section is used to organize the ACVP client response
in a similar manner to how it receives vectors. Several algorithms
SHALL require the client to send back group level properties in their
response. This structure helps accommodate that.
+-----------+--------------------------------------------+----------+
| JSON | Description | JSON |
| Value | | type |
+-----------+--------------------------------------------+----------+
| tgId | The test group Id | value |
| | | |
| tests | The tests associated to the group | value |
| | specified in tgId | |
| | | |
+-----------+--------------------------------------------+----------+
Table 8: Vector Set Group Response JSON Object
The following table describes the JSON object that represents a
vector set response for KDF108.
Fussell Expires February 2, 2019 [Page 12]
Internet-Draft Sym Alg JSON August 2018
+---------------+------------------------------------------+--------+
| JSON Value | Description | JSON |
| | | type |
+---------------+------------------------------------------+--------+
| tcId | Numeric identifier for the test case, | value |
| | unique across the entire vector set. | |
| | | |
| breakLocation | Where in the fixedData the counter is | value |
| | inserted. Only required when | |
| | counterLocation is "middle fixed data". | |
| | | |
| fixedData | Fixed input data string | value |
| | | |
| keyOut | The derived keying material output | value |
| | | |
| keyIn | Key derivation key (see Table 6). Only | string |
| | required when deferred is "true". | |
| | | |
| iv | IV (see Table 6). Only required when | string |
| | deferred is "true". | |
+---------------+------------------------------------------+--------+
Table 9: Vector Set Response JSON Object
5. Acknowledgements
TBD...
6. IANA Considerations
This memo includes no request to IANA.
7. Security Considerations
Security considerations are addressed by the ACVP specification.
8. Normative References
[ACVP] authSurName, authInitials., "ACVP Specification", 2016.
[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>.
Fussell Expires February 2, 2019 [Page 13]
Internet-Draft Sym Alg JSON August 2018
Appendix A. Example SP800-108 KDF Capabilities JSON Object
The following is a example JSON object advertising support for KDF.
{
"algorithm": "KDF",
"prereqVals": [
{
"algorithm": "SHA",
"valValue": "123456"
},
{
"algorithm": "DRBG",
"valValue": "123456"
}
],
"capabilities": [
{
"KdfMode": "counter",
"MacMode": [
"CMAC-AES128",
"CMAC-AES192",
"CMAC-AES256",
"CMAC-TDES",
"HMAC-SHA1",
"HMAC-SHA224",
"HMAC-SHA256",
"HMAC-SHA384",
"HMAC-SHA512"
],
"SupportedLengths": [
{
"min": 8,
"max": 1024,
"increment": 1
}
],
"FixedDataOrder": [
"after fixed data",
"before fixed data",
"middle fixed data"
],
"CounterLength": [
8,
16,
24,
32
Fussell Expires February 2, 2019 [Page 14]
Internet-Draft Sym Alg JSON August 2018
],
"SupportsEmptyIv": false
},
{
"KdfMode": "feedback",
"MacMode": [
"CMAC-AES128",
"CMAC-AES192",
"CMAC-AES256",
"CMAC-TDES",
"HMAC-SHA1",
"HMAC-SHA224",
"HMAC-SHA256",
"HMAC-SHA384",
"HMAC-SHA512"
],
"SupportedLengths": [
{
"min": 8,
"max": 1024,
"increment": 1
}
],
"FixedDataOrder": [
"none",
"after fixed data",
"before fixed data",
"before iterator"
],
"CounterLength": [
0,
8,
16,
24,
32
],
"SupportsEmptyIv": true
},
{
"KdfMode": "double pipeline iteration",
"MacMode": [
"CMAC-AES128",
"CMAC-AES192",
"CMAC-AES256",
"CMAC-TDES",
"HMAC-SHA1",
"HMAC-SHA224",
"HMAC-SHA256",
Fussell Expires February 2, 2019 [Page 15]
Internet-Draft Sym Alg JSON August 2018
"HMAC-SHA384",
"HMAC-SHA512"
],
"SupportedLengths": [
{
"min": 8,
"max": 1024,
"increment": 1
}
],
"FixedDataOrder": [
"none",
"after fixed data",
"before fixed data",
"before iterator"
],
"CounterLength": [
0,
8,
16,
24,
32
],
"SupportsEmptyIv": false
}
]
}
Appendix B. Example Test Vectors JSON Object
The following is a example JSON object for SP800-108 KDF test vectors
sent from the ACVP server to the crypto module.
Fussell Expires February 2, 2019 [Page 16]
Internet-Draft Sym Alg JSON August 2018
[{
"acvVersion": "0..54"
},
{
"vsId": 1564,
"algorithm": "counterMode",
"testGroups": [{
"tgId": 1,
"kdfMode": "counter",
"macMode": "CMAC-AES128",
"counterLocation": "after fixed data",
"keyOutLength": 1024,
"counterLength": 8,
"tests": [{
"tcId": 1,
"keyIn": "5DA38931E8D9174BC3279C8942D2DB82",
"deferred": false
},
{
"tcId": 2,
"keyIn": "58F5426A40E3D5D2C94F0F97EB30C739",
"deferred": false
}
]
}]
}
]
Appendix C. Example Test Results JSON Object
The following is a example JSON object for SP800-108 KDF test results
sent from the crypto module to the ACVP server.
Fussell Expires February 2, 2019 [Page 17]
Internet-Draft Sym Alg JSON August 2018
[{
"acvVersion": <acvp-version>
},
{
"vsId": 1564,
"testGroups": [{
"tgId": 1,
"tests": [{
"tcId": 1,
"keyOut": "94D58F22FA9092B0375F7EE6841B6775226703E3232BF9CF496E4EF3CDE1037765DDC060C08C9B3A845E288EED171535EBA97D23DCF8F6D2D4CF9D980CB4F6D270D3A7859B1FE2BFCA81F0702B5767E35BE9B96BA65C5263EB0DECD5FA721FFA57CE208F53F910DB6087E93BEE1A24E790E1DF02C140E89E04DF5299A63B71DA",
"fixedData": "FBF14DF02EE6C7DABCA6EF9AF59BB9A2"
}]
}]
}
]
Author's Address
Barry Fussell (editor)
Cisco Systems, Inc.
170 West Tasman Dr.
San Jose, CA 95134
USA
Email: [email protected]