aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-20Drop support for the ASN.1-based ECDSA signature format in favor ofRob Austein
the simpler format which PKCS #11 uses, since we have to support the latter in any case and it's not worth the complexity of supporting both.
2015-12-20RPC server stuff mostly written. Compiles, not yet tested. RPCRob Austein
public key extraction functions on hold pending ASN.1 cleanup.
2015-12-13Merge Paul's copyright updates.Rob Austein
2015-12-13whack copyrightsPaul Selkirk
2015-12-13Add rpc_hash.c. Convert dynamic allocator in hash.c to use privateRob Austein
pool of pre-configured state blocks, suitable for an embedded system.
2015-12-12Silence platform-dependent compiler whining: in general, when printf()Rob Austein
whines about some platform-dependent integer size issue, it's best to use both an explicitly sized format (eg, "%lu") and an explicit cast (eg, "(unsigned long)") when silencing the warning, otherwise it'll just pop up again in different form on the next platform tested.
2015-12-11RPC API dispatch, skeleton client functions, mixed-mode handlers forRob Austein
local hashing with remote pkey.
2015-12-10First cut at public libhal RPC API.Rob Austein
2015-11-17More post-merge cleanup.Paul Selkirk
- Joachim says always check entropy and csprng for 'valid' before reading. - Harmonize RNG status valid bit with other cores. - Clean up compiler warnings about printf formats.
2015-11-16new test to exercise trng coresPaul Selkirk
2015-11-16remove dependency on csprngPaul Selkirk
2015-11-16harmonize ctrl and status addresses with other coresPaul Selkirk
2015-11-14Catch up with other branch merges.Paul Selkirk
- TRNG cores are contiguous (but they still have their own mux, so occupy a block of 16 cores). - Use Rob's updated libhal in my new apps.
2015-11-13Merge branch 'config_core_selector'Paul Selkirk
2015-11-12fix printf warnings, fix time_check calculationPaul Selkirk
2015-10-31add core probe utilityPaul Selkirk
2015-10-31add bus performance testPaul Selkirk
2015-10-31fix time calculation in test-ecdsaPaul Selkirk
2015-10-29change CFLAGS assignment to += for cross-buildingPaul Selkirk
2015-10-29Remove unused includes.Paul Selkirk
2015-10-26Use ${AR} for cross-building.Paul Selkirk
Regular ar is fine, but this feels cleaner.
2015-10-19catch up to changes in core version numbersPaul Selkirk
2015-10-04Handle missing hash cores more gracefully.Rob Austein
2015-10-04Disallow NULL core argument in lowest-level HAL I/O routines.Rob Austein
2015-10-04Helps to select the CSPRNG core before trying to call it.Rob Austein
2015-10-04Whack libhal API to use current configure_core_selector mechanism.Rob Austein
Compiles, not yet tested.
2015-10-04off_t => hal_addr_t.Rob Austein
2015-10-03Use initializers for automatic variables of type fp_int because it's aRob Austein
bit more obvious when we've forgotten to do this than when we've forgotten to call fp_init() or memset(). Convert rsa.c to use the one-element-array idiom so we can get stop prefixing every bignum reference with "&".
2015-10-02Impressive how much trouble one can get into with one uninitialized bignum.Rob Austein
2015-10-02Testing shows that signature and verification are both faster withRob Austein
mixed Jacobian-affine addition, so go with that. Minor additional clean-up and comments.
2015-10-02Revise point addition and point scalar multiplication routines to useRob Austein
mixed Jacobian-affine coordinates, per a suggestion from Pavel. Old code still present under compile time conditional for easy comparison, but will probably go away soon along with a bit of minor cleanup.
2015-09-14Fencepost error in hal_ecdas_key_from_ecpoint().Rob Austein
2015-09-14P-512 parameters were mislabeled.Rob Austein
2015-09-12PKCS #11 testing turned up a problem with P-521, don't reallyRob Austein
understand the bug yet, but first step is fixing test-ecdsa.
2015-09-11Avoid gratuitous assertion failure if caller gives us a larger bufferRob Austein
than necessary when writing private key to DER.
2015-09-08Merge branch 'master' into ecdsaRob Austein
This required a bit of manual cleanup in hal.h, hash.c, and rsa.c. No intended changes to functionality provided by parent comments, just a few tweaks to track API changes beyond git's ken.
2015-09-08Merge branch 'state_access'Rob Austein
2015-09-08Merge branch 'modexps6'Rob Austein
2015-09-06Add ECPoint I/O functions. ASN.1 cleanup.Rob Austein
2015-09-02Still more const-ification.Rob Austein
2015-09-02Add PKCS11 ECDSA signature format.Rob Austein
2015-09-02Identify PBKDF2 tests.Rob Austein
2015-09-02Clean up excessively complicated handling of opaque types in hash andRob Austein
RSA code; use simpler model (pointer to incomplete structure) used in ECDSA code. Refactor RSA code to use shared ASN.1 routines.
2015-08-27Add point validation check to hal_ecdsa_verify(). Update README.mdRob Austein
and code comments.
2015-08-26Signature works better if we read the entire hash.Rob Austein
2015-08-25More ASN.1 fixes.Rob Austein
2015-08-25Rework RFC 5915 ASN.1.Rob Austein
2015-08-25More test code.Rob Austein
2015-08-25ASN.1 bugfixes.Rob Austein
2015-08-25Add keygen/sign/verify test with dynamic (not test vector) key.Rob Austein
2a35a22f4ae'>a1e4e4f
7dfad9f
c2b116a
598e759
abd5caf
a1e4e4f

