-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patht-aes-ctr-drbg.cc
4173 lines (4170 loc) · 394 KB
/
t-aes-ctr-drbg.cc
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
/*
* This file is part of vbig.
* Copyright (C) 2015 Richard Kettlewell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CtrDrbg.h"
#include <cstring>
#include <cassert>
#include <cstdio>
/* Test vectors are from NIST CAVP */
int main() {
/* CAVS 14.3 */
/* DRBG800-90A information for "drbg_pr" */
/* Generated on Tue Apr 02 15:42:28 2013 */
/* c1d8e6d3dfc225eb8d36c44443eccd70663139fd839b1dc32e87ead6db998b3e3967e400f8866e2c23a0b3e96f00cce25b9a79f27774cb32ac3d5da84015594e */
/* CTR_DRBG options: 3KeyTDEA use df :: AES-128 use df :: AES-192 use df :: AES-256 use df :: 3KeyTDEA no df :: AES-128 no df :: AES-192 no df :: AES-256 no df */
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10262 */
{
static const uint8_t entropy_1[] = { 0xce, 0x50, 0xf3, 0x3d, 0xa5, 0xd4, 0xc1, 0xd3, 0xd4, 0x00, 0x4e, 0xb3, 0x52, 0x44, 0xb7, 0xf2, 0xcd, 0x7f, 0x2e, 0x50, 0x76, 0xfb, 0xf6, 0x78, 0x0a, 0x7f, 0xf6, 0x34, 0xb2, 0x49, 0xa5, 0xfc};
static const uint8_t returned_2[] = { 0x65, 0x45, 0xc0, 0x52, 0x9d, 0x37, 0x24, 0x43, 0xb3, 0x92, 0xce, 0xb3, 0xae, 0x3a, 0x99, 0xa3, 0x0f, 0x96, 0x3e, 0xaf, 0x31, 0x32, 0x80, 0xf1, 0xd1, 0xa1, 0xe8, 0x7f, 0x9d, 0xb3, 0x73, 0xd3, 0x61, 0xe7, 0x5d, 0x18, 0x01, 0x82, 0x66, 0x49, 0x9c, 0xcc, 0xd6, 0x4d, 0x9b, 0xbb, 0x8d, 0xe0, 0x18, 0x5f, 0x21, 0x33, 0x83, 0x08, 0x0f, 0xad, 0xde, 0xc4, 0x6b, 0xae, 0x1f, 0x78, 0x4e, 0x5a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_1, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_2, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10270 */
{
static const uint8_t entropy_3[] = { 0xa3, 0x85, 0xf7, 0x0a, 0x4d, 0x45, 0x03, 0x21, 0xdf, 0xd1, 0x8d, 0x83, 0x79, 0xef, 0x8e, 0x77, 0x36, 0xfe, 0xe5, 0xfb, 0xf0, 0xa0, 0xae, 0xa5, 0x3b, 0x76, 0x69, 0x60, 0x94, 0xe8, 0xaa, 0x93};
static const uint8_t returned_4[] = { 0x1a, 0x06, 0x25, 0x53, 0xab, 0x60, 0x45, 0x7e, 0xd1, 0xf1, 0xc5, 0x2f, 0x5a, 0xca, 0x5a, 0x3b, 0xe5, 0x64, 0xa2, 0x75, 0x45, 0x35, 0x8c, 0x11, 0x2e, 0xd9, 0x2c, 0x6e, 0xae, 0x2c, 0xb7, 0x59, 0x7c, 0xfc, 0xc2, 0xe0, 0xa5, 0xdd, 0x81, 0xc5, 0xbf, 0xec, 0xc9, 0x41, 0xda, 0x5e, 0x81, 0x52, 0xa9, 0x01, 0x0d, 0x48, 0x45, 0x17, 0x07, 0x34, 0x67, 0x6c, 0x8c, 0x1b, 0x6b, 0x30, 0x73, 0xa5};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_3, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_4, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10278 */
{
static const uint8_t entropy_5[] = { 0xd4, 0xf4, 0x7c, 0x38, 0x5e, 0x5e, 0xe3, 0x69, 0x15, 0x97, 0x83, 0x86, 0xa0, 0x74, 0xd4, 0x13, 0xd0, 0x4a, 0x1c, 0xe3, 0xa1, 0x3a, 0x0f, 0xe2, 0xb1, 0x7f, 0x3f, 0x20, 0xf8, 0x3a, 0x93, 0xfd};
static const uint8_t returned_6[] = { 0x27, 0xf8, 0x80, 0xdf, 0x4c, 0x29, 0x07, 0x69, 0x7f, 0xb2, 0xf5, 0x94, 0xe3, 0x11, 0x55, 0x9c, 0xea, 0x82, 0x70, 0x49, 0x32, 0x7a, 0xf3, 0x1f, 0xa7, 0xf0, 0xcb, 0xf3, 0x32, 0xc4, 0x62, 0x06, 0x74, 0xf5, 0x03, 0xd7, 0xdc, 0x37, 0x83, 0x20, 0xd2, 0x28, 0x90, 0x71, 0x51, 0xd3, 0x2e, 0xe5, 0xe3, 0xf5, 0xc5, 0xec, 0xcb, 0x13, 0xaf, 0xe5, 0x8b, 0xf6, 0xa6, 0x01, 0x92, 0xe6, 0xd7, 0x0e};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_5, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_6, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10286 */
{
static const uint8_t entropy_7[] = { 0x12, 0x3d, 0xd8, 0x2c, 0x6a, 0x8d, 0x6a, 0x5f, 0x23, 0x06, 0x77, 0x02, 0xe8, 0x22, 0x27, 0x33, 0xa3, 0x9c, 0x48, 0x96, 0x5b, 0xac, 0xcd, 0x9b, 0xff, 0xed, 0x5d, 0xc5, 0x1c, 0xb7, 0x89, 0xb6};
static const uint8_t returned_8[] = { 0x12, 0xdd, 0x6a, 0x87, 0x4a, 0x46, 0x56, 0xc7, 0xd5, 0xa2, 0x1c, 0xb1, 0x17, 0x9b, 0x3c, 0x4a, 0x99, 0x82, 0xae, 0x00, 0xfc, 0x1b, 0xf2, 0x6c, 0xb3, 0xa1, 0x39, 0xcb, 0x21, 0xc4, 0x50, 0x50, 0x45, 0xff, 0x5e, 0x22, 0x3e, 0x2d, 0x08, 0x1f, 0xee, 0x52, 0xb2, 0x22, 0x46, 0xd4, 0x85, 0xb9, 0xf1, 0x27, 0x4a, 0xef, 0x79, 0xa3, 0x30, 0x1d, 0x26, 0x36, 0x99, 0x97, 0x99, 0xaa, 0xd3, 0x1d};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_7, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_8, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10294 */
{
static const uint8_t entropy_9[] = { 0xf1, 0xa6, 0x9a, 0xf8, 0x90, 0xb2, 0xc9, 0x79, 0xfa, 0xe0, 0x46, 0xa2, 0xb5, 0x8d, 0x00, 0xa8, 0x33, 0x1c, 0x53, 0x22, 0x47, 0x2b, 0x0e, 0x61, 0x9b, 0xb3, 0x72, 0xbf, 0xd0, 0x27, 0xf7, 0x05};
static const uint8_t returned_10[] = { 0x96, 0x09, 0x12, 0x58, 0xc4, 0x22, 0x4e, 0x3b, 0x03, 0xd6, 0x5c, 0x93, 0x8c, 0x97, 0x83, 0x2b, 0x55, 0x14, 0x30, 0x69, 0xdb, 0x57, 0x55, 0x19, 0x6d, 0x52, 0xf5, 0x25, 0xbe, 0x95, 0x9d, 0x51, 0x9b, 0x1e, 0x02, 0xe5, 0xf2, 0xda, 0xbf, 0x4d, 0xd2, 0x16, 0x4f, 0x9b, 0xb0, 0x6a, 0x16, 0xa6, 0x35, 0x76, 0xff, 0x6d, 0xeb, 0x04, 0x2d, 0xab, 0x74, 0x03, 0x39, 0x16, 0xc9, 0x54, 0x98, 0xc1};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_9, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_10, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10302 */
{
static const uint8_t entropy_11[] = { 0x14, 0xa9, 0xa1, 0xe2, 0x0c, 0xa3, 0x68, 0x6f, 0x3e, 0xc0, 0x96, 0x03, 0xf6, 0x73, 0x0b, 0xdd, 0x73, 0xa9, 0xcc, 0x8c, 0x32, 0x38, 0x8e, 0xc0, 0x0b, 0xc2, 0x8e, 0x6c, 0x9e, 0xc6, 0x5d, 0x87};
static const uint8_t returned_12[] = { 0xc1, 0x29, 0x46, 0x45, 0x7a, 0xd8, 0x9d, 0xde, 0x78, 0x8e, 0x13, 0xc5, 0x09, 0x2b, 0xbf, 0x3e, 0x9c, 0x7f, 0x61, 0xea, 0xc7, 0x32, 0x61, 0xd0, 0x1d, 0x39, 0x6a, 0x1d, 0x9d, 0x11, 0x63, 0xee, 0xe8, 0x47, 0xa5, 0x61, 0xd8, 0xe5, 0x20, 0x80, 0xcd, 0x9b, 0xdc, 0xe5, 0x70, 0x14, 0x17, 0x82, 0xeb, 0xf1, 0x67, 0xc4, 0x70, 0x0a, 0x66, 0xac, 0xa6, 0xfd, 0x5c, 0x91, 0x16, 0xa7, 0xbe, 0x49};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_11, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_12, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10310 */
{
static const uint8_t entropy_13[] = { 0x97, 0x26, 0x1a, 0x2c, 0x19, 0xc6, 0xdc, 0x36, 0xa6, 0xd0, 0x28, 0x3a, 0x17, 0x7e, 0xb9, 0x66, 0x6c, 0x21, 0x81, 0x7f, 0xc0, 0xfc, 0xa4, 0x62, 0xc5, 0x3d, 0x90, 0xb3, 0xd8, 0x14, 0xcd, 0x92};
static const uint8_t returned_14[] = { 0xb4, 0x74, 0xf2, 0x74, 0x3b, 0x61, 0x82, 0xb0, 0x51, 0xfc, 0x7c, 0x76, 0xc6, 0xb4, 0x08, 0x5b, 0x2f, 0x59, 0x76, 0x39, 0xca, 0x19, 0xc1, 0xee, 0xe0, 0x5c, 0x1c, 0xf4, 0x39, 0xbb, 0x8e, 0xdb, 0xe0, 0x93, 0xd0, 0xb2, 0x23, 0x9d, 0xe5, 0xd0, 0xf7, 0x9b, 0xeb, 0xf0, 0xe6, 0x22, 0xfe, 0x04, 0xb5, 0x13, 0x59, 0x7e, 0xd1, 0xd8, 0xa0, 0x28, 0x21, 0xa0, 0xbc, 0xa4, 0x35, 0xd1, 0xfb, 0xde};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_13, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_14, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10318 */
{
static const uint8_t entropy_15[] = { 0x9f, 0xdd, 0xe0, 0xf7, 0xeb, 0xa6, 0x53, 0x81, 0xbf, 0x63, 0x7d, 0x7b, 0x7e, 0x6f, 0xbc, 0x20, 0xde, 0xef, 0x90, 0x60, 0x13, 0x01, 0x86, 0x55, 0xf8, 0xd1, 0x2d, 0x74, 0x7d, 0xb8, 0xe2, 0x25};
static const uint8_t returned_16[] = { 0xf4, 0xa5, 0x5a, 0xa4, 0xc2, 0x45, 0xcd, 0x42, 0xa1, 0xb6, 0x42, 0x96, 0x37, 0xb0, 0x77, 0x41, 0x89, 0xef, 0x4e, 0x50, 0x53, 0xbe, 0xf0, 0x6b, 0xbf, 0x42, 0x2b, 0x2f, 0x10, 0x39, 0x9e, 0x18, 0xb9, 0xf8, 0x6d, 0xcc, 0x56, 0xaa, 0xa6, 0x97, 0x5e, 0xa1, 0x56, 0x22, 0xcd, 0xeb, 0xf3, 0x6a, 0x3f, 0x47, 0x78, 0x44, 0x7b, 0xb2, 0x3a, 0x20, 0x44, 0xc2, 0x83, 0xa7, 0x99, 0x03, 0xbe, 0xac};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_15, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_16, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10326 */
{
static const uint8_t entropy_17[] = { 0xaf, 0x62, 0x29, 0x9f, 0x37, 0x89, 0x53, 0x32, 0xd2, 0x83, 0xff, 0x9f, 0x3b, 0x0c, 0xa2, 0x9f, 0x90, 0x03, 0x57, 0x18, 0x93, 0xdd, 0xd1, 0xbc, 0x2d, 0x28, 0x63, 0x3a, 0x33, 0x99, 0x2b, 0x4a};
static const uint8_t returned_18[] = { 0xb9, 0x17, 0x19, 0xf2, 0xd1, 0x29, 0x7f, 0xa9, 0xc5, 0x17, 0x20, 0xab, 0x94, 0x48, 0x22, 0x8e, 0x33, 0x35, 0x94, 0xa7, 0xa1, 0xc0, 0xa5, 0xd7, 0xa1, 0x0a, 0xe8, 0x82, 0x49, 0xdc, 0x0c, 0xc5, 0xd0, 0x7a, 0xbe, 0x20, 0xb7, 0x91, 0x5d, 0x2a, 0x87, 0xf1, 0x2e, 0xc4, 0xbc, 0xdf, 0x44, 0xef, 0xa9, 0x11, 0xf2, 0x8c, 0x5e, 0x9e, 0x39, 0x09, 0x01, 0x8e, 0x4a, 0x6b, 0xd1, 0xb5, 0x36, 0x3b};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_17, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_18, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10334 */
{
static const uint8_t entropy_19[] = { 0x42, 0xfe, 0x0a, 0xd0, 0x88, 0xd5, 0xc1, 0xd6, 0xbe, 0x9e, 0x02, 0xc1, 0x47, 0xd5, 0x77, 0x0c, 0x9a, 0xa0, 0xa9, 0x77, 0xc6, 0x30, 0x0c, 0xd9, 0xae, 0xc9, 0x40, 0xcd, 0x15, 0xec, 0xfb, 0x8d};
static const uint8_t returned_20[] = { 0xbd, 0x1a, 0x65, 0xbb, 0x65, 0xb5, 0x5e, 0xc4, 0xd6, 0x27, 0x9c, 0xb9, 0x4d, 0xbf, 0x3b, 0xcd, 0x82, 0xbc, 0xe0, 0x9f, 0xa2, 0x77, 0xbf, 0xea, 0x50, 0xb5, 0xda, 0xb6, 0x4b, 0x06, 0xc0, 0x18, 0x15, 0x70, 0x03, 0x2a, 0x3a, 0x6f, 0x7d, 0xee, 0x5b, 0x2c, 0xce, 0xa3, 0x4b, 0xc6, 0x92, 0x8d, 0xb1, 0x1d, 0xec, 0x93, 0x29, 0xed, 0x90, 0xd1, 0x09, 0xc0, 0xbc, 0xca, 0x7c, 0xe7, 0xa4, 0x28};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_19, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_20, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10342 */
{
static const uint8_t entropy_21[] = { 0x74, 0x4e, 0xd7, 0x4d, 0x83, 0xba, 0xcf, 0x92, 0xd4, 0xbd, 0x4d, 0xd0, 0x52, 0x45, 0x8b, 0xd8, 0xaf, 0x10, 0x39, 0x1c, 0x66, 0xfc, 0x89, 0xe1, 0x39, 0x74, 0x42, 0x63, 0x20, 0xaa, 0x47, 0x4a};
static const uint8_t returned_22[] = { 0x8d, 0xdd, 0x02, 0x70, 0xb0, 0x7f, 0xbb, 0xd3, 0x39, 0xbc, 0x83, 0xea, 0x7a, 0x1d, 0x98, 0x6e, 0xe8, 0xe1, 0xa0, 0x61, 0xc7, 0xe3, 0x1c, 0x5d, 0xbd, 0xcc, 0xab, 0xc8, 0xf2, 0x52, 0x27, 0x83, 0x2e, 0xc4, 0x5f, 0x5e, 0xf9, 0xf2, 0x8c, 0xa0, 0x44, 0x6d, 0x84, 0x4d, 0xaa, 0xdd, 0x19, 0x20, 0x24, 0xc4, 0xd3, 0x68, 0x54, 0xfa, 0x23, 0xb5, 0x8a, 0x8b, 0x97, 0x94, 0xdb, 0x6d, 0x3a, 0xcb};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_21, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_22, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10350 */
{
static const uint8_t entropy_23[] = { 0x88, 0x4e, 0x9f, 0xaa, 0x66, 0x1d, 0xce, 0xcc, 0x37, 0x65, 0xc7, 0x97, 0xa2, 0xaf, 0x89, 0x06, 0xfb, 0x89, 0x38, 0x13, 0xa3, 0x96, 0xe0, 0x2b, 0x94, 0x99, 0x38, 0x26, 0x28, 0x8d, 0x2a, 0x6d};
static const uint8_t returned_24[] = { 0x18, 0x48, 0x1d, 0xc4, 0x5c, 0xa3, 0xf1, 0x89, 0x6f, 0xe6, 0x39, 0x4a, 0x23, 0x67, 0xd4, 0x4c, 0x4e, 0x45, 0x8b, 0x45, 0x5c, 0x9f, 0x36, 0xa5, 0xd5, 0xac, 0x2b, 0x6a, 0x74, 0x75, 0xcf, 0x75, 0x99, 0xa9, 0x37, 0x8f, 0x9c, 0xc7, 0x2f, 0xfc, 0xdb, 0xea, 0x71, 0xf0, 0x9c, 0x9a, 0x24, 0x4a, 0x36, 0xcd, 0x66, 0x0b, 0x72, 0x25, 0x46, 0xea, 0x2a, 0xf4, 0xf3, 0xe7, 0x75, 0x96, 0xec, 0x25};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_23, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_24, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10358 */
{
static const uint8_t entropy_25[] = { 0x31, 0xd1, 0x08, 0xfe, 0x0d, 0x40, 0xfe, 0x05, 0xc9, 0xed, 0x83, 0x72, 0xc3, 0xbc, 0x09, 0xd1, 0x05, 0x8b, 0x39, 0x7b, 0x90, 0x06, 0xfb, 0x37, 0x3c, 0xdd, 0x16, 0xa5, 0xa4, 0x0e, 0x2c, 0xc1};
static const uint8_t returned_26[] = { 0x80, 0x82, 0x24, 0x50, 0xb0, 0x48, 0x7e, 0x70, 0xad, 0xa9, 0x48, 0xda, 0x0b, 0x25, 0xcc, 0x49, 0xa3, 0x7d, 0xc5, 0x8e, 0x0d, 0xad, 0x92, 0x33, 0xba, 0xdd, 0x0e, 0x88, 0xdf, 0x52, 0x0d, 0x36, 0x54, 0x30, 0x0f, 0x08, 0x1b, 0x02, 0xe8, 0x54, 0x5d, 0x6d, 0x68, 0x18, 0xb8, 0x2e, 0x45, 0x96, 0x4d, 0xb8, 0x63, 0x3f, 0xc7, 0x69, 0xaf, 0x84, 0xa9, 0x79, 0x9e, 0x92, 0xa1, 0xbb, 0x0d, 0x61};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_25, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_26, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10366 */
{
static const uint8_t entropy_27[] = { 0xd5, 0x46, 0x4a, 0x18, 0xaa, 0xb8, 0x87, 0x3d, 0x63, 0xf5, 0x72, 0xf6, 0x73, 0x8e, 0xf2, 0x7a, 0x39, 0x84, 0x5a, 0x31, 0xa2, 0x11, 0x70, 0x03, 0x10, 0x32, 0x1e, 0x42, 0xb6, 0x62, 0x0b, 0x4a};
static const uint8_t returned_28[] = { 0xe2, 0xb5, 0x31, 0xea, 0x43, 0xc5, 0x13, 0xa1, 0x56, 0x4f, 0xa6, 0x5e, 0x9a, 0x68, 0xd4, 0x3c, 0x87, 0x51, 0x37, 0x77, 0x31, 0x02, 0x94, 0x1d, 0x0e, 0xf5, 0x44, 0xc8, 0x4e, 0x36, 0x89, 0xb8, 0x2e, 0xac, 0x32, 0xd8, 0xe2, 0x9c, 0xce, 0x42, 0xea, 0xe3, 0x93, 0xe0, 0x86, 0xab, 0x81, 0xf7, 0x05, 0x20, 0x17, 0x92, 0x88, 0xc5, 0x2c, 0xbb, 0x64, 0x48, 0x69, 0x97, 0x23, 0x86, 0x5b, 0x49};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_27, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_28, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10374 */
{
static const uint8_t entropy_29[] = { 0x72, 0x7c, 0x0a, 0xc7, 0x5a, 0x99, 0xbb, 0x1a, 0x31, 0x8e, 0x4f, 0xe2, 0xfe, 0x0f, 0x2e, 0x31, 0x2b, 0x3b, 0x61, 0xd8, 0x2b, 0x2e, 0x50, 0x71, 0xac, 0xfb, 0x4a, 0x36, 0xbc, 0x82, 0x58, 0xc1};
static const uint8_t returned_30[] = { 0xf5, 0x95, 0xee, 0x1a, 0xf4, 0x37, 0xfe, 0x1b, 0xed, 0x8d, 0x45, 0x10, 0x88, 0xb7, 0x88, 0xf1, 0xcd, 0x59, 0x9f, 0x2b, 0x0c, 0x47, 0xfe, 0xac, 0x1f, 0xb5, 0xc6, 0xef, 0xbf, 0x7a, 0x14, 0xa8, 0xab, 0x0e, 0xa1, 0x1a, 0x35, 0x69, 0xa3, 0xc2, 0x3b, 0x2a, 0x97, 0x02, 0xb4, 0x15, 0xbd, 0xa3, 0x55, 0xc1, 0x5a, 0xfd, 0x27, 0x5c, 0x0d, 0x67, 0xb3, 0x8b, 0xcf, 0xb5, 0x4a, 0xb1, 0x3f, 0x70};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_29, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_30, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10518 */
{
static const uint8_t entropy_31[] = { 0xce, 0xe2, 0x3d, 0xe8, 0x6a, 0x69, 0xc7, 0xef, 0x57, 0xf6, 0xe1, 0xe1, 0x2b, 0xd1, 0x6e, 0x35, 0xe5, 0x16, 0x24, 0x22, 0x6f, 0xa1, 0x95, 0x97, 0xbf, 0x93, 0xec, 0x47, 0x6a, 0x44, 0xb0, 0xf2};
static const uint8_t returned_32[] = { 0x2a, 0x76, 0xd7, 0x1b, 0x32, 0x9f, 0x44, 0x9c, 0x98, 0xdc, 0x08, 0xff, 0xf1, 0xd2, 0x05, 0xa2, 0xfb, 0xd9, 0xe4, 0xad, 0xe1, 0x20, 0xc7, 0x61, 0x1c, 0x22, 0x5c, 0x98, 0x4e, 0xac, 0x85, 0x31, 0x28, 0x8d, 0xd3, 0x04, 0x9f, 0x3d, 0xc3, 0xbb, 0x36, 0x71, 0x50, 0x1a, 0xb8, 0xfb, 0xf9, 0xad, 0x49, 0xc8, 0x6c, 0xce, 0x30, 0x76, 0x53, 0xbd, 0x8c, 0xaf, 0x29, 0xcb, 0x0c, 0xf0, 0x77, 0x64};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_33[] = { 0xa2, 0xef, 0x16, 0xf2, 0x26, 0xea, 0x32, 0x4f, 0x23, 0xab, 0xd5, 0x9d, 0x5e, 0x3c, 0x66, 0x05, 0x61, 0xc2, 0x5e, 0x73, 0x63, 0x8f, 0xe2, 0x1c, 0x87, 0x56, 0x6e, 0x86, 0xa9, 0xe0, 0x4c, 0x3e};
rng.instantiate(entropy_31, personalization_33, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_32, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10526 */
{
static const uint8_t entropy_34[] = { 0xb0, 0x9e, 0xb4, 0xa8, 0x2a, 0x39, 0x06, 0x6e, 0xc9, 0x45, 0xbb, 0x7c, 0x6a, 0xef, 0x6a, 0x06, 0x82, 0xa6, 0x2c, 0x3e, 0x67, 0x4b, 0xd9, 0x00, 0x29, 0x7d, 0x42, 0x71, 0xa5, 0xf2, 0x5b, 0x49};
static const uint8_t returned_35[] = { 0x5a, 0x1c, 0x26, 0x80, 0x3f, 0x3f, 0xfd, 0x4d, 0xaf, 0x32, 0x04, 0x2f, 0xdc, 0xc3, 0x2c, 0x38, 0x12, 0xbb, 0x5e, 0xf1, 0x3b, 0xc2, 0x08, 0xce, 0xf8, 0x2e, 0xa0, 0x47, 0xd2, 0x89, 0x0a, 0x6f, 0x5d, 0xce, 0xcf, 0x32, 0xbc, 0xc3, 0x2a, 0x25, 0x85, 0x77, 0x5a, 0xc5, 0xe1, 0xff, 0xaa, 0x8d, 0xe0, 0x06, 0x64, 0xc5, 0x4f, 0xe0, 0x0a, 0x76, 0x74, 0xb9, 0x85, 0x61, 0x9e, 0x95, 0x3c, 0x3a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_36[] = { 0xa3, 0xb7, 0x68, 0xad, 0xcf, 0xe7, 0x6d, 0x61, 0xc9, 0x72, 0xd9, 0x00, 0xda, 0x8d, 0xff, 0xee, 0xb2, 0xa4, 0x2e, 0x74, 0x02, 0x47, 0xaa, 0x71, 0x9e, 0xd1, 0xc9, 0x24, 0xd2, 0xd1, 0x0b, 0xd4};
rng.instantiate(entropy_34, personalization_36, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_35, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10534 */
{
static const uint8_t entropy_37[] = { 0x0b, 0xbc, 0x89, 0x8f, 0x8d, 0xaf, 0x3f, 0x12, 0xfc, 0x00, 0x9c, 0x84, 0x6f, 0xe2, 0xce, 0xa2, 0x2f, 0x68, 0x3a, 0x43, 0x2e, 0xea, 0x29, 0x72, 0x57, 0x31, 0x2d, 0x5a, 0x44, 0xba, 0xc1, 0x31};
static const uint8_t returned_38[] = { 0xda, 0x49, 0xe2, 0x4a, 0x6c, 0xb1, 0xd9, 0xe5, 0x1b, 0x98, 0xea, 0x61, 0x03, 0x62, 0x7d, 0x9a, 0xd0, 0x35, 0x77, 0x0b, 0x7b, 0xdc, 0x76, 0x06, 0x06, 0xe2, 0xb5, 0xf3, 0x5a, 0xfd, 0x13, 0xb7, 0xa6, 0x1a, 0x4a, 0x18, 0xfa, 0xc2, 0x52, 0x58, 0x98, 0x5f, 0xa1, 0xfb, 0x2b, 0x88, 0xa7, 0xcc, 0x17, 0x27, 0x8b, 0x05, 0x39, 0xd7, 0xcf, 0x74, 0xf9, 0x40, 0xf0, 0x08, 0xee, 0x2c, 0xf4, 0xcd};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_39[] = { 0x8d, 0x34, 0xbe, 0x9d, 0x81, 0x10, 0xb8, 0x4b, 0x02, 0xa6, 0x05, 0x08, 0xde, 0xae, 0x77, 0x3c, 0x1a, 0x80, 0x8f, 0x4e, 0x2a, 0x0e, 0xc8, 0x17, 0x47, 0xae, 0x2e, 0xc9, 0x23, 0xfe, 0x99, 0xa9};
rng.instantiate(entropy_37, personalization_39, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_38, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10542 */
{
static const uint8_t entropy_40[] = { 0x3e, 0xa1, 0xf3, 0xfb, 0x15, 0x36, 0x36, 0xc3, 0x39, 0x82, 0x46, 0x4f, 0x0e, 0x5b, 0x0d, 0xae, 0xba, 0x59, 0xc3, 0xf1, 0xee, 0x91, 0xa6, 0x12, 0xc4, 0xf6, 0xa9, 0xdc, 0xfc, 0xd0, 0xa9, 0x78};
static const uint8_t returned_41[] = { 0x24, 0x29, 0xe7, 0xd8, 0x17, 0xcf, 0xd4, 0xf8, 0x50, 0x09, 0x48, 0xd2, 0xec, 0x2d, 0xec, 0x02, 0xb7, 0xd0, 0x35, 0xb4, 0xbb, 0x98, 0x61, 0x44, 0xbb, 0x91, 0x8a, 0x31, 0xbf, 0xd2, 0x26, 0x9e, 0x69, 0x07, 0xc3, 0x4a, 0xc8, 0xbe, 0xab, 0x69, 0x50, 0x88, 0x69, 0xa4, 0xf0, 0x4b, 0xc3, 0xc2, 0x3c, 0xcf, 0xba, 0xe5, 0xd5, 0x9e, 0xab, 0x85, 0x7e, 0xce, 0x00, 0x0d, 0x55, 0x4b, 0x27, 0x3a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_42[] = { 0xea, 0x86, 0x71, 0xfc, 0x9c, 0x02, 0x58, 0x4d, 0x69, 0xaf, 0x91, 0xde, 0x2a, 0xda, 0xce, 0xc1, 0x40, 0x8d, 0x91, 0xd5, 0x12, 0x71, 0x89, 0x45, 0xed, 0x1e, 0x7d, 0xc0, 0xb6, 0x20, 0xb3, 0x23};
rng.instantiate(entropy_40, personalization_42, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_41, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10550 */
{
static const uint8_t entropy_43[] = { 0xb6, 0xb2, 0x03, 0x3e, 0x38, 0x2d, 0xec, 0xd2, 0x1e, 0x4e, 0xab, 0xd8, 0xf1, 0x17, 0x77, 0x61, 0xd0, 0x6a, 0x12, 0xba, 0xe1, 0xcf, 0xed, 0x00, 0x59, 0xb7, 0xe1, 0x6b, 0xd9, 0xba, 0xb8, 0xd7};
static const uint8_t returned_44[] = { 0x63, 0x62, 0x66, 0x08, 0xb4, 0x46, 0xc7, 0xd0, 0x22, 0x12, 0x20, 0x9d, 0x0a, 0x38, 0x88, 0xe4, 0x05, 0x34, 0x86, 0x4d, 0x8f, 0x5c, 0xd2, 0x8a, 0xaf, 0xf0, 0x95, 0x05, 0xee, 0x5e, 0x89, 0x47, 0x51, 0xe5, 0xcb, 0x84, 0x67, 0xa5, 0xd8, 0x5d, 0x87, 0xa6, 0x75, 0xb7, 0x85, 0x27, 0x24, 0xde, 0xb0, 0xd1, 0x20, 0x38, 0x03, 0x54, 0x00, 0xc3, 0x40, 0x5f, 0xaf, 0xb1, 0xa4, 0x7f, 0x88, 0xc8};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_45[] = { 0xc9, 0x9a, 0x49, 0x13, 0x25, 0x43, 0xfc, 0xe4, 0x9b, 0x80, 0x4e, 0x9f, 0x41, 0x7d, 0x22, 0xe4, 0x9c, 0x46, 0x0b, 0xc4, 0xe6, 0x0a, 0x6d, 0x36, 0x70, 0x1f, 0xea, 0x56, 0x1b, 0x93, 0x20, 0x3d};
rng.instantiate(entropy_43, personalization_45, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_44, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10558 */
{
static const uint8_t entropy_46[] = { 0xac, 0xc4, 0x65, 0xd1, 0xbf, 0x94, 0xcc, 0xde, 0xec, 0x06, 0xc7, 0x4c, 0x81, 0x2d, 0xb3, 0xa9, 0x93, 0xc4, 0x08, 0xb5, 0xc2, 0xef, 0x7e, 0xbe, 0x9b, 0xde, 0xb6, 0xa1, 0xa5, 0x19, 0x76, 0xa7};
static const uint8_t returned_47[] = { 0xe0, 0xe6, 0xe4, 0x17, 0xde, 0x8f, 0xc5, 0xd2, 0x12, 0xbd, 0xda, 0x4c, 0x02, 0x6a, 0x13, 0xd6, 0xea, 0xe4, 0x02, 0x87, 0x4d, 0x62, 0xc3, 0x05, 0x77, 0xee, 0x4c, 0x34, 0x45, 0xac, 0xe8, 0x54, 0x79, 0xcb, 0xc3, 0xb5, 0x5b, 0xbb, 0xe1, 0x57, 0x3c, 0x13, 0xf9, 0xb0, 0x24, 0x2d, 0x7e, 0x3f, 0x6e, 0x7e, 0x91, 0xd9, 0x32, 0xb3, 0xd5, 0xa6, 0xdc, 0xa8, 0xdf, 0x43, 0xc1, 0x88, 0xae, 0x5e};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_48[] = { 0x77, 0x27, 0x8d, 0x47, 0xa1, 0x69, 0xc5, 0x59, 0x51, 0x8d, 0x46, 0xff, 0xb2, 0x3a, 0xa5, 0x94, 0xef, 0xda, 0xeb, 0xb0, 0x67, 0xc4, 0x8d, 0x4a, 0x39, 0x2f, 0x60, 0xb9, 0x4c, 0xc1, 0x5b, 0x36};
rng.instantiate(entropy_46, personalization_48, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_47, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10566 */
{
static const uint8_t entropy_49[] = { 0x14, 0xb3, 0x34, 0x15, 0xd2, 0x32, 0x1f, 0xbb, 0x10, 0xa7, 0x68, 0xce, 0xd7, 0x12, 0xc8, 0x99, 0x9f, 0xf2, 0xf1, 0x9b, 0x63, 0x26, 0x4a, 0x81, 0xad, 0xc2, 0xfd, 0xc1, 0x63, 0x70, 0xb1, 0x85};
static const uint8_t returned_50[] = { 0x8a, 0x69, 0xfe, 0xb2, 0x6b, 0xe0, 0x25, 0xa3, 0x84, 0x9b, 0xb0, 0xb6, 0x09, 0x59, 0x71, 0x7d, 0xaa, 0x59, 0xc8, 0x89, 0xc3, 0x83, 0x59, 0x3d, 0x1f, 0x8d, 0xeb, 0xf5, 0x80, 0x51, 0xeb, 0x46, 0x3d, 0x07, 0xc6, 0x59, 0xcf, 0xbe, 0x47, 0xe9, 0x42, 0x24, 0xba, 0x18, 0x83, 0x3b, 0x71, 0xd9, 0x59, 0x05, 0xe0, 0xcd, 0xe7, 0x85, 0x36, 0x4a, 0x87, 0x70, 0x6e, 0x31, 0x29, 0x7f, 0xb3, 0x23};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_51[] = { 0x02, 0x9b, 0x48, 0x80, 0x52, 0x85, 0x34, 0x9c, 0x29, 0x2a, 0x99, 0xee, 0x68, 0xfc, 0xef, 0xda, 0x1f, 0x61, 0xdd, 0x60, 0xa0, 0x9f, 0x46, 0x16, 0xcb, 0x2e, 0xfe, 0x4f, 0x8b, 0x14, 0x00, 0x56};
rng.instantiate(entropy_49, personalization_51, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_50, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10574 */
{
static const uint8_t entropy_52[] = { 0x5a, 0x83, 0xaf, 0x23, 0xca, 0xfb, 0x30, 0xe3, 0xa1, 0x8e, 0x28, 0x65, 0x1b, 0x3c, 0x1b, 0xd0, 0x18, 0x13, 0xc4, 0x42, 0x16, 0xe7, 0xe4, 0x4b, 0x79, 0x0d, 0x66, 0x64, 0xe2, 0xc3, 0x83, 0x9a};
static const uint8_t returned_53[] = { 0xe6, 0x43, 0x97, 0xf0, 0xee, 0xa0, 0xd3, 0x3d, 0x97, 0x15, 0xbc, 0xef, 0x2e, 0xe7, 0xee, 0xc2, 0x2a, 0x86, 0xe8, 0xd0, 0x66, 0xa2, 0x5e, 0x44, 0x70, 0x6d, 0xc6, 0x88, 0xc4, 0x99, 0xbd, 0x7e, 0xf0, 0x81, 0x72, 0xc8, 0xcf, 0x36, 0xe3, 0xbd, 0xdf, 0x79, 0xf2, 0xbe, 0xc1, 0x36, 0xa0, 0x1a, 0xad, 0x84, 0x49, 0x30, 0xe4, 0x8a, 0x16, 0xfe, 0x18, 0x00, 0xd6, 0x9f, 0xb0, 0xf4, 0xe1, 0x63};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_54[] = { 0xd0, 0xf1, 0x08, 0xae, 0x7c, 0x65, 0xe1, 0x6c, 0xfa, 0x13, 0xe5, 0x58, 0x22, 0x04, 0xeb, 0x8c, 0xd6, 0xeb, 0xb0, 0x8f, 0x1f, 0x6a, 0x5d, 0x47, 0x6c, 0x27, 0x52, 0x47, 0xc1, 0xa8, 0x3e, 0xb5};
rng.instantiate(entropy_52, personalization_54, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_53, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10582 */
{
static const uint8_t entropy_55[] = { 0x1d, 0xc2, 0x4d, 0xd9, 0xd6, 0xa4, 0x05, 0xa0, 0x07, 0xbd, 0x08, 0x2c, 0xfb, 0xdb, 0xd8, 0x63, 0x18, 0x5e, 0x07, 0x2b, 0x67, 0xd6, 0x63, 0xb1, 0x4d, 0x7e, 0x8f, 0x16, 0x90, 0x0c, 0xfc, 0xe6};
static const uint8_t returned_56[] = { 0x15, 0x69, 0x38, 0x56, 0x6f, 0xc2, 0x5d, 0x49, 0x3c, 0x1c, 0x60, 0xd8, 0x92, 0x58, 0x19, 0xa6, 0xe5, 0x9a, 0x24, 0x79, 0xd7, 0x5f, 0x3e, 0xff, 0xf1, 0x6d, 0x46, 0xaa, 0xda, 0x68, 0x40, 0x31, 0x40, 0x40, 0x79, 0x55, 0xc1, 0xfd, 0x9d, 0x2a, 0x89, 0x0b, 0xcf, 0x67, 0xac, 0x9b, 0x3b, 0x82, 0xd1, 0xd6, 0xcf, 0x78, 0x8f, 0xd8, 0x63, 0xda, 0x3d, 0x41, 0xac, 0x6e, 0x34, 0xf2, 0x17, 0xa0};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_57[] = { 0x0e, 0xca, 0x85, 0xdd, 0xcb, 0x6f, 0x38, 0xff, 0x36, 0x83, 0x96, 0x8e, 0xf9, 0x8b, 0x52, 0x40, 0x84, 0x28, 0xdc, 0xae, 0x2e, 0xc3, 0xb0, 0xfa, 0x4c, 0x68, 0x90, 0x6c, 0x1b, 0x64, 0x81, 0xcd};
rng.instantiate(entropy_55, personalization_57, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_56, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10590 */
{
static const uint8_t entropy_58[] = { 0xec, 0xb7, 0xe6, 0x1a, 0x47, 0x92, 0xa2, 0x11, 0x52, 0x13, 0xd1, 0x41, 0xd2, 0x07, 0x10, 0xe8, 0xa3, 0x21, 0x2d, 0x78, 0x47, 0xdd, 0x53, 0xdf, 0xa5, 0xd4, 0xd7, 0x77, 0x7d, 0x10, 0xd9, 0x7e};
static const uint8_t returned_59[] = { 0x86, 0x8d, 0xb5, 0x83, 0x2b, 0x2e, 0x9c, 0x3d, 0x2c, 0x97, 0x94, 0xb1, 0x74, 0xb3, 0x28, 0xed, 0x2c, 0xc8, 0x6e, 0x41, 0x01, 0x78, 0x63, 0xea, 0xbc, 0x4a, 0x7c, 0x09, 0x6a, 0x48, 0x7b, 0xfe, 0x4d, 0x67, 0xcc, 0xf9, 0x3a, 0x5e, 0x2c, 0x67, 0xd8, 0x8d, 0xbd, 0x8f, 0x14, 0x19, 0xb2, 0xa9, 0xf1, 0x29, 0x3e, 0x7a, 0x70, 0xe8, 0xe8, 0xfe, 0x93, 0xe2, 0x15, 0x64, 0x96, 0xb0, 0xfa, 0x54};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_60[] = { 0xbf, 0x09, 0x23, 0x5d, 0x30, 0xcd, 0x69, 0xad, 0xa2, 0x85, 0x94, 0x8f, 0xe1, 0xbe, 0x2e, 0x0c, 0x4e, 0x14, 0x5a, 0xc8, 0x48, 0x5d, 0x12, 0xca, 0x7b, 0x82, 0x39, 0x13, 0x6d, 0xa1, 0xc6, 0x38};
rng.instantiate(entropy_58, personalization_60, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_59, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10598 */
{
static const uint8_t entropy_61[] = { 0xe5, 0x57, 0x27, 0xc5, 0x90, 0xec, 0x3a, 0xc1, 0x08, 0xf4, 0xe5, 0xfe, 0xc3, 0x9a, 0x2d, 0x34, 0xbf, 0x89, 0xae, 0xe4, 0xe2, 0x15, 0xdc, 0xc9, 0x70, 0xdb, 0x8a, 0xe8, 0xf6, 0xa0, 0xe4, 0xa8};
static const uint8_t returned_62[] = { 0x19, 0x87, 0x42, 0x29, 0x9f, 0xee, 0xcf, 0x60, 0x83, 0xe3, 0xa0, 0xbe, 0xf7, 0x5a, 0xc2, 0xb9, 0x3d, 0xe2, 0xde, 0xfa, 0x65, 0x25, 0x88, 0x3a, 0x55, 0xf8, 0x82, 0x47, 0xdc, 0x69, 0x02, 0x27, 0x9f, 0x79, 0x24, 0x02, 0xfa, 0xff, 0xe4, 0xa8, 0x12, 0x13, 0xe4, 0x0f, 0xac, 0xb8, 0x73, 0xcd, 0x49, 0x9e, 0x4b, 0x0f, 0x7f, 0x0f, 0xf5, 0x92, 0xbc, 0x06, 0x69, 0x9d, 0xb7, 0x73, 0xb8, 0x99};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_63[] = { 0xad, 0xe3, 0xd2, 0x8a, 0x8e, 0x43, 0xaa, 0xb8, 0xfd, 0x31, 0xde, 0xc8, 0xbd, 0xbe, 0x5c, 0x41, 0xc0, 0xb3, 0xf7, 0xf6, 0x9a, 0x2d, 0x0a, 0xad, 0xa5, 0x60, 0x8a, 0xb0, 0xe5, 0x7c, 0x8b, 0xb0};
rng.instantiate(entropy_61, personalization_63, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_62, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10606 */
{
static const uint8_t entropy_64[] = { 0xc3, 0x80, 0xda, 0xfd, 0x84, 0xf2, 0x78, 0x2b, 0x75, 0x39, 0xca, 0x1c, 0x3a, 0xd9, 0x71, 0x5f, 0xe6, 0xb1, 0x80, 0x53, 0x10, 0xa5, 0x78, 0xaf, 0xcf, 0xfc, 0x92, 0x10, 0xac, 0x12, 0x7d, 0xed};
static const uint8_t returned_65[] = { 0x9a, 0xec, 0x7a, 0x5b, 0xa3, 0xe0, 0x91, 0xe6, 0xa6, 0xc9, 0x9e, 0x04, 0x39, 0x5a, 0xf2, 0xab, 0x2e, 0xea, 0xa1, 0xef, 0x08, 0x9b, 0xaa, 0x51, 0xdc, 0x23, 0xea, 0x31, 0x60, 0x3b, 0x89, 0x9e, 0xa2, 0x98, 0x31, 0x76, 0x03, 0x35, 0x4f, 0x38, 0xfd, 0x9c, 0x36, 0xc2, 0xa5, 0x3a, 0x05, 0xc1, 0xe4, 0x68, 0xc6, 0xae, 0x32, 0xfe, 0x4c, 0x3b, 0x00, 0x56, 0xec, 0x0d, 0x5e, 0xff, 0x22, 0xb6};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_66[] = { 0xb2, 0x98, 0x53, 0x3d, 0x9c, 0x74, 0xa0, 0xd9, 0xb9, 0xaa, 0x0d, 0x82, 0xed, 0xc4, 0x34, 0x00, 0x2b, 0x4d, 0x13, 0x72, 0x31, 0x8c, 0x28, 0x65, 0xb7, 0x70, 0x0a, 0x5b, 0x7e, 0xbe, 0xab, 0xf0};
rng.instantiate(entropy_64, personalization_66, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_65, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10614 */
{
static const uint8_t entropy_67[] = { 0xf1, 0x58, 0x21, 0x05, 0x35, 0xa4, 0x04, 0xf6, 0xcb, 0x4f, 0x95, 0x50, 0xb3, 0xf2, 0x6e, 0x3f, 0x77, 0x7a, 0x9f, 0xaa, 0x16, 0x47, 0x74, 0x74, 0x9f, 0x48, 0xef, 0x4a, 0x8c, 0xe0, 0x94, 0x49};
static const uint8_t returned_68[] = { 0x03, 0x4b, 0x41, 0xb2, 0xa9, 0xa6, 0x76, 0x4e, 0x5e, 0xd1, 0xed, 0xb0, 0x0a, 0xea, 0x31, 0x85, 0xfe, 0x43, 0xeb, 0x81, 0xb4, 0x25, 0x3e, 0x7c, 0xad, 0xe9, 0x79, 0x56, 0xfc, 0xcd, 0x9f, 0xc5, 0x78, 0x23, 0x28, 0xfa, 0xda, 0x8e, 0xd5, 0x20, 0x8f, 0x1d, 0x46, 0xb1, 0xf8, 0x72, 0xe3, 0x33, 0xb9, 0xe2, 0xf0, 0x36, 0xa5, 0x17, 0x46, 0xcc, 0xaf, 0x39, 0xe1, 0xa8, 0x5a, 0xf8, 0xeb, 0x23};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_69[] = { 0xd5, 0x6f, 0xa8, 0x73, 0xcc, 0x76, 0x2f, 0x64, 0xb3, 0xab, 0x31, 0xb6, 0x29, 0x1e, 0x24, 0x7e, 0xfc, 0xa7, 0x1f, 0xca, 0x90, 0x45, 0x3c, 0xff, 0xf1, 0xf2, 0xb0, 0xb3, 0xe2, 0x65, 0xc4, 0x75};
rng.instantiate(entropy_67, personalization_69, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_68, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10622 */
{
static const uint8_t entropy_70[] = { 0x97, 0x3a, 0x99, 0xb7, 0xe0, 0x3b, 0x39, 0x3e, 0xf6, 0x89, 0xaf, 0x8c, 0xb9, 0x0d, 0x74, 0x36, 0xca, 0xe1, 0x0e, 0x48, 0x14, 0x81, 0x4a, 0xed, 0x34, 0x2d, 0xd3, 0x8e, 0x2a, 0x73, 0x46, 0xe3};
static const uint8_t returned_71[] = { 0x62, 0x01, 0x28, 0x42, 0x99, 0x1f, 0xe3, 0x22, 0x0f, 0x1d, 0x96, 0x10, 0x45, 0xf0, 0x28, 0xa3, 0xb6, 0xa7, 0x29, 0xf5, 0xa4, 0x51, 0xb8, 0xc2, 0xec, 0x90, 0xe1, 0xc1, 0xe2, 0xb1, 0xe4, 0x04, 0x2e, 0x97, 0x26, 0x7e, 0x1b, 0xfa, 0x17, 0x82, 0xa1, 0x0c, 0x3c, 0x29, 0x50, 0x9b, 0xc8, 0xf2, 0xad, 0xff, 0xd3, 0xd6, 0x95, 0x86, 0x1e, 0x15, 0x94, 0xda, 0x91, 0x70, 0x28, 0x30, 0xfa, 0xf7};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_72[] = { 0x30, 0x0d, 0x3d, 0x2a, 0xdb, 0xac, 0x6d, 0x7d, 0xda, 0xdd, 0xe0, 0x7e, 0x08, 0xb0, 0xd7, 0x2b, 0x5b, 0x39, 0xff, 0x36, 0x03, 0x1e, 0x81, 0xd8, 0x30, 0x39, 0x58, 0x24, 0x2e, 0x3c, 0xf0, 0x3f};
rng.instantiate(entropy_70, personalization_72, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_71, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10630 */
{
static const uint8_t entropy_73[] = { 0x22, 0xd1, 0xd8, 0xc8, 0xbd, 0xe7, 0x6a, 0x23, 0x9d, 0x03, 0x28, 0x04, 0x71, 0x7f, 0xac, 0xe1, 0x6d, 0x77, 0xb5, 0x11, 0x70, 0xd0, 0xf5, 0x3c, 0xcb, 0xcc, 0xa4, 0xea, 0xff, 0x4f, 0xb3, 0x15};
static const uint8_t returned_74[] = { 0x10, 0x07, 0xe1, 0x1f, 0x48, 0xe3, 0xc4, 0x81, 0x3f, 0xdd, 0xd6, 0x73, 0x10, 0xdb, 0x56, 0xd6, 0x7a, 0x49, 0xfe, 0x93, 0xe4, 0x5e, 0x61, 0xb3, 0x7b, 0xa8, 0x14, 0x85, 0xdf, 0x6a, 0x62, 0xee, 0x57, 0xca, 0x41, 0xfa, 0x1d, 0x98, 0x7f, 0x46, 0x7c, 0x29, 0x39, 0x79, 0x0a, 0x20, 0x42, 0x1c, 0x2b, 0x4f, 0x70, 0xb2, 0x8f, 0xb0, 0xb9, 0x0b, 0xbe, 0xab, 0x1a, 0xc0, 0xae, 0x88, 0x4f, 0x1a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_75[] = { 0x5d, 0x3a, 0x7d, 0x40, 0xfd, 0xf9, 0x5b, 0x98, 0x45, 0x4b, 0xca, 0x03, 0xc6, 0xfc, 0xbf, 0x6a, 0xbf, 0x38, 0x07, 0xde, 0x75, 0x17, 0x1b, 0x55, 0xba, 0xb2, 0xdb, 0x5a, 0x3f, 0x5f, 0x12, 0xf2};
rng.instantiate(entropy_73, personalization_75, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_74, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10774 */
{
static const uint8_t entropy_76[] = { 0x69, 0xa0, 0x9f, 0x6b, 0xf5, 0xdd, 0xa1, 0x5c, 0xd4, 0xaf, 0x29, 0xe1, 0x4c, 0xf5, 0xe0, 0xcd, 0xdd, 0x7d, 0x07, 0xac, 0x39, 0xbb, 0xa5, 0x87, 0xf8, 0xbc, 0x33, 0x11, 0x04, 0xf9, 0xc4, 0x48};
static const uint8_t returned_77[] = { 0xf7, 0x8a, 0x49, 0x19, 0xa6, 0xec, 0x89, 0x9f, 0x7b, 0x6c, 0x69, 0x38, 0x1f, 0xeb, 0xbb, 0xe0, 0x83, 0x31, 0x5f, 0x3d, 0x28, 0x9e, 0x70, 0x34, 0x6d, 0xb0, 0xe4, 0xec, 0x43, 0x60, 0x47, 0x3a, 0xe0, 0xb3, 0xd9, 0x16, 0xe9, 0xb6, 0xb9, 0x64, 0x30, 0x9f, 0x75, 0x3e, 0xd6, 0x6a, 0xe5, 0x9d, 0xe4, 0x8d, 0xa3, 0x16, 0xcc, 0x19, 0x44, 0xbc, 0x8d, 0xfd, 0x0e, 0x25, 0x75, 0xd0, 0xff, 0x6d};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_76, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_77, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10782 */
{
static const uint8_t entropy_78[] = { 0x80, 0xbf, 0xbd, 0x34, 0x0d, 0x79, 0x88, 0x8f, 0x34, 0xf0, 0x43, 0xed, 0x68, 0x07, 0xa9, 0xf2, 0x8b, 0x72, 0xb6, 0x64, 0x4d, 0x9d, 0x9e, 0x9d, 0x77, 0x71, 0x09, 0x48, 0x2b, 0x80, 0x78, 0x8a};
static const uint8_t returned_79[] = { 0x80, 0xdb, 0x04, 0x8d, 0x2f, 0x13, 0x0d, 0x86, 0x4b, 0x19, 0xbf, 0xc5, 0x47, 0xc9, 0x25, 0x03, 0xe5, 0x80, 0xcb, 0x1a, 0x8e, 0x1f, 0x74, 0xf3, 0xd9, 0x7f, 0xdd, 0xa6, 0x50, 0x1f, 0xb1, 0xaa, 0x81, 0xfc, 0xed, 0xac, 0x0d, 0xd1, 0x8b, 0x6c, 0xcf, 0xdc, 0x18, 0x3c, 0xa2, 0x8a, 0x44, 0xfc, 0x9f, 0x3a, 0x08, 0x83, 0x4b, 0xa8, 0x75, 0x1a, 0x2f, 0x44, 0x95, 0x36, 0x7c, 0x54, 0xa1, 0x85};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_78, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_79, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10790 */
{
static const uint8_t entropy_80[] = { 0xa5, 0x59, 0xac, 0x98, 0x72, 0x79, 0x1d, 0x79, 0x19, 0x7e, 0x54, 0xda, 0x70, 0xa8, 0xd8, 0x58, 0xfb, 0xe3, 0x9e, 0x85, 0x14, 0xd2, 0xc8, 0x6a, 0x7b, 0xcf, 0xfa, 0xdc, 0x68, 0x78, 0x2e, 0xdf};
static const uint8_t returned_81[] = { 0xd1, 0x4b, 0x72, 0xe1, 0x7c, 0x2f, 0x6f, 0x77, 0xb4, 0x6d, 0x07, 0x17, 0xb7, 0x88, 0x42, 0x0e, 0x50, 0x3b, 0xb1, 0x8d, 0xe5, 0x42, 0x13, 0x5f, 0x58, 0x6a, 0x90, 0xc5, 0xc7, 0x3f, 0xce, 0xee, 0xe5, 0x0f, 0xd1, 0x63, 0x3b, 0x5b, 0x09, 0xab, 0x06, 0x1b, 0x93, 0x67, 0xca, 0x78, 0x5e, 0xcb, 0x40, 0x0e, 0x1f, 0x36, 0x81, 0x58, 0x36, 0x61, 0xaa, 0xf8, 0x35, 0x21, 0x84, 0x45, 0x4a, 0xe6};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_80, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_81, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10798 */
{
static const uint8_t entropy_82[] = { 0x30, 0x0f, 0xe1, 0x48, 0xdd, 0x39, 0xde, 0x1e, 0xdb, 0x99, 0x3c, 0xa5, 0x26, 0x03, 0x73, 0xb3, 0xf5, 0xf0, 0x9a, 0x5c, 0xf7, 0xa3, 0x2b, 0x0c, 0x41, 0xfe, 0x62, 0x24, 0xf9, 0x81, 0xd3, 0xb1};
static const uint8_t returned_83[] = { 0xde, 0xea, 0x89, 0xb5, 0x12, 0x8f, 0xb9, 0x92, 0x69, 0x6d, 0x7b, 0x97, 0xeb, 0xc2, 0xc0, 0x79, 0x36, 0x14, 0xb1, 0x72, 0xf4, 0xc7, 0x5b, 0xb8, 0x3c, 0x12, 0xa1, 0xb3, 0x89, 0xba, 0xc3, 0xbf, 0xec, 0xb7, 0x73, 0xcd, 0x77, 0x17, 0x58, 0x3c, 0x2b, 0x61, 0xb3, 0xb2, 0x43, 0xac, 0x96, 0x83, 0xdb, 0xa4, 0xfb, 0xc0, 0x71, 0x82, 0xba, 0xd8, 0x27, 0x1a, 0x7f, 0x16, 0xd8, 0x33, 0xe4, 0xd9};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_82, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_83, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10806 */
{
static const uint8_t entropy_84[] = { 0x0c, 0x6e, 0xe2, 0xa5, 0xd4, 0x63, 0x25, 0xba, 0xa8, 0xe9, 0xa3, 0xf6, 0xb5, 0x98, 0xfc, 0x79, 0x0c, 0x51, 0x3d, 0x38, 0x7d, 0x47, 0x00, 0x11, 0x16, 0xd1, 0x9a, 0x61, 0x4d, 0x20, 0x38, 0xc4};
static const uint8_t returned_85[] = { 0xf1, 0xee, 0x11, 0xbe, 0x18, 0x92, 0x63, 0xfe, 0xd9, 0x93, 0x2c, 0x11, 0x92, 0x21, 0x9d, 0x00, 0x37, 0x8e, 0x36, 0xce, 0x81, 0xa4, 0x31, 0x31, 0x85, 0x45, 0xda, 0x9f, 0x81, 0xf5, 0x0c, 0x29, 0x13, 0xd1, 0xf7, 0xbe, 0x49, 0x9c, 0xe9, 0xe1, 0xe3, 0x9f, 0x93, 0xee, 0x23, 0x60, 0x66, 0x8f, 0x12, 0x73, 0x40, 0x69, 0x1c, 0x17, 0x71, 0x17, 0x07, 0xcf, 0x5f, 0x1f, 0x8a, 0x4d, 0x93, 0xee};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_84, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_85, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10814 */
{
static const uint8_t entropy_86[] = { 0xbd, 0xbb, 0xa1, 0xad, 0x48, 0x03, 0xfd, 0xc7, 0x83, 0xef, 0x5d, 0x6e, 0x2a, 0xa6, 0x6d, 0xc9, 0x48, 0xe9, 0x60, 0xbc, 0x11, 0xcc, 0xa8, 0x9a, 0x60, 0xcf, 0xf5, 0xc6, 0x0e, 0x98, 0x43, 0x02};
static const uint8_t returned_87[] = { 0x26, 0x0a, 0x32, 0xc3, 0x97, 0x37, 0x50, 0xe0, 0xc1, 0x0f, 0x7f, 0x74, 0x95, 0xd4, 0x6e, 0x7c, 0x36, 0x91, 0xc2, 0x7a, 0x58, 0xe8, 0x28, 0xcd, 0xef, 0x48, 0xef, 0x66, 0x07, 0x16, 0xf7, 0x71, 0xd6, 0x1c, 0x3c, 0x76, 0xdb, 0x40, 0x7d, 0x81, 0x60, 0x66, 0xf5, 0xaf, 0xbf, 0x16, 0x99, 0x34, 0x85, 0xcd, 0xb6, 0x53, 0xd4, 0x18, 0xdd, 0x65, 0xff, 0xa5, 0xd3, 0x82, 0x57, 0x32, 0xb8, 0xcb};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_86, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_87, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10822 */
{
static const uint8_t entropy_88[] = { 0x22, 0x58, 0x7b, 0xfd, 0xce, 0x62, 0xf4, 0xaf, 0xc1, 0xdd, 0x26, 0x73, 0xf5, 0x30, 0x83, 0x64, 0xf2, 0x7d, 0xb9, 0x91, 0x2a, 0xd0, 0x1b, 0x04, 0x5e, 0x74, 0xdb, 0x45, 0x18, 0x43, 0x59, 0x59};
static const uint8_t returned_89[] = { 0xc9, 0x04, 0xd0, 0x30, 0x89, 0xb7, 0xdd, 0x1f, 0x17, 0x56, 0x4a, 0x7e, 0xf7, 0x0b, 0x17, 0xbb, 0x1b, 0x29, 0xc0, 0xc1, 0x79, 0x3c, 0xc8, 0xd9, 0x2b, 0x8c, 0x15, 0x8c, 0x04, 0xca, 0x53, 0x66, 0x91, 0x9f, 0x8c, 0xaf, 0x54, 0x4d, 0x5d, 0x07, 0xc2, 0x8a, 0xbe, 0x6d, 0x14, 0xba, 0xaa, 0x0c, 0x56, 0x60, 0x2d, 0xf1, 0xc3, 0x73, 0xe9, 0xac, 0xc4, 0x19, 0xe3, 0xc9, 0x32, 0xe5, 0x77, 0xe6};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_88, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_89, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10830 */
{
static const uint8_t entropy_90[] = { 0x8a, 0xbe, 0xfb, 0xb2, 0x3d, 0xfd, 0x58, 0xd8, 0x2b, 0x88, 0xa4, 0xc4, 0xfc, 0xfc, 0xee, 0x18, 0x3c, 0xe0, 0x1d, 0xb9, 0x75, 0xed, 0xee, 0xb4, 0x04, 0xbd, 0x21, 0x6e, 0x61, 0x77, 0xea, 0x0d};
static const uint8_t returned_91[] = { 0x8a, 0x70, 0x8e, 0x8a, 0x99, 0x03, 0x53, 0x89, 0xa4, 0xd6, 0x6d, 0x57, 0xd1, 0x2f, 0x48, 0x8e, 0xcb, 0xa5, 0x7a, 0x3b, 0x2c, 0xa7, 0x80, 0x15, 0xbe, 0xda, 0xe0, 0x6a, 0xaa, 0x41, 0x4d, 0x79, 0x11, 0x96, 0xe2, 0x62, 0xb2, 0x8f, 0xbd, 0x74, 0x5d, 0xff, 0x94, 0xf8, 0xfe, 0x60, 0x06, 0x87, 0xc9, 0xce, 0x2f, 0x50, 0xcf, 0x6d, 0x79, 0xd3, 0x9b, 0x8c, 0x5e, 0xa3, 0x65, 0x33, 0x75, 0x5d};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_90, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_91, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10838 */
{
static const uint8_t entropy_92[] = { 0xc4, 0x5c, 0x9f, 0xec, 0x6b, 0xb8, 0x3f, 0xb0, 0x80, 0x08, 0x87, 0x7c, 0x70, 0xb6, 0x32, 0xd7, 0x92, 0x11, 0x9a, 0x35, 0xc4, 0xc5, 0x98, 0x8c, 0x40, 0x26, 0xcf, 0x3f, 0x86, 0x12, 0xb8, 0x00};
static const uint8_t returned_93[] = { 0x84, 0x43, 0x0e, 0x49, 0xa9, 0xb4, 0xd3, 0x95, 0xd0, 0x55, 0xca, 0x0e, 0xfd, 0xf2, 0x85, 0xa7, 0x55, 0x1c, 0x5f, 0x71, 0x19, 0xdb, 0xea, 0x5c, 0x10, 0xda, 0xaa, 0x9e, 0x8b, 0xe0, 0x41, 0xe2, 0x3e, 0x9b, 0xc8, 0x93, 0xc9, 0x0a, 0x35, 0xb7, 0x7b, 0x19, 0xdc, 0x20, 0x2e, 0xc8, 0x34, 0x17, 0x2e, 0x6c, 0x8c, 0xea, 0x97, 0xc9, 0xd7, 0xc6, 0x8d, 0xf1, 0x37, 0x4a, 0xee, 0xa9, 0x45, 0x37};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_92, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_93, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10846 */
{
static const uint8_t entropy_94[] = { 0x58, 0xcb, 0xcc, 0xd7, 0xf8, 0x6e, 0x5f, 0x04, 0x72, 0xdc, 0xb3, 0x77, 0xf5, 0x98, 0xf2, 0xd4, 0x2e, 0xd9, 0x6a, 0xfd, 0xf0, 0xc8, 0xe4, 0x5f, 0x12, 0xc4, 0xff, 0x4a, 0x96, 0x9c, 0x5b, 0x6b};
static const uint8_t returned_95[] = { 0x41, 0xff, 0x55, 0xd0, 0x58, 0xbe, 0xaa, 0x04, 0x30, 0x8b, 0xd0, 0xb3, 0x9d, 0x48, 0x01, 0xf7, 0x0f, 0x23, 0xd8, 0x29, 0x03, 0x7e, 0x4c, 0xc9, 0xb2, 0xea, 0x0e, 0xac, 0xf5, 0xae, 0xf9, 0xb8, 0xe3, 0x3f, 0xc5, 0x9c, 0x52, 0x8b, 0x53, 0xbc, 0xe0, 0x8d, 0x2b, 0x53, 0x6d, 0x37, 0xbf, 0x19, 0x4c, 0x79, 0x7f, 0x03, 0x29, 0x04, 0x94, 0xdd, 0x00, 0xef, 0x24, 0x4a, 0xc2, 0x23, 0xe3, 0x50};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_94, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_95, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10854 */
{
static const uint8_t entropy_96[] = { 0xd5, 0x05, 0x58, 0xdf, 0xb7, 0xa8, 0x96, 0x6c, 0x63, 0xb3, 0xa1, 0xd0, 0xa8, 0x37, 0x97, 0x0a, 0xd0, 0xbf, 0xf5, 0xad, 0xbd, 0x8a, 0xda, 0xca, 0xe5, 0xd3, 0xac, 0xcf, 0xde, 0x64, 0xcd, 0x4d};
static const uint8_t returned_97[] = { 0xe9, 0x13, 0x61, 0x51, 0x1d, 0x92, 0x6b, 0xe4, 0xd9, 0x97, 0xfc, 0x97, 0x0b, 0x1a, 0x5d, 0xcd, 0xb3, 0x3a, 0x71, 0x1f, 0x21, 0x5c, 0xbd, 0xbf, 0xfa, 0xbf, 0xcd, 0xaa, 0x62, 0x48, 0x59, 0x68, 0x91, 0xd5, 0x5a, 0x9e, 0x64, 0xf4, 0xe9, 0xf5, 0x18, 0x5e, 0xd7, 0x05, 0x6f, 0x7c, 0xbb, 0x42, 0xf4, 0x74, 0xa2, 0x35, 0x42, 0xfe, 0x9e, 0x9c, 0x24, 0x95, 0x18, 0x2c, 0xef, 0xb3, 0x8a, 0x6a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_96, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_97, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10862 */
{
static const uint8_t entropy_98[] = { 0xf7, 0x0c, 0xe2, 0x83, 0xef, 0xd5, 0xba, 0x36, 0xc2, 0x84, 0xcb, 0x26, 0x7d, 0x22, 0xe2, 0x3d, 0xc4, 0x16, 0x71, 0xb2, 0xaa, 0xae, 0x98, 0xe6, 0x38, 0xc6, 0xe4, 0x51, 0xbc, 0x9c, 0x3c, 0xbb};
static const uint8_t returned_99[] = { 0xfd, 0x9b, 0x3b, 0x53, 0xe1, 0x2b, 0x67, 0x02, 0xe4, 0xc6, 0xe4, 0xac, 0xac, 0x33, 0xae, 0xae, 0x5c, 0xeb, 0x34, 0xce, 0xbf, 0xff, 0xa7, 0x00, 0x7c, 0xb1, 0xab, 0x1c, 0x3b, 0x4b, 0xe1, 0xa3, 0x8e, 0x5c, 0x86, 0xde, 0xa0, 0x77, 0x5a, 0xb0, 0xc8, 0x9a, 0xe1, 0x35, 0xe0, 0xb3, 0x6d, 0xa0, 0x87, 0x92, 0x1d, 0x3f, 0xf2, 0x75, 0xff, 0xc8, 0xe5, 0xdc, 0xee, 0x6e, 0x3d, 0x66, 0xee, 0x43};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_98, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_99, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10870 */
{
static const uint8_t entropy_100[] = { 0x58, 0xeb, 0x54, 0x4f, 0x44, 0xdf, 0xe1, 0x04, 0x8a, 0x81, 0x13, 0xd4, 0xb6, 0x90, 0x90, 0x50, 0xab, 0xf9, 0x01, 0x00, 0x36, 0x23, 0x3b, 0xe7, 0xf8, 0xfc, 0xc4, 0x1f, 0x39, 0xba, 0xff, 0x9c};
static const uint8_t returned_101[] = { 0x5c, 0x6a, 0xed, 0xc0, 0x20, 0xe7, 0x64, 0xf4, 0xd3, 0xbb, 0x8a, 0xbc, 0x29, 0x07, 0xc9, 0xc6, 0x04, 0xdd, 0x98, 0xe1, 0xcf, 0xc2, 0x88, 0x2e, 0xa7, 0x2d, 0x55, 0x4e, 0x39, 0xfe, 0x86, 0x46, 0x3a, 0x51, 0x88, 0x6d, 0x98, 0x0a, 0xc8, 0xcd, 0xda, 0x0f, 0x4e, 0x58, 0x42, 0x26, 0xd4, 0x53, 0x44, 0xe4, 0x3d, 0xd8, 0x4e, 0x84, 0x30, 0xf5, 0x8c, 0x38, 0x80, 0xa0, 0xce, 0x93, 0x08, 0x63};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_100, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_101, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10878 */
{
static const uint8_t entropy_102[] = { 0xb6, 0x94, 0xce, 0x5f, 0x4d, 0x9a, 0xf4, 0xce, 0x93, 0x62, 0x66, 0x36, 0xc9, 0xec, 0xb3, 0x41, 0xf3, 0xf5, 0x15, 0x2f, 0xd5, 0x80, 0x74, 0x52, 0x02, 0xcd, 0x0c, 0x83, 0xf4, 0xd5, 0xb4, 0xc5};
static const uint8_t returned_103[] = { 0x78, 0xb3, 0x2d, 0x39, 0x6f, 0x5a, 0x91, 0x9f, 0x5c, 0xcb, 0x9b, 0xe2, 0xaf, 0xaf, 0x5f, 0x62, 0x12, 0xd7, 0x5b, 0xf0, 0x84, 0xe9, 0x93, 0x57, 0xe2, 0x8c, 0xcc, 0x98, 0xd4, 0x33, 0x69, 0x64, 0x55, 0xb1, 0x0a, 0x85, 0xec, 0xaf, 0x61, 0x68, 0x6a, 0x96, 0x60, 0x6f, 0xf3, 0xe8, 0x96, 0x23, 0x21, 0x35, 0x8a, 0x56, 0xfa, 0x53, 0xca, 0xbb, 0xf1, 0x6c, 0x65, 0xc1, 0xc3, 0x2d, 0xeb, 0xcd};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_102, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_103, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:10886 */
{
static const uint8_t entropy_104[] = { 0x42, 0xcb, 0x18, 0x3d, 0x2a, 0x04, 0xc8, 0x9c, 0x69, 0xef, 0xbc, 0xec, 0x08, 0xbe, 0xe2, 0x00, 0x3b, 0x9a, 0x1c, 0xd5, 0x68, 0x78, 0xa7, 0x74, 0xf0, 0x16, 0x2b, 0xf7, 0x0f, 0x2c, 0x70, 0x8f};
static const uint8_t returned_105[] = { 0xcb, 0x4a, 0xfd, 0xec, 0x03, 0x3b, 0x42, 0x94, 0x9e, 0xbb, 0xb2, 0x72, 0x45, 0xfd, 0x33, 0xc1, 0x50, 0x3c, 0x12, 0x78, 0x02, 0x7e, 0x11, 0xa1, 0xf0, 0x50, 0xe0, 0x40, 0x80, 0xab, 0xe4, 0x85, 0x08, 0x21, 0xb7, 0x1e, 0xd5, 0xa6, 0xbd, 0x83, 0xda, 0x6b, 0xde, 0x8e, 0x56, 0xc5, 0xfa, 0xed, 0x49, 0xda, 0x26, 0x88, 0x70, 0x28, 0xba, 0xb8, 0x07, 0xd1, 0xad, 0x05, 0x5e, 0x2a, 0x8a, 0x27};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_104, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_105, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11030 */
{
static const uint8_t entropy_106[] = { 0x3f, 0xef, 0x76, 0x2f, 0x0a, 0xa0, 0x67, 0x7f, 0x61, 0xc6, 0x5d, 0x74, 0x9e, 0xeb, 0x10, 0xb0, 0x13, 0xff, 0x68, 0xcc, 0xc6, 0x31, 0x4f, 0x15, 0x0c, 0xfe, 0xe7, 0x52, 0xdc, 0xd8, 0xf9, 0x87};
static const uint8_t returned_107[] = { 0xaf, 0x0a, 0xfe, 0x08, 0x37, 0x44, 0x21, 0x36, 0xfb, 0xb1, 0x95, 0x9a, 0x1c, 0x91, 0xa9, 0x29, 0x1c, 0x1d, 0x81, 0x88, 0xed, 0xe0, 0x7c, 0x67, 0xd0, 0xe4, 0xdd, 0x65, 0x41, 0x30, 0x34, 0x15, 0xe7, 0xa6, 0x79, 0x99, 0xc3, 0x02, 0xba, 0x0d, 0xf5, 0x55, 0x32, 0x4c, 0x26, 0x07, 0x75, 0x14, 0x59, 0x2a, 0x9b, 0x6d, 0xb6, 0xbe, 0x2f, 0x15, 0x3f, 0xad, 0x22, 0x50, 0x16, 0x11, 0x64, 0xe4};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_108[] = { 0xf5, 0x6d, 0xb0, 0x99, 0x24, 0x0c, 0x75, 0x90, 0xda, 0xc3, 0x96, 0x37, 0x2b, 0x87, 0x37, 0x40, 0x4d, 0x41, 0x8b, 0x28, 0x64, 0xa3, 0xdf, 0x96, 0xa8, 0xa3, 0x97, 0x96, 0x72, 0x45, 0x73, 0x5f};
rng.instantiate(entropy_106, personalization_108, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_107, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11038 */
{
static const uint8_t entropy_109[] = { 0x3e, 0xeb, 0xe7, 0x7d, 0xb4, 0x63, 0x18, 0x62, 0xe3, 0xeb, 0x7e, 0x39, 0x37, 0x05, 0x15, 0xb8, 0xba, 0xa1, 0xcd, 0xd7, 0x1a, 0x5b, 0x1b, 0x0c, 0xda, 0x79, 0xc1, 0x4d, 0x0b, 0x5f, 0x48, 0xea};
static const uint8_t returned_110[] = { 0xbe, 0x9e, 0x18, 0xa7, 0x53, 0xdf, 0x26, 0x19, 0x27, 0x47, 0x3c, 0x8b, 0xb5, 0xfb, 0x7c, 0x3e, 0xa6, 0xe8, 0x21, 0xdf, 0x5a, 0xb4, 0x9a, 0xdc, 0x56, 0x6a, 0x4e, 0xbf, 0x44, 0xf7, 0x5f, 0xa8, 0x25, 0xb1, 0xf9, 0xd8, 0xc1, 0x54, 0xbc, 0xd4, 0x69, 0x13, 0x4c, 0x0b, 0xb6, 0x88, 0xe0, 0x7e, 0x3c, 0x3e, 0x45, 0x40, 0x7c, 0xa3, 0x50, 0xd5, 0x40, 0xe1, 0x52, 0x8c, 0xc2, 0xe6, 0x40, 0x68};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_111[] = { 0x4b, 0xe5, 0x6a, 0x9b, 0x9c, 0x21, 0x24, 0x27, 0x39, 0xc9, 0x85, 0xef, 0x12, 0xaa, 0x4d, 0x98, 0xe8, 0xc7, 0xda, 0x07, 0xc4, 0xc1, 0xdc, 0x68, 0x29, 0xf2, 0xe0, 0x68, 0x33, 0xcf, 0xa1, 0x48};
rng.instantiate(entropy_109, personalization_111, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_110, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11046 */
{
static const uint8_t entropy_112[] = { 0x3a, 0x2a, 0x99, 0xb6, 0xcb, 0x3d, 0xdb, 0xe4, 0x11, 0xd6, 0xd5, 0xa2, 0x68, 0xc5, 0x6f, 0xb3, 0x14, 0x41, 0xec, 0xd8, 0xba, 0x47, 0x85, 0x31, 0x95, 0x86, 0x9e, 0x91, 0x2d, 0x3c, 0xbf, 0xff};
static const uint8_t returned_113[] = { 0x04, 0xd1, 0xaa, 0xa8, 0x1c, 0xe4, 0xd2, 0xf5, 0xcc, 0xa3, 0x58, 0x1c, 0x3a, 0xf5, 0xac, 0x81, 0xcd, 0xf0, 0x79, 0x70, 0xab, 0xe9, 0x80, 0x86, 0x05, 0xb1, 0x74, 0x23, 0xb3, 0x55, 0xe1, 0xe2, 0x3a, 0x19, 0x34, 0x95, 0xa9, 0x25, 0xe7, 0x62, 0x9a, 0xfe, 0x76, 0xf9, 0xb7, 0x3b, 0xcd, 0xd9, 0x92, 0xc9, 0x63, 0x0c, 0x2e, 0xc6, 0x49, 0x1b, 0xd4, 0x82, 0xec, 0xe5, 0xa4, 0x43, 0x84, 0xd0};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_114[] = { 0xbd, 0x1e, 0x82, 0x2b, 0x66, 0x18, 0x0e, 0xa2, 0x9a, 0x0d, 0x9e, 0x60, 0x1e, 0x98, 0x3c, 0x1f, 0x7f, 0x54, 0x87, 0x5e, 0x8c, 0x9c, 0xd8, 0x34, 0x63, 0x30, 0x9d, 0x14, 0xdb, 0xef, 0x0b, 0x82};
rng.instantiate(entropy_112, personalization_114, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_113, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11054 */
{
static const uint8_t entropy_115[] = { 0xf9, 0xd7, 0xe6, 0x02, 0x60, 0x49, 0xbe, 0x4a, 0xd5, 0x1a, 0xe3, 0xea, 0x23, 0xdf, 0x50, 0x43, 0x5b, 0x9e, 0x28, 0x41, 0x13, 0xaf, 0x4d, 0xe6, 0x8a, 0x69, 0xc1, 0xd8, 0x68, 0xaa, 0x57, 0x2d};
static const uint8_t returned_116[] = { 0x21, 0x67, 0x49, 0xdb, 0xa2, 0xb9, 0xa5, 0x54, 0x71, 0xb1, 0xeb, 0x7f, 0x39, 0x5c, 0x9a, 0x1d, 0x10, 0x5d, 0xb1, 0x54, 0x74, 0x9e, 0xf5, 0x1f, 0xef, 0x1e, 0x67, 0x82, 0x66, 0xa5, 0xe4, 0x80, 0xc7, 0x5d, 0xc5, 0xac, 0x4c, 0xc9, 0xde, 0xd2, 0x02, 0x21, 0x67, 0x08, 0x86, 0x0f, 0x41, 0x27, 0x0a, 0xba, 0xdb, 0xc0, 0x94, 0xcd, 0x6c, 0x2c, 0xa3, 0xa0, 0xa3, 0xd9, 0xa7, 0x0a, 0x1d, 0x70};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_117[] = { 0x2b, 0x33, 0x7d, 0x90, 0xfe, 0x80, 0xe8, 0xe2, 0x06, 0x5e, 0xc3, 0x11, 0x5f, 0x40, 0x4d, 0x44, 0x62, 0x2c, 0xcb, 0xad, 0x48, 0x6c, 0xf6, 0x37, 0x98, 0xa2, 0x26, 0x83, 0xcc, 0xd4, 0x80, 0x87};
rng.instantiate(entropy_115, personalization_117, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_116, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11062 */
{
static const uint8_t entropy_118[] = { 0x12, 0xcf, 0xd7, 0xda, 0xf1, 0x68, 0xd0, 0x90, 0x6d, 0xf0, 0xbc, 0x01, 0xed, 0x5e, 0xd9, 0x39, 0x92, 0xbc, 0xb6, 0xc8, 0x5b, 0xef, 0xf2, 0xcd, 0x3d, 0x2d, 0xff, 0x21, 0xff, 0x34, 0x80, 0xd5};
static const uint8_t returned_119[] = { 0x25, 0xe0, 0x22, 0x50, 0x85, 0x0d, 0x1a, 0xc8, 0x2f, 0xdf, 0xc1, 0xb1, 0x0b, 0xc0, 0xc5, 0x68, 0xa3, 0xbc, 0xfe, 0xe6, 0x91, 0x63, 0xe3, 0x02, 0x1d, 0x5c, 0x5c, 0xe7, 0x6d, 0xdd, 0xe1, 0x06, 0xe6, 0x95, 0x6d, 0xf4, 0x00, 0xcd, 0xf6, 0xf3, 0x68, 0x68, 0xff, 0xa4, 0x11, 0x1e, 0x76, 0x76, 0x14, 0x1b, 0xea, 0x28, 0x79, 0x10, 0x81, 0x38, 0x7b, 0x3e, 0x5d, 0xce, 0x69, 0x27, 0x2a, 0xae};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_120[] = { 0xdd, 0x85, 0x5c, 0xee, 0x76, 0x09, 0xaa, 0x1b, 0x76, 0xba, 0x7a, 0xa9, 0xf3, 0x12, 0x5a, 0x1b, 0x68, 0x30, 0x79, 0x8c, 0x1a, 0x23, 0x97, 0xe5, 0x02, 0xf5, 0x57, 0x47, 0xff, 0x35, 0x61, 0xca};
rng.instantiate(entropy_118, personalization_120, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_119, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11070 */
{
static const uint8_t entropy_121[] = { 0x04, 0x9b, 0x16, 0x03, 0xf3, 0x86, 0x18, 0xac, 0x46, 0x31, 0x98, 0xe2, 0x45, 0x16, 0x32, 0x7a, 0x59, 0x3a, 0x22, 0x10, 0xf9, 0xb8, 0xf1, 0x6a, 0x91, 0xf5, 0x4c, 0x81, 0xc1, 0xd3, 0xba, 0xe2};
static const uint8_t returned_122[] = { 0x65, 0x0d, 0x95, 0xd6, 0x08, 0x5b, 0x87, 0x56, 0xb4, 0xc8, 0xfe, 0x2b, 0x16, 0x11, 0x90, 0xdf, 0x1d, 0xd6, 0xc3, 0x49, 0xbd, 0xee, 0x3e, 0x5d, 0x6c, 0x1d, 0xda, 0x80, 0xc9, 0x0d, 0xb5, 0xf4, 0xe8, 0x55, 0xd6, 0x13, 0x34, 0x7c, 0xb9, 0xbd, 0xb8, 0xcc, 0x7b, 0xe1, 0x50, 0x6d, 0x88, 0xaf, 0x68, 0x63, 0xa4, 0xbb, 0xa5, 0x97, 0xb7, 0x57, 0x7f, 0x3b, 0x41, 0x84, 0x02, 0xc8, 0x47, 0x24};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_123[] = { 0x04, 0x05, 0x65, 0xcd, 0xdb, 0x45, 0x31, 0x2e, 0x43, 0x37, 0xc9, 0x09, 0xae, 0x83, 0xdd, 0xe2, 0xc5, 0x51, 0x18, 0xae, 0x94, 0xbf, 0x54, 0x94, 0x38, 0x1c, 0x15, 0x7d, 0x66, 0xe4, 0x75, 0x53};
rng.instantiate(entropy_121, personalization_123, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_122, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11078 */
{
static const uint8_t entropy_124[] = { 0x9e, 0x61, 0x99, 0xad, 0x25, 0xa5, 0x89, 0x71, 0xe7, 0x6e, 0x48, 0xdb, 0x30, 0xab, 0x0b, 0xcf, 0xed, 0xb5, 0x7a, 0x97, 0x4d, 0x33, 0x34, 0x51, 0x4a, 0x4e, 0x03, 0x4a, 0x59, 0x1c, 0xc3, 0xdc};
static const uint8_t returned_125[] = { 0x60, 0x3a, 0x3b, 0xd8, 0x5b, 0xce, 0xa4, 0xb8, 0x7c, 0xdf, 0xf4, 0xeb, 0xc6, 0xba, 0xa9, 0x81, 0x31, 0x80, 0xc2, 0x2b, 0x1c, 0x48, 0x27, 0x0a, 0xad, 0x93, 0x88, 0x2b, 0x63, 0x76, 0xa6, 0x60, 0x89, 0x8a, 0x11, 0x9c, 0xc9, 0x96, 0x41, 0xfd, 0x5f, 0x75, 0xe0, 0xd1, 0x8f, 0xac, 0xe1, 0x32, 0x41, 0xc5, 0x42, 0x66, 0x8e, 0x46, 0xc9, 0xe0, 0x43, 0xbf, 0x8a, 0x2f, 0xfe, 0x98, 0x76, 0x5f};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_126[] = { 0x40, 0x84, 0x1d, 0x2a, 0xcf, 0xe9, 0x51, 0x61, 0x71, 0x27, 0xfc, 0x08, 0x55, 0x73, 0xf6, 0x26, 0x60, 0x5c, 0xbd, 0xb2, 0xab, 0x08, 0x5a, 0x77, 0xcb, 0x08, 0x0a, 0x99, 0xa9, 0x2e, 0x22, 0xf5};
rng.instantiate(entropy_124, personalization_126, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_125, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11086 */
{
static const uint8_t entropy_127[] = { 0x4a, 0x01, 0xfb, 0x95, 0xff, 0xfe, 0x41, 0x17, 0xa7, 0x1a, 0x52, 0x0a, 0x0b, 0x7d, 0x23, 0xa3, 0xc3, 0x12, 0x0d, 0x4b, 0x20, 0xa8, 0x49, 0x6d, 0x65, 0x01, 0xbf, 0x36, 0xd6, 0x94, 0xba, 0xbb};
static const uint8_t returned_128[] = { 0x7b, 0xfa, 0x6a, 0xfb, 0xfc, 0x32, 0x29, 0xc2, 0x77, 0xb4, 0x13, 0x96, 0x47, 0x7a, 0xc4, 0x1b, 0x84, 0x7a, 0x2e, 0x58, 0x15, 0x9b, 0xc3, 0x33, 0x7b, 0xdc, 0x98, 0x7b, 0x4a, 0x68, 0x47, 0x91, 0x67, 0x1a, 0x5d, 0xcb, 0x12, 0x49, 0xbd, 0x39, 0x07, 0xe6, 0x8a, 0x5a, 0x87, 0xd4, 0x53, 0x57, 0xe7, 0xc5, 0x4c, 0x53, 0xda, 0x78, 0x21, 0xb5, 0x5d, 0xaa, 0xb7, 0x63, 0xe9, 0xaa, 0xf3, 0xbb};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_129[] = { 0x59, 0xb8, 0x7f, 0x1c, 0x1b, 0xd9, 0xaf, 0x79, 0xba, 0xd4, 0x11, 0xec, 0x61, 0xcb, 0xd5, 0x91, 0xf2, 0xcf, 0x35, 0xf6, 0x60, 0x66, 0xe1, 0x8e, 0x17, 0xb4, 0xf5, 0xd4, 0x19, 0xd1, 0x32, 0x7b};
rng.instantiate(entropy_127, personalization_129, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_128, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11094 */
{
static const uint8_t entropy_130[] = { 0xe7, 0x22, 0x1b, 0x71, 0x0d, 0x0e, 0x91, 0xd3, 0x94, 0x3d, 0x42, 0x94, 0x30, 0x29, 0xf0, 0xc9, 0x5f, 0xbd, 0xfd, 0xd9, 0x76, 0xb5, 0xc0, 0x76, 0x71, 0x56, 0xba, 0x45, 0x03, 0xfd, 0x26, 0xa0};
static const uint8_t returned_131[] = { 0x89, 0x66, 0x41, 0x5c, 0x21, 0x6d, 0xe8, 0x3d, 0x75, 0xf7, 0x36, 0x26, 0x30, 0x3f, 0x91, 0x4f, 0x8d, 0x75, 0xe9, 0xbf, 0xc2, 0x9d, 0x68, 0xf8, 0x9c, 0x54, 0x92, 0x89, 0x80, 0x59, 0xa1, 0xf6, 0x4e, 0xcd, 0xbe, 0x23, 0x42, 0xa4, 0xfb, 0xfe, 0x63, 0x17, 0xd5, 0xbe, 0x13, 0x25, 0xa7, 0x04, 0xb9, 0xe3, 0xd2, 0xe8, 0x6c, 0x54, 0x6a, 0x81, 0x90, 0x60, 0x42, 0xb6, 0x0d, 0x02, 0xcc, 0x0c};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_132[] = { 0x62, 0x55, 0x9c, 0x1e, 0x44, 0x2d, 0x84, 0x6d, 0x16, 0xdd, 0xcd, 0x60, 0x1c, 0x17, 0xff, 0x37, 0x0c, 0xff, 0x58, 0x28, 0x74, 0xa6, 0x19, 0xda, 0xc6, 0x20, 0x67, 0x48, 0x07, 0x6d, 0x8d, 0x32};
rng.instantiate(entropy_130, personalization_132, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_131, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11102 */
{
static const uint8_t entropy_133[] = { 0x57, 0x15, 0x80, 0xa5, 0x72, 0x4b, 0x11, 0xe4, 0xb3, 0x12, 0xdf, 0x42, 0x0f, 0xa2, 0x60, 0xcd, 0xdf, 0x8c, 0xcd, 0xc4, 0xcc, 0x81, 0xca, 0xc7, 0x5a, 0x2a, 0xdf, 0xb7, 0x36, 0x57, 0xba, 0xdc};
static const uint8_t returned_134[] = { 0x93, 0x29, 0xe9, 0x15, 0xd3, 0xd8, 0x91, 0xc9, 0x1c, 0x16, 0x1c, 0xc3, 0x91, 0x48, 0xd8, 0xba, 0x37, 0x19, 0x3d, 0x78, 0x40, 0x18, 0x3a, 0x96, 0x72, 0xc7, 0x9f, 0x29, 0xf8, 0xca, 0x56, 0xa2, 0x7f, 0x2c, 0x86, 0x92, 0x05, 0xd3, 0xef, 0xbe, 0xa7, 0x0e, 0x4b, 0x8b, 0x24, 0x5f, 0x49, 0x0c, 0x81, 0x01, 0x73, 0x70, 0xd6, 0xa1, 0x73, 0xb3, 0xf6, 0xef, 0x99, 0x24, 0x23, 0x0f, 0x2d, 0x69};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_135[] = { 0x17, 0x0d, 0x0d, 0x64, 0x02, 0xaa, 0x7c, 0xd2, 0x6a, 0xfd, 0x26, 0xe4, 0xcb, 0x11, 0xd4, 0x6f, 0xe4, 0xaa, 0xc4, 0x8d, 0xf2, 0x3c, 0x69, 0xb0, 0x6d, 0xe7, 0xc0, 0xcd, 0x70, 0x2c, 0x78, 0xb4};
rng.instantiate(entropy_133, personalization_135, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_134, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11110 */
{
static const uint8_t entropy_136[] = { 0x26, 0xfd, 0xa9, 0x30, 0xbc, 0x9c, 0x08, 0xa1, 0x69, 0x1f, 0x02, 0x3f, 0x34, 0x8e, 0x96, 0x56, 0x34, 0x6c, 0xe5, 0x7d, 0x74, 0xd4, 0x6e, 0x81, 0x50, 0xd3, 0x43, 0xb5, 0x2d, 0xf5, 0xfe, 0x89};
static const uint8_t returned_137[] = { 0x18, 0xbc, 0x44, 0x8e, 0x8c, 0xd5, 0xa2, 0x57, 0x2d, 0x6f, 0xaa, 0x70, 0x9f, 0x1f, 0x75, 0x74, 0x33, 0xff, 0xf9, 0x3e, 0x1a, 0x63, 0x3a, 0x8b, 0x67, 0x1e, 0x97, 0x5a, 0x43, 0xf3, 0xa3, 0xa3, 0x50, 0x6c, 0x4c, 0xe9, 0x76, 0xa9, 0x25, 0xf0, 0x6d, 0x7a, 0x26, 0xcb, 0x20, 0x83, 0xa8, 0x0f, 0x56, 0x5f, 0xea, 0x05, 0x24, 0xc4, 0x5d, 0x36, 0x72, 0xf3, 0xc0, 0x9d, 0x6a, 0x7f, 0x30, 0x8a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_138[] = { 0xc6, 0xb0, 0x8d, 0x04, 0xf3, 0xd3, 0x5b, 0x07, 0xca, 0x64, 0x51, 0xd2, 0xef, 0xe5, 0xff, 0x8c, 0x54, 0x5a, 0x73, 0x42, 0x28, 0xfc, 0xa3, 0x38, 0x80, 0x6f, 0x1d, 0xae, 0x93, 0x38, 0x1f, 0x22};
rng.instantiate(entropy_136, personalization_138, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_137, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11118 */
{
static const uint8_t entropy_139[] = { 0xba, 0x59, 0x5a, 0x79, 0x16, 0x33, 0xaa, 0xda, 0x59, 0xda, 0xa3, 0x53, 0x53, 0x3b, 0x0a, 0x92, 0x48, 0x73, 0x14, 0x0a, 0xf8, 0x26, 0xf4, 0x74, 0x33, 0xe8, 0x1a, 0xed, 0x88, 0xeb, 0x87, 0xc0};
static const uint8_t returned_140[] = { 0x22, 0x84, 0x93, 0x92, 0x01, 0xb1, 0xae, 0xa4, 0x76, 0x06, 0xcf, 0xd6, 0x23, 0xc6, 0xe0, 0x45, 0x4b, 0x4e, 0x7d, 0x2c, 0x9f, 0xd5, 0x0d, 0x15, 0x87, 0x36, 0x0e, 0x83, 0x8a, 0x19, 0x0d, 0x97, 0xc8, 0x48, 0x28, 0x65, 0xb9, 0x9d, 0x59, 0xa8, 0x19, 0xdd, 0xc8, 0x9c, 0xae, 0x0b, 0x00, 0x52, 0x41, 0xe7, 0x69, 0x9f, 0xbc, 0x66, 0x24, 0x42, 0xcb, 0xef, 0x84, 0x72, 0x97, 0xdb, 0x15, 0xcf};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_141[] = { 0x5a, 0x3f, 0x43, 0x1c, 0x98, 0x40, 0xe0, 0x56, 0x5e, 0x49, 0xa1, 0x2d, 0xd7, 0xcd, 0x65, 0x04, 0x91, 0x2c, 0x43, 0x59, 0xb1, 0x50, 0x8f, 0x6c, 0x84, 0xb2, 0xc7, 0x18, 0xa3, 0x7f, 0xe3, 0xa3};
rng.instantiate(entropy_139, personalization_141, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_140, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11126 */
{
static const uint8_t entropy_142[] = { 0x94, 0x04, 0x3d, 0x90, 0x09, 0x52, 0xe2, 0x5c, 0x04, 0x25, 0x2f, 0xff, 0xfd, 0x1f, 0xe4, 0xe8, 0xa5, 0x4a, 0x3c, 0x04, 0x7e, 0x3c, 0x27, 0x68, 0xc0, 0x32, 0x4d, 0x1f, 0xe3, 0x24, 0x07, 0xdf};
static const uint8_t returned_143[] = { 0x7a, 0x27, 0x66, 0x6f, 0x38, 0x46, 0xbb, 0x36, 0xf8, 0x33, 0xea, 0x63, 0x87, 0x23, 0xe4, 0xcf, 0x95, 0xd6, 0x92, 0xe0, 0xa6, 0xa3, 0x7f, 0xac, 0x88, 0xa7, 0xcd, 0x5e, 0x4b, 0xcc, 0x3c, 0xcb, 0x73, 0x5c, 0x0c, 0xfe, 0x40, 0x27, 0x59, 0x72, 0xb2, 0xfd, 0xf5, 0x30, 0x45, 0x9a, 0x2a, 0x63, 0xee, 0x13, 0x84, 0x74, 0x60, 0xee, 0x09, 0xea, 0x63, 0xa8, 0x49, 0x01, 0xbc, 0xa8, 0x74, 0xbe};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_144[] = { 0xfb, 0x51, 0xb2, 0x6a, 0x7e, 0x7f, 0x87, 0xd8, 0xda, 0x7c, 0x54, 0xab, 0x1f, 0xad, 0x3d, 0x08, 0xc2, 0xc1, 0x31, 0x12, 0xfc, 0x17, 0xb3, 0xf3, 0x1d, 0xda, 0x72, 0xfd, 0x5b, 0x61, 0xeb, 0x01};
rng.instantiate(entropy_142, personalization_144, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_143, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11134 */
{
static const uint8_t entropy_145[] = { 0x57, 0x22, 0x04, 0x6e, 0xdf, 0x9b, 0x2b, 0x84, 0xf2, 0x88, 0x6e, 0xa9, 0x30, 0x2a, 0xc3, 0x8a, 0x1f, 0xea, 0xd8, 0xed, 0xf6, 0xb3, 0xfa, 0xae, 0xca, 0x23, 0xff, 0xdd, 0x95, 0x99, 0x74, 0x31};
static const uint8_t returned_146[] = { 0x0b, 0x03, 0xd2, 0x15, 0xfc, 0x30, 0xbb, 0xce, 0x8d, 0xc2, 0xaa, 0x3d, 0x49, 0x68, 0x68, 0x2d, 0x58, 0x6f, 0x10, 0x60, 0x07, 0x57, 0xb0, 0x52, 0x93, 0xc2, 0x63, 0xfc, 0xf1, 0x5e, 0xbc, 0x09, 0xbd, 0xec, 0xd2, 0x81, 0x8d, 0x62, 0x6a, 0x43, 0x98, 0x2f, 0x90, 0x09, 0xf2, 0x97, 0x4f, 0xcd, 0x01, 0x21, 0x4f, 0x6b, 0xe6, 0xec, 0xb2, 0xaa, 0x7d, 0x9d, 0x10, 0x16, 0x98, 0xec, 0x08, 0xe9};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_147[] = { 0x37, 0xda, 0x9a, 0x6f, 0xb1, 0xee, 0xc7, 0x23, 0x41, 0x56, 0xb0, 0xf5, 0x21, 0x0b, 0xa4, 0x7c, 0x3c, 0xa6, 0xc0, 0x3a, 0x34, 0xb6, 0x9d, 0xe3, 0xfe, 0xe1, 0xf5, 0x26, 0x9a, 0x92, 0x9e, 0x1e};
rng.instantiate(entropy_145, personalization_147, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_146, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11142 */
{
static const uint8_t entropy_148[] = { 0x3a, 0xcd, 0x2c, 0x23, 0xbb, 0xae, 0x4d, 0x02, 0xcc, 0x9e, 0x4b, 0xb5, 0x48, 0xe2, 0x64, 0xf4, 0x3e, 0x35, 0x76, 0x4b, 0x44, 0x65, 0x95, 0xbf, 0xe1, 0xe4, 0x51, 0x65, 0xd4, 0x2c, 0x77, 0x0a};
static const uint8_t returned_149[] = { 0x02, 0x66, 0x4c, 0x05, 0x70, 0xc4, 0xd3, 0xc4, 0x68, 0xd1, 0x6c, 0xc7, 0xc8, 0xb9, 0x9d, 0xa7, 0xa7, 0xf1, 0x75, 0x22, 0x49, 0xe3, 0x0f, 0x28, 0x33, 0xb1, 0xb7, 0xcd, 0x32, 0xa4, 0xdf, 0x3c, 0x23, 0x45, 0x46, 0x21, 0xd7, 0x91, 0x19, 0xa9, 0xaa, 0xcc, 0xc5, 0x2d, 0x3f, 0x90, 0x55, 0xdb, 0xde, 0x98, 0xe7, 0x73, 0xc2, 0x6d, 0x4d, 0xac, 0xe0, 0x9c, 0xe9, 0xbe, 0x1f, 0x1f, 0x61, 0xb2};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_150[] = { 0xaf, 0xb8, 0x20, 0x3d, 0x4f, 0x79, 0x00, 0xc3, 0x5d, 0x7b, 0xb4, 0x54, 0xa8, 0x3c, 0x5f, 0x26, 0x67, 0xab, 0x50, 0x6a, 0x68, 0xb7, 0x10, 0x01, 0x1c, 0x0b, 0xe6, 0x70, 0x55, 0xdf, 0xc3, 0xeb};
rng.instantiate(entropy_148, personalization_150, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_149, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11286 */
{
static const uint8_t entropy_151[] = { 0x48, 0xe8, 0x27, 0x1c, 0x4b, 0x55, 0x4d, 0x9d, 0xa3, 0xf8, 0x8c, 0x82, 0x0d, 0x07, 0x8f, 0x6a, 0x3f, 0x66, 0xac, 0xf0, 0x07, 0xcc, 0x98, 0x84, 0x0e, 0x03, 0xe2, 0x6c, 0x62, 0x52, 0x7f, 0x91};
static const uint8_t returned_152[] = { 0xb9, 0xa9, 0x56, 0xa6, 0xe3, 0xd1, 0x03, 0x10, 0xe5, 0x7e, 0x28, 0x7c, 0x28, 0x4c, 0x68, 0x67, 0xed, 0x9e, 0x80, 0x84, 0xa6, 0x2b, 0x25, 0xc4, 0x92, 0x18, 0xfa, 0x3a, 0xed, 0xe7, 0xc6, 0xea, 0xec, 0x16, 0x22, 0x69, 0x66, 0x40, 0xf6, 0xb4, 0xad, 0x53, 0x79, 0xc6, 0xfb, 0x8f, 0x9b, 0x5d, 0x72, 0x02, 0xad, 0x89, 0x10, 0x5d, 0x03, 0x17, 0x34, 0x87, 0xe2, 0x9d, 0xa9, 0x73, 0x93, 0x90};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_151, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_152, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11294 */
{
static const uint8_t entropy_153[] = { 0xb1, 0xc3, 0x47, 0xb0, 0x96, 0x65, 0x31, 0x0d, 0x0d, 0x04, 0x87, 0x93, 0x5e, 0xa8, 0x1b, 0x4f, 0x73, 0x44, 0x83, 0x86, 0xcf, 0x08, 0x01, 0xcc, 0x9d, 0x6a, 0x0b, 0xb6, 0x55, 0x60, 0x2c, 0x29};
static const uint8_t returned_154[] = { 0xa6, 0x19, 0xe2, 0x6d, 0x7a, 0xcf, 0x6b, 0x82, 0x84, 0x51, 0x56, 0x2f, 0x51, 0x75, 0xc2, 0xa9, 0xaf, 0xb7, 0x3c, 0xe3, 0xa7, 0x26, 0x5b, 0xea, 0x38, 0xb8, 0xf3, 0xbd, 0xe9, 0xf4, 0x26, 0xcf, 0x55, 0x2f, 0xff, 0x34, 0x35, 0xea, 0xbb, 0xfb, 0x72, 0x44, 0x6d, 0x90, 0x76, 0xee, 0x00, 0x45, 0xbf, 0x82, 0xca, 0xff, 0x76, 0xd9, 0x01, 0x23, 0x7f, 0x7b, 0x6e, 0x33, 0xe6, 0xac, 0xdf, 0x9a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_153, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_154, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11302 */
{
static const uint8_t entropy_155[] = { 0x4a, 0xdf, 0x8e, 0xbf, 0xf3, 0x58, 0x8c, 0x1d, 0x86, 0xf8, 0xb0, 0xa7, 0x0f, 0x55, 0x85, 0xcd, 0x7f, 0xa6, 0xe1, 0xa1, 0x17, 0x6e, 0x79, 0x1b, 0xeb, 0x37, 0xb5, 0xa2, 0x51, 0x25, 0xd2, 0xab};
static const uint8_t returned_156[] = { 0x8b, 0xfd, 0x73, 0xea, 0x99, 0x09, 0xcb, 0x62, 0x24, 0x8f, 0x97, 0x2c, 0xa7, 0x7f, 0xd6, 0x53, 0x79, 0x24, 0xfb, 0xf5, 0x84, 0x7b, 0xd6, 0xb2, 0x9b, 0x2f, 0xe3, 0x67, 0xf8, 0xdd, 0x2f, 0xe2, 0x2c, 0xad, 0xeb, 0x8b, 0x6e, 0x32, 0x85, 0x6d, 0xcf, 0xf8, 0x11, 0xda, 0x72, 0x48, 0x3e, 0xf1, 0x64, 0xcf, 0xa6, 0x78, 0xde, 0xb4, 0xf9, 0xaf, 0x38, 0x1e, 0xfe, 0x2d, 0x70, 0x28, 0x82, 0x92};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_155, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_156, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11310 */
{
static const uint8_t entropy_157[] = { 0x28, 0x5d, 0xe6, 0x16, 0xb8, 0xba, 0x8b, 0xb5, 0xf6, 0x46, 0xfe, 0x43, 0x60, 0x16, 0x45, 0x45, 0x4e, 0xc7, 0xd7, 0x08, 0xf4, 0x42, 0xfb, 0x1f, 0xfd, 0xea, 0x09, 0xae, 0x10, 0xac, 0xc0, 0x64};
static const uint8_t returned_158[] = { 0x31, 0xbe, 0x55, 0x8c, 0xa1, 0x3f, 0x23, 0x8d, 0x59, 0x6e, 0xc5, 0xdb, 0x02, 0xd4, 0xf0, 0xb9, 0x23, 0xbf, 0x01, 0x64, 0x9d, 0x1a, 0x51, 0xf4, 0xcd, 0x27, 0xfc, 0xd7, 0x7b, 0xa2, 0x9e, 0x46, 0x30, 0xef, 0xc9, 0x13, 0xbd, 0xa1, 0xdb, 0xed, 0x32, 0x0c, 0x7f, 0x4c, 0x8d, 0x69, 0xac, 0x7f, 0xb3, 0xec, 0xcc, 0x25, 0x9b, 0xca, 0x82, 0xe4, 0x79, 0x59, 0x9f, 0x3a, 0x67, 0xb1, 0x79, 0x22};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_157, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_158, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11318 */
{
static const uint8_t entropy_159[] = { 0x14, 0x5b, 0x3c, 0x65, 0xaf, 0xb2, 0xfb, 0xae, 0x1c, 0xd7, 0x65, 0x25, 0xb2, 0xd5, 0x32, 0x5c, 0xc4, 0x30, 0xcd, 0x4e, 0x1c, 0x8a, 0x63, 0x76, 0xbf, 0xc7, 0xa3, 0x02, 0x3b, 0xb8, 0xf5, 0x9d};
static const uint8_t returned_160[] = { 0x56, 0x60, 0x03, 0x5f, 0x34, 0xbc, 0xc6, 0xcc, 0xab, 0xae, 0xcb, 0x15, 0x83, 0x82, 0x7c, 0x9f, 0x0f, 0xf4, 0x3e, 0x0e, 0xcb, 0x22, 0x26, 0x9c, 0x06, 0x93, 0x63, 0xc0, 0x5e, 0xc2, 0x82, 0xbc, 0x5f, 0x4d, 0x4a, 0x42, 0x62, 0xe1, 0xe0, 0xa0, 0xfb, 0x66, 0x7a, 0x28, 0x5a, 0x3f, 0xde, 0x69, 0x05, 0x2c, 0x91, 0xc7, 0x3d, 0x04, 0x32, 0xd9, 0x12, 0x35, 0xbf, 0x4f, 0x90, 0x37, 0x3a, 0x22};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_159, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_160, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11326 */
{
static const uint8_t entropy_161[] = { 0xb8, 0x0c, 0x0a, 0x02, 0xb6, 0xfc, 0x7b, 0xfc, 0x05, 0x15, 0x88, 0x00, 0x05, 0xc0, 0xa2, 0xc1, 0x8e, 0xf5, 0xb8, 0x12, 0x99, 0x15, 0xfd, 0xac, 0x34, 0xbc, 0x94, 0x6c, 0xb4, 0x80, 0xc0, 0xfd};
static const uint8_t returned_162[] = { 0x82, 0xef, 0x2a, 0xf1, 0x4b, 0x58, 0xfc, 0xe2, 0x9d, 0x33, 0xf9, 0xf1, 0xb5, 0x26, 0x18, 0xf2, 0x30, 0x24, 0xdd, 0x17, 0xdc, 0x81, 0x33, 0x74, 0x9b, 0x59, 0x98, 0x15, 0x0f, 0x44, 0xf4, 0xde, 0x8f, 0xa2, 0x8f, 0x62, 0xc4, 0xdf, 0xeb, 0x2b, 0xb7, 0xbc, 0xc4, 0xf5, 0x14, 0xaf, 0x9a, 0xd2, 0xc7, 0x64, 0x20, 0xd3, 0xe4, 0xcf, 0x7c, 0xc5, 0x35, 0xc5, 0x56, 0xe1, 0xe7, 0x3a, 0xcc, 0x54};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_161, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_162, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11334 */
{
static const uint8_t entropy_163[] = { 0x1a, 0xea, 0x93, 0x80, 0xee, 0x1c, 0x38, 0x37, 0xfd, 0x57, 0xb6, 0xae, 0x69, 0xca, 0xe7, 0xd1, 0xa8, 0x16, 0x63, 0xc2, 0xc3, 0x69, 0x19, 0xa8, 0xfb, 0x46, 0x39, 0x8a, 0x77, 0x57, 0xd7, 0xbf};
static const uint8_t returned_164[] = { 0x9b, 0xf9, 0xe4, 0xee, 0xee, 0xf1, 0x18, 0xd6, 0x75, 0x49, 0x44, 0xb8, 0xed, 0xd4, 0x6d, 0xea, 0x37, 0x97, 0xd8, 0x21, 0x9d, 0xfb, 0x9d, 0xec, 0x11, 0x86, 0xbb, 0xe2, 0xa9, 0x87, 0x6e, 0x60, 0x4a, 0xd5, 0x2c, 0x02, 0xd0, 0x2e, 0xa0, 0xa9, 0x80, 0x29, 0xe8, 0x83, 0xff, 0xf8, 0xb6, 0x04, 0x39, 0xe6, 0xc3, 0x58, 0xb2, 0x6c, 0xb0, 0xea, 0x40, 0xf0, 0x31, 0x9a, 0x37, 0xf3, 0xea, 0x87};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_163, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_164, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11342 */
{
static const uint8_t entropy_165[] = { 0xf2, 0xa7, 0x11, 0xe4, 0xe5, 0xf0, 0x55, 0x1a, 0xe7, 0xc7, 0x91, 0x6a, 0x95, 0xe7, 0x65, 0x42, 0xa4, 0x4c, 0x9a, 0x02, 0xc7, 0x15, 0x35, 0xfd, 0x02, 0x0b, 0x2d, 0xb1, 0x68, 0xf4, 0x3d, 0x31};
static const uint8_t returned_166[] = { 0xcb, 0x8a, 0xc7, 0x86, 0x03, 0xa6, 0xb4, 0x4f, 0x05, 0x7f, 0x8f, 0xa3, 0x48, 0xe1, 0x98, 0x71, 0x06, 0xd5, 0xaf, 0x6b, 0x92, 0x93, 0xff, 0xe3, 0x72, 0x6b, 0x46, 0x24, 0xba, 0x04, 0xc6, 0x0a, 0x27, 0xb2, 0x1a, 0x62, 0x62, 0x24, 0x74, 0x8e, 0xcc, 0x11, 0x1c, 0xd1, 0xef, 0x10, 0x2d, 0x62, 0xd8, 0xe9, 0x0c, 0xd5, 0x14, 0xef, 0x04, 0x51, 0x67, 0x18, 0x53, 0x05, 0x00, 0x67, 0x8f, 0x20};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_165, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_166, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11350 */
{
static const uint8_t entropy_167[] = { 0x15, 0x9c, 0xc9, 0xeb, 0x22, 0xaa, 0xfb, 0x9c, 0xe3, 0x1a, 0x7e, 0xe2, 0xf8, 0xe6, 0x17, 0x15, 0x24, 0xc7, 0xd7, 0xbc, 0x04, 0x56, 0x32, 0xad, 0x04, 0x3d, 0x73, 0x1d, 0x00, 0xfb, 0x2a, 0x67};
static const uint8_t returned_168[] = { 0xa2, 0x31, 0xa1, 0xab, 0x27, 0x3a, 0x29, 0x7b, 0xd4, 0x43, 0xf1, 0x43, 0x59, 0x92, 0x35, 0xcf, 0xdf, 0xc7, 0x23, 0x59, 0xbb, 0x69, 0x39, 0x4a, 0xf0, 0x91, 0x79, 0x60, 0xec, 0x43, 0xae, 0x17, 0xaa, 0xe4, 0x62, 0x32, 0xf8, 0x27, 0x3e, 0xdd, 0x86, 0x4b, 0x8b, 0x07, 0xa6, 0x13, 0xe9, 0xfc, 0x26, 0x56, 0xe8, 0x95, 0x30, 0x0f, 0xd1, 0x7a, 0x9e, 0x28, 0x60, 0xd4, 0x5d, 0xb6, 0x1e, 0x8c};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_167, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_168, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11358 */
{
static const uint8_t entropy_169[] = { 0x1e, 0xbc, 0xcb, 0x0d, 0xd5, 0x03, 0xec, 0x20, 0xe5, 0x8b, 0xb4, 0xd8, 0xc2, 0xec, 0x67, 0xf2, 0xe8, 0xdc, 0x3a, 0x04, 0x36, 0x1d, 0xaf, 0xc8, 0x1c, 0x0c, 0x0b, 0x61, 0x1a, 0xf2, 0x76, 0xa2};
static const uint8_t returned_170[] = { 0xc6, 0x4d, 0xb3, 0x84, 0xb4, 0xb7, 0xb0, 0x54, 0xb0, 0x0d, 0x31, 0xbb, 0x94, 0xc0, 0x27, 0x35, 0x0e, 0x7a, 0x5c, 0x2f, 0xe0, 0x0e, 0xef, 0x37, 0x15, 0x6c, 0x94, 0x63, 0x9c, 0xdb, 0x04, 0x33, 0xfb, 0x31, 0xbe, 0x02, 0x37, 0x01, 0x9b, 0xfa, 0xf6, 0xf9, 0xc5, 0x49, 0xff, 0x77, 0xd5, 0x23, 0xb5, 0xb5, 0x3c, 0x07, 0xd1, 0xe0, 0x0f, 0x79, 0xb0, 0x74, 0xb7, 0xfb, 0x5c, 0x78, 0x14, 0xe4};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_169, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_170, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11366 */
{
static const uint8_t entropy_171[] = { 0x6d, 0xbf, 0x76, 0xe7, 0x8b, 0x9a, 0xf7, 0x74, 0x4c, 0x84, 0xa2, 0x4e, 0x5d, 0x9a, 0x4b, 0x42, 0x49, 0x32, 0xb1, 0x9e, 0x6a, 0x62, 0xa9, 0xab, 0x3a, 0x04, 0xb3, 0x2c, 0x76, 0xee, 0xf7, 0xde};
static const uint8_t returned_172[] = { 0xea, 0x09, 0xfc, 0x60, 0x69, 0xb9, 0x9c, 0x9e, 0xd1, 0x16, 0xdf, 0x49, 0x47, 0x1b, 0xe2, 0xd7, 0x26, 0x17, 0x10, 0xa8, 0xaf, 0xba, 0x1c, 0xf3, 0xa0, 0xd3, 0xf3, 0xd2, 0x2d, 0x80, 0x72, 0xb0, 0xb5, 0x0e, 0x00, 0x3d, 0x7f, 0xab, 0x02, 0x11, 0xd5, 0xa4, 0x4d, 0x6f, 0x75, 0xf4, 0x54, 0x1f, 0x5b, 0x97, 0x3e, 0x72, 0x71, 0x05, 0xe0, 0x29, 0x7c, 0x3b, 0x9f, 0x0c, 0xa9, 0x4e, 0x00, 0x43};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_171, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_172, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11374 */
{
static const uint8_t entropy_173[] = { 0xb0, 0xa4, 0xfa, 0x9c, 0xc2, 0xa5, 0xb4, 0x28, 0xdd, 0x92, 0x4c, 0x31, 0x2d, 0xcc, 0x05, 0x4b, 0xfb, 0xf7, 0x4c, 0x0f, 0x9c, 0x38, 0xed, 0x02, 0x40, 0x04, 0x6f, 0x35, 0x4d, 0x2f, 0xc6, 0xb2};
static const uint8_t returned_174[] = { 0x6f, 0x51, 0x33, 0x61, 0xb3, 0x07, 0x6f, 0x5e, 0xac, 0x6c, 0xa5, 0x40, 0x86, 0x9b, 0xdc, 0x40, 0x11, 0x88, 0xf9, 0xe4, 0xbe, 0x25, 0x34, 0x8e, 0x22, 0xa6, 0xb8, 0xda, 0xa0, 0x43, 0x11, 0xb5, 0x27, 0x84, 0xba, 0xff, 0x3c, 0x2a, 0x11, 0xca, 0xf0, 0x3d, 0xea, 0xc3, 0x64, 0x31, 0x74, 0xb0, 0xc8, 0xe4, 0x4b, 0x54, 0x4c, 0x0b, 0xbb, 0x4d, 0xa7, 0x24, 0x1b, 0xbf, 0x65, 0x7e, 0xc1, 0x76};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_173, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_174, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11382 */
{
static const uint8_t entropy_175[] = { 0x85, 0x7a, 0x11, 0x86, 0xa0, 0x82, 0xd7, 0x7e, 0xd7, 0x89, 0x3b, 0xb4, 0x67, 0xda, 0xa7, 0x95, 0x76, 0xd1, 0xfc, 0x66, 0x7e, 0x07, 0x11, 0x74, 0x90, 0x52, 0x2f, 0x87, 0xee, 0x19, 0xbb, 0x9f};
static const uint8_t returned_176[] = { 0xfb, 0x88, 0x89, 0xbf, 0xe0, 0x08, 0xf0, 0xd4, 0x50, 0x34, 0xc2, 0x6b, 0xb0, 0x41, 0x4f, 0xf1, 0x95, 0x13, 0xb6, 0xc4, 0x44, 0x5a, 0xcc, 0x4a, 0x56, 0x3f, 0x6d, 0xf9, 0x55, 0x2e, 0xc5, 0xdf, 0x95, 0xf8, 0xcc, 0x71, 0x43, 0x75, 0x7e, 0x74, 0x06, 0xfe, 0xb4, 0xf5, 0xbe, 0x7f, 0x1b, 0x65, 0x76, 0x04, 0x90, 0xdf, 0x90, 0x29, 0x8e, 0x73, 0x05, 0x58, 0x30, 0x94, 0x3d, 0xbd, 0x7c, 0x38};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_175, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_176, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11390 */
{
static const uint8_t entropy_177[] = { 0xb2, 0x78, 0xae, 0xf0, 0x58, 0x9b, 0xa4, 0x9f, 0x91, 0xd3, 0xce, 0x6e, 0xf0, 0xaf, 0x69, 0x8b, 0xbf, 0x28, 0x2e, 0xd6, 0xc1, 0x12, 0xca, 0xd9, 0xe8, 0x66, 0x46, 0xd0, 0x10, 0x76, 0x31, 0xdd};
static const uint8_t returned_178[] = { 0xe6, 0xe3, 0x45, 0xa5, 0x0c, 0xed, 0x3c, 0xc6, 0x8a, 0xe2, 0x4e, 0xd9, 0xad, 0x8c, 0xdb, 0x48, 0x28, 0x15, 0x28, 0x4e, 0x66, 0xf9, 0xb0, 0x15, 0x1f, 0xdd, 0x75, 0xd1, 0x3c, 0x97, 0x58, 0x66, 0x3c, 0x4d, 0xf9, 0xab, 0x99, 0xce, 0xf4, 0xfe, 0xd8, 0xae, 0x86, 0xfd, 0x18, 0x68, 0xbe, 0x6c, 0x5e, 0xae, 0xad, 0x7a, 0x6a, 0x9d, 0xe7, 0x22, 0xf1, 0x2d, 0xa1, 0xe9, 0x55, 0xdb, 0xc6, 0x41};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_177, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_178, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11398 */
{
static const uint8_t entropy_179[] = { 0xab, 0x87, 0x58, 0x86, 0x82, 0x71, 0x97, 0xb7, 0x84, 0xb1, 0x37, 0x72, 0x6f, 0x1f, 0x58, 0x62, 0xc0, 0x16, 0xe2, 0xc8, 0x78, 0x04, 0x52, 0xfe, 0x98, 0xf4, 0xee, 0xb6, 0x8f, 0x71, 0xac, 0xa5};
static const uint8_t returned_180[] = { 0xb6, 0x63, 0x44, 0x52, 0x66, 0x1b, 0x01, 0x9a, 0xfb, 0xf2, 0xe9, 0xb6, 0xe2, 0x0b, 0x8b, 0xe7, 0xd9, 0xca, 0xb7, 0x39, 0x38, 0x3d, 0xe8, 0x63, 0x64, 0x04, 0xc2, 0x75, 0xdc, 0x49, 0x5f, 0x54, 0xfb, 0xf2, 0x32, 0x05, 0xdb, 0xf8, 0x43, 0xaf, 0xeb, 0xbc, 0x4e, 0x88, 0xc6, 0xee, 0x12, 0x6f, 0x72, 0x9c, 0xc4, 0x07, 0xcc, 0xbb, 0xe7, 0x92, 0xe3, 0x31, 0x92, 0x30, 0xf2, 0x30, 0x23, 0xd1};
uint8_t buffer[64];
AesCtrDrbg128 rng;
rng.instantiate(entropy_179, NULL, 0);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_180, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11542 */
{
static const uint8_t entropy_181[] = { 0x52, 0x54, 0x4b, 0xe6, 0xee, 0xbf, 0xd2, 0x27, 0x80, 0x9c, 0xde, 0x95, 0xf1, 0x9a, 0x06, 0x2b, 0xdf, 0xf8, 0xad, 0xf9, 0x4a, 0xfa, 0xdf, 0xb6, 0x01, 0x2c, 0x8c, 0x3d, 0x99, 0xd1, 0x7b, 0x8b};
static const uint8_t returned_182[] = { 0x91, 0xcf, 0x40, 0x38, 0x78, 0xec, 0xca, 0x1f, 0xd4, 0x5d, 0x31, 0xdc, 0x67, 0x63, 0x02, 0xe0, 0x2e, 0x92, 0xd4, 0x47, 0x10, 0xbf, 0x92, 0x00, 0x49, 0x2a, 0xee, 0x1d, 0xe6, 0xd1, 0xb6, 0x4f, 0x34, 0x2c, 0x1a, 0xd8, 0x07, 0xc8, 0x45, 0xb5, 0x39, 0x65, 0x2c, 0xab, 0xe0, 0x34, 0xb6, 0x9f, 0x2e, 0x84, 0xb4, 0x22, 0x0c, 0xf7, 0xcc, 0x1b, 0xa6, 0xee, 0xdd, 0xf8, 0x6d, 0x8f, 0x3d, 0x99};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_183[] = { 0xb4, 0xad, 0x54, 0x42, 0xe7, 0xbb, 0xba, 0x49, 0x9c, 0x36, 0xfa, 0x52, 0x05, 0x03, 0x79, 0x5e, 0x7f, 0x2a, 0x31, 0xbe, 0x8d, 0x95, 0x94, 0x3e, 0xb3, 0x4d, 0xb5, 0x38, 0xd6, 0x67, 0x23, 0xee};
rng.instantiate(entropy_181, personalization_183, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_182, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11550 */
{
static const uint8_t entropy_184[] = { 0x25, 0xf5, 0xec, 0x23, 0x69, 0x5d, 0xb8, 0x15, 0x13, 0x14, 0xd7, 0x9d, 0x5f, 0x8d, 0x3a, 0x6d, 0x2f, 0x1c, 0xf7, 0x44, 0xa0, 0x2c, 0xff, 0x05, 0x8a, 0x31, 0x09, 0x3a, 0xa2, 0x95, 0x0d, 0x5e};
static const uint8_t returned_185[] = { 0x8a, 0xd6, 0x7e, 0x6d, 0xee, 0x16, 0x8d, 0xa8, 0x30, 0x27, 0x0c, 0x84, 0xfe, 0x6f, 0x54, 0xf2, 0x85, 0x27, 0x06, 0x91, 0xa9, 0x82, 0xaa, 0x32, 0xf0, 0x40, 0xba, 0xf4, 0x3d, 0xea, 0x48, 0x23, 0x87, 0x3a, 0x08, 0xa0, 0xb3, 0xbe, 0xe2, 0x78, 0x4d, 0xb0, 0xf9, 0x38, 0x5c, 0xd8, 0x46, 0xde, 0x32, 0xb4, 0xf4, 0x17, 0xae, 0xb2, 0x3e, 0xfb, 0x85, 0x51, 0xdd, 0xf4, 0xac, 0x1c, 0xff, 0x6a};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_186[] = { 0x6b, 0xc7, 0x75, 0x68, 0x17, 0x6a, 0xd5, 0x9c, 0x72, 0xcb, 0x06, 0x4e, 0x81, 0xc8, 0x0f, 0x8f, 0xf3, 0xbe, 0x2d, 0x4e, 0x2e, 0x1a, 0x46, 0x7d, 0x60, 0x03, 0x1c, 0x6c, 0x19, 0x05, 0xcd, 0xc4};
rng.instantiate(entropy_184, personalization_186, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_185, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11558 */
{
static const uint8_t entropy_187[] = { 0xae, 0xc2, 0xcd, 0x6f, 0x65, 0x78, 0x1d, 0x4e, 0x11, 0x68, 0xba, 0x57, 0x19, 0x12, 0x80, 0x09, 0x8c, 0x39, 0xe3, 0x48, 0xaf, 0x42, 0xb3, 0xf4, 0x5a, 0x79, 0x90, 0x3c, 0x29, 0xde, 0x70, 0xb3};
static const uint8_t returned_188[] = { 0xa8, 0xe1, 0xfd, 0x99, 0xf1, 0x8a, 0x3b, 0x31, 0x32, 0x25, 0xc9, 0xf6, 0xaf, 0x0c, 0xe0, 0x32, 0x6a, 0x90, 0x71, 0x44, 0xd0, 0x91, 0xb4, 0xdf, 0x1b, 0xf8, 0x44, 0x25, 0x66, 0x58, 0x70, 0xa8, 0x08, 0x01, 0xb0, 0x7f, 0xf7, 0x4c, 0x0f, 0x74, 0x98, 0xf3, 0x7d, 0xcd, 0x34, 0x23, 0x20, 0x70, 0x73, 0x4f, 0x76, 0x0e, 0xb1, 0x9c, 0x96, 0x61, 0x40, 0xe3, 0x56, 0x5a, 0xcc, 0x7c, 0x9c, 0x32};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_189[] = { 0xc7, 0x22, 0xc7, 0xd8, 0xc1, 0xfa, 0xd0, 0xd4, 0xff, 0xeb, 0x4f, 0xfc, 0x0c, 0x0f, 0xf0, 0xfb, 0x5a, 0x98, 0xdf, 0x29, 0x5e, 0x32, 0x43, 0x70, 0x7a, 0xce, 0x3c, 0x97, 0x48, 0x3c, 0x4c, 0x17};
rng.instantiate(entropy_187, personalization_189, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_188, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11566 */
{
static const uint8_t entropy_190[] = { 0x30, 0xe4, 0xa1, 0x76, 0x5b, 0xe1, 0x24, 0x9e, 0xea, 0x46, 0xf2, 0x98, 0xa6, 0x7c, 0x27, 0x1c, 0x2b, 0x34, 0xc6, 0xb5, 0xb7, 0xa5, 0xfb, 0xe9, 0x74, 0x0f, 0xc3, 0x72, 0x9a, 0x80, 0x75, 0x8a};
static const uint8_t returned_191[] = { 0x86, 0x69, 0xf2, 0xc2, 0x59, 0x65, 0x94, 0x8b, 0x61, 0xf6, 0x38, 0x8a, 0x0f, 0x0e, 0x0c, 0xb8, 0xb2, 0x86, 0xef, 0x44, 0x42, 0x01, 0xd3, 0xb9, 0x8d, 0x68, 0x45, 0xa7, 0xe1, 0x4d, 0x14, 0x5b, 0xde, 0x1d, 0x01, 0x42, 0x0e, 0x59, 0x0d, 0xff, 0xb6, 0x45, 0xe6, 0xc9, 0x0e, 0x30, 0x56, 0x86, 0xcf, 0x9b, 0x68, 0x5c, 0xa9, 0x5c, 0x97, 0xeb, 0xff, 0x38, 0x64, 0xc6, 0x2a, 0x00, 0x4b, 0xd6};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_192[] = { 0x18, 0x35, 0xea, 0xd1, 0xd8, 0x6c, 0x79, 0xc3, 0x36, 0x24, 0xfc, 0xae, 0x73, 0xdb, 0x91, 0xe8, 0x58, 0x31, 0xc1, 0x88, 0x2d, 0x72, 0x8a, 0x3c, 0x19, 0xa0, 0x5f, 0x90, 0x53, 0x3e, 0xbe, 0x8b};
rng.instantiate(entropy_190, personalization_192, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_191, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11574 */
{
static const uint8_t entropy_193[] = { 0xce, 0x80, 0xf4, 0x9a, 0x95, 0x12, 0xb7, 0x64, 0x77, 0xbd, 0x40, 0xac, 0xf3, 0x20, 0xd1, 0xcc, 0xe7, 0x42, 0x56, 0x59, 0x04, 0xef, 0x45, 0xc8, 0x01, 0xd5, 0xbb, 0xd6, 0x20, 0x6d, 0xd2, 0x0f};
static const uint8_t returned_194[] = { 0x5f, 0xed, 0x82, 0xf1, 0xd1, 0x0b, 0x8c, 0xe1, 0xdf, 0xb5, 0x97, 0xc9, 0x05, 0xe4, 0x11, 0xe8, 0x1f, 0xb9, 0x62, 0x63, 0x84, 0x22, 0x99, 0xa1, 0x9a, 0x0a, 0xfc, 0xaa, 0xaf, 0x6f, 0x40, 0xc1, 0x18, 0xad, 0x0a, 0x3f, 0x2b, 0x5f, 0xdc, 0xa0, 0x79, 0x53, 0x8c, 0x35, 0x41, 0x62, 0xae, 0xde, 0x2a, 0x49, 0xd5, 0x29, 0xd3, 0x70, 0xb6, 0xad, 0x1c, 0x56, 0x18, 0xd3, 0xf8, 0x07, 0xb3, 0x2c};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_195[] = { 0xd2, 0x12, 0x10, 0x1d, 0x3f, 0x55, 0x8c, 0x33, 0x91, 0x5a, 0xca, 0x3f, 0x7c, 0xa3, 0x2b, 0x65, 0xd8, 0xe6, 0x74, 0xc1, 0xa8, 0xc8, 0x80, 0x45, 0x7b, 0xfb, 0xea, 0xe5, 0x9b, 0x87, 0x67, 0x78};
rng.instantiate(entropy_193, personalization_195, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_194, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11582 */
{
static const uint8_t entropy_196[] = { 0xcf, 0x9d, 0x04, 0x88, 0x7a, 0x64, 0xdf, 0x7e, 0x2a, 0x4d, 0x10, 0x7d, 0x48, 0x7d, 0x3b, 0x14, 0x6e, 0xe8, 0x49, 0x38, 0x8f, 0x96, 0x0d, 0x0a, 0x14, 0xef, 0x2a, 0x5e, 0x26, 0xa3, 0x2b, 0x92};
static const uint8_t returned_197[] = { 0x8c, 0xaf, 0x1a, 0x41, 0xdf, 0x0e, 0xd4, 0x8e, 0x05, 0xbd, 0x57, 0xd7, 0xe8, 0xb1, 0xd7, 0x84, 0xfe, 0x4c, 0x55, 0xc7, 0xc0, 0x8e, 0x0c, 0x2f, 0xeb, 0x56, 0xda, 0x99, 0xcb, 0xb6, 0x0b, 0x82, 0x42, 0xdc, 0xbb, 0x2e, 0x23, 0x6d, 0x48, 0x13, 0x28, 0xc0, 0x35, 0x2e, 0x3c, 0x20, 0x60, 0x68, 0x80, 0xe1, 0xf0, 0x9b, 0x68, 0x47, 0x03, 0x98, 0x4b, 0x33, 0x2b, 0x7c, 0x59, 0xbd, 0x86, 0x67};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_198[] = { 0x39, 0x50, 0xf0, 0x9d, 0x6b, 0x56, 0x4c, 0xa2, 0x49, 0x6d, 0x74, 0x0a, 0x92, 0xc2, 0x3f, 0xe0, 0x9f, 0xf8, 0x75, 0xce, 0xae, 0xa5, 0x8a, 0x3e, 0xc6, 0x8d, 0x12, 0xbc, 0x84, 0x94, 0x7d, 0x74};
rng.instantiate(entropy_196, personalization_198, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_197, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11590 */
{
static const uint8_t entropy_199[] = { 0xc6, 0x1f, 0x9c, 0xfd, 0xc7, 0xea, 0x70, 0xe4, 0x03, 0xd4, 0x97, 0x2a, 0x23, 0x43, 0x78, 0xbb, 0x6a, 0xc9, 0x9c, 0x13, 0xfe, 0xe4, 0x35, 0x9b, 0xa8, 0x70, 0xfa, 0xe2, 0x9d, 0x22, 0xa8, 0xb8};
static const uint8_t returned_200[] = { 0x76, 0x00, 0x7d, 0x13, 0x43, 0x06, 0x42, 0x5f, 0x4d, 0x1b, 0x1f, 0xc8, 0x1c, 0x01, 0x4b, 0x6f, 0x69, 0x71, 0x89, 0x18, 0x57, 0x69, 0x6e, 0x7c, 0x7e, 0xa1, 0xf8, 0x73, 0x14, 0x07, 0x55, 0x0a, 0x2d, 0x88, 0x64, 0x46, 0x36, 0x9f, 0x70, 0x3f, 0x97, 0xba, 0x3d, 0x1a, 0x3a, 0x86, 0x51, 0x3e, 0x6e, 0x2a, 0xf4, 0x06, 0x86, 0x9c, 0xe7, 0x7c, 0x16, 0x96, 0x85, 0x55, 0x06, 0x40, 0xe4, 0x4d};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_201[] = { 0x86, 0xee, 0xb3, 0x3b, 0x00, 0x86, 0x77, 0x0f, 0x72, 0xee, 0x97, 0x1b, 0x8e, 0x84, 0xda, 0x92, 0xce, 0x90, 0x97, 0x4e, 0x37, 0x42, 0x63, 0x1a, 0x0a, 0x21, 0x95, 0xb8, 0x87, 0x66, 0xa5, 0x33};
rng.instantiate(entropy_199, personalization_201, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_200, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11598 */
{
static const uint8_t entropy_202[] = { 0x05, 0x41, 0xd6, 0xf9, 0x91, 0x66, 0x87, 0x7f, 0x14, 0xe2, 0xec, 0x40, 0xd3, 0x7d, 0xcd, 0x69, 0x3a, 0x53, 0x9f, 0xee, 0x18, 0x75, 0x2d, 0xcc, 0x16, 0x68, 0x56, 0x94, 0xef, 0x86, 0x53, 0xa7};
static const uint8_t returned_203[] = { 0x47, 0xeb, 0x4f, 0x0f, 0x7d, 0x57, 0xe0, 0xd3, 0x60, 0xfe, 0x51, 0xd6, 0xb2, 0xaa, 0x54, 0xb6, 0x2f, 0x05, 0xcd, 0xd6, 0x2a, 0x78, 0x9c, 0xd6, 0x39, 0xf6, 0x3d, 0x90, 0xb5, 0xb5, 0xc5, 0xcc, 0x1b, 0xaf, 0xbe, 0x06, 0x16, 0x3b, 0x84, 0x42, 0x30, 0xa9, 0xf5, 0x28, 0x75, 0xeb, 0xdc, 0x34, 0x2f, 0x84, 0x14, 0x9d, 0x80, 0xd4, 0x81, 0x89, 0x2f, 0x6e, 0x31, 0x62, 0x21, 0x04, 0x4d, 0x9b};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_204[] = { 0xc2, 0xb8, 0x91, 0xc8, 0xe8, 0xf8, 0x5f, 0x13, 0xb0, 0xf8, 0x20, 0x68, 0x20, 0x19, 0x45, 0xbd, 0x6f, 0xec, 0x9d, 0x10, 0x2b, 0x8e, 0x20, 0xa5, 0xbc, 0xa1, 0x00, 0xdd, 0x9b, 0x1c, 0x25, 0x7d};
rng.instantiate(entropy_202, personalization_204, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_203, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11606 */
{
static const uint8_t entropy_205[] = { 0x07, 0x43, 0x67, 0xca, 0x90, 0xc0, 0x4e, 0xe7, 0x88, 0x06, 0x18, 0x68, 0x3d, 0x02, 0x01, 0x7f, 0xe5, 0x82, 0x90, 0x34, 0xed, 0xf5, 0xef, 0xb8, 0x0d, 0x85, 0xd2, 0x37, 0x31, 0xec, 0x16, 0x7a};
static const uint8_t returned_206[] = { 0x8e, 0xb4, 0xe9, 0x30, 0x79, 0x96, 0xa6, 0xd1, 0x7e, 0x91, 0x37, 0xa1, 0xab, 0xa5, 0x2c, 0x51, 0x8a, 0xa5, 0x60, 0xd5, 0x93, 0x8d, 0x9c, 0xf5, 0x7f, 0x2f, 0x20, 0x09, 0xa0, 0x7c, 0x82, 0xed, 0x54, 0x0d, 0x1c, 0xb4, 0x0b, 0x70, 0x97, 0xf7, 0x7d, 0x6d, 0xd2, 0xe4, 0x90, 0x08, 0xdf, 0x8c, 0x98, 0x97, 0x9c, 0xe3, 0x7e, 0xd3, 0xf7, 0x63, 0xc3, 0x07, 0xe2, 0xd7, 0x9c, 0x7a, 0xe6, 0x16};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_207[] = { 0x21, 0x67, 0xff, 0xee, 0x68, 0x63, 0xe6, 0xe9, 0xa8, 0xd7, 0x70, 0x3b, 0x4e, 0x92, 0xee, 0xe3, 0x1a, 0x73, 0x66, 0x09, 0xd9, 0x2f, 0x90, 0xb9, 0xe3, 0xdf, 0xf4, 0x55, 0x6e, 0x12, 0xb7, 0x7b};
rng.instantiate(entropy_205, personalization_207, 32);
rng.stream(buffer, 64);
rng.stream(buffer, 64);
assert(!memcmp(buffer, returned_206, 64));
}
/* drbgvectors_no_reseed/CTR_DRBG.rsp:11614 */
{
static const uint8_t entropy_208[] = { 0x4f, 0x68, 0xa0, 0xa4, 0xac, 0xa7, 0x11, 0x55, 0x0d, 0x02, 0xcf, 0xef, 0x7b, 0xaf, 0x55, 0x5e, 0x45, 0x2a, 0x10, 0xcc, 0xb7, 0xe6, 0x32, 0x9c, 0xed, 0x3a, 0xff, 0x01, 0x96, 0x34, 0xe4, 0x15};
static const uint8_t returned_209[] = { 0x4d, 0xce, 0x9d, 0xc3, 0xb2, 0x02, 0x05, 0x95, 0xad, 0x97, 0x23, 0x14, 0xa1, 0x19, 0x46, 0x75, 0xca, 0xa7, 0x0c, 0xcb, 0xee, 0xb0, 0x23, 0xaa, 0xda, 0x1b, 0xd9, 0x91, 0xaa, 0xa9, 0x66, 0xb4, 0xef, 0x5e, 0x0d, 0xaf, 0x46, 0xca, 0xe5, 0x16, 0x53, 0x7b, 0x35, 0x18, 0x1e, 0x66, 0x84, 0xeb, 0x0d, 0x73, 0x1b, 0x91, 0x9e, 0x14, 0x70, 0x3f, 0x12, 0x19, 0x60, 0x35, 0x2d, 0xbd, 0xfe, 0x78};
uint8_t buffer[64];
AesCtrDrbg128 rng;
static const uint8_t personalization_210[] = { 0x77, 0xe2, 0xd6, 0x22, 0x99, 0x68, 0xc8, 0xa1, 0x6a, 0xc9, 0xbb, 0x1e, 0xf0, 0x42, 0x0e, 0xb0, 0x84, 0xd9, 0xfc, 0xd0, 0x10, 0x89, 0x2a, 0xcc, 0x79, 0xba, 0xab, 0x89, 0x9d, 0x19, 0xce, 0x2b};