7dfad9f
c2b116a
abd5caf

86b35d7
abd5caf
a1e4e4f

7dfad9f
c2b116a
86b35d7


7dfad9f
abd5caf
7dfad9f
abd5caf
7dfad9f
d844d76



abd5caf
7dfad9f
86b35d7
abd5caf
7dfad9f
abd5caf
7dfad9f
17da006
abd5caf
45061e2
7dfad9f
abd5caf
86b35d7
abd5caf
45061e2
7dfad9f
abd5caf
86b35d7
abd5caf
015eefa

45061e2
abd5caf
598e759

abd5caf
015eefa

45061e2
db32574

09a065b
db32574



dcf3c67
db32574














09a065b














abd5caf


cef7ba6


abd5caf
86b35d7
598e759


c2b116a
598e759

36dfaf0






65e8ef4


36dfaf0

c2b116a
8c3743e
c2b116a

5af178d

c2b116a






5af178d



c2b116a
8c3743e





















86b35d7




b3744cd


86b35d7



95b79e1






86b35d7

95b79e1
86b35d7
c2b116a
38c4b78
97ee7df
38c4b78
106ef00
c2b116a
a1e4e4f









38c4b78





















e99f94d



38c4b78







e99f94d
38c4b78





86b35d7










c2b116a




86b35d7

c2b116a







015eefa
c2b116a



















421626c



c2b116a





015eefa
c2b116a






015eefa
c2b116a

015eefa
45061e2
c2b116a


db32574

015eefa
45061e2
db32574


09a065b
db32574



dcf3c67
db32574

















09a065b
















c2b116a















65e8ef4


c2b116a
421626c

1f78f1b
421626c

1f78f1b


421626c




1f78f1b
421626c

1f78f1b


421626c


c2b116a


1f78f1b
c2b116a

1f78f1b


c2b116a




1f78f1b
c2b116a

1f78f1b


c2b116a






1f78f1b
c2b116a

1f78f1b


c2b116a






1f78f1b
c2b116a

1f78f1b


c2b116a





1f78f1b
c2b116a

1f78f1b


c2b116a



015eefa
45061e2
c2b116a



1f78f1b
c2b116a

1f78f1b


015eefa
c2b116a

db32574
015eefa
45061e2
db32574


09a065b
db32574



dcf3c67
db32574
1f78f1b
db32574

1f78f1b


015eefa
db32574








1f78f1b
db32574

1f78f1b


db32574



09a065b




db32574
1f78f1b
db32574

1f78f1b


db32574



09a065b

db32574
1f78f1b
db32574

1f78f1b


db32574


09a065b




1f78f1b
09a065b


1f78f1b


09a065b













1f78f1b
09a065b



1f78f1b


09a065b








1f78f1b
09a065b


1f78f1b


09a065b


c2b116a
97ee7df



















378bcae






97ee7df
378bcae
97ee7df



97ee7df





378bcae




97ee7df


378bcae
97ee7df


















378bcae












97ee7df





378bcae


97ee7df





378bcae


97ee7df

46e73ec










5e12757






378bcae


5e12757

f7c3a15






db32574
db32574

1f78f1b

db32574





















cef7ba6



79559c5

cef7ba6
79559c5

cef7ba6
79559c5




cef7ba6
cef7ba6





79559c5
cef7ba6





















db595b9

cef7ba6
0690aa3
db32574



d844d76
09a065b


cef7ba6

3ba7ca4
79559c5
b3744cd

79559c5

b3744cd




cef7ba6
3ed08b6



























9043611



90835dc

9043611
86b35d7
abd5caf





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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065