Karel Miko
824f3af98c
check-source.pl cosmetics
2017-02-24 20:57:47 +01:00
Karel Miko
c911427cf2
check-source.pl script for checking whitespace related troubles
2017-02-24 20:51:31 +01:00
Karel Miko
953080bcea
more trailing spaces + tabs outside of "src" dir
2017-02-24 20:50:37 +01:00
Karel Miko
477d621224
more trailing spaces + tabs in src
2017-02-24 20:31:48 +01:00
karel-m
f60e045034
Merge pull request #143 from libtom/fix/85-part2
...
Fix/85 part2
2017-02-24 19:04:46 +01:00
Francois Perrad
fc55a8fd1b
remove trailing spaces
2017-02-24 19:02:43 +01:00
Francois Perrad
b0f06ed1ec
add parenthese in macro
2017-02-24 19:00:36 +01:00
Francois Perrad
79d6e61aca
use the variable 'err'
2017-02-24 19:00:32 +01:00
Francois Perrad
31f88a9c9b
default for switch
2017-02-24 19:00:28 +01:00
Francois Perrad
203087d6d7
bug: wrong parentheses in condition with assignment
2017-02-24 19:00:24 +01:00
Karel Miko
649ef0faef
forgotten trailing space
2017-02-24 16:54:01 +01:00
karel-m
01bb22e865
Merge pull request #142 from libtom/fix/85-part1
...
Fix/85 part1
2017-02-24 16:35:19 +01:00
Francois Perrad
58353f51e2
remove trailing spaces
2017-02-24 16:29:54 +01:00
Francois Perrad
5d7036ebe2
remove hard tab
2017-02-24 16:26:48 +01:00
Francois Perrad
9f8df116be
remove useless code
2017-02-24 16:23:27 +01:00
Francois Perrad
cebf33cdce
add some const
2017-02-24 16:23:23 +01:00
Francois Perrad
9749958fe5
the comment FALLTHROUGH is common for several lint tool
2017-02-24 16:23:19 +01:00
Francois Perrad
c22acc2d07
remove useless include
2017-02-24 16:23:15 +01:00
Francois Perrad
7b48f4d5f7
fix indentation
2017-02-24 16:23:10 +01:00
Steffen Jaeckel
ecb2402ba8
remove [X]CLOCKS_PER_SEC
2017-02-24 00:28:59 +01:00
Karel Miko
979e9a9d15
fix for #90 ltc_ecc_mul2add.c integer sign issue (sjaeckel's way)
2017-02-24 00:18:55 +01:00
Karel Miko
0c226834cc
introducing LTC_INLINE
2017-02-23 23:47:56 +01:00
Steffen Jaeckel
c39390dba1
Merge branch 'fix/132' into develop
...
This closes #132
2017-02-23 11:04:10 +01:00
Karel Miko
3d5b90d24d
LTC_NO_PROTOTYPES related cosmetics
2017-02-23 11:03:55 +01:00
Steffen Jaeckel
76b289833c
only define LTC_NO_PROTOTYPES on one point
...
This closes #132
2017-02-23 11:03:55 +01:00
Steffen Jaeckel
ef023f3329
fix rsa/dsa test duplicate symbols
2017-02-21 17:32:30 +01:00
Steffen Jaeckel
fa4637e7a9
Merge branch 'fix/97' into develop
...
This closes #97
2017-02-21 16:57:38 +01:00
Steffen Jaeckel
55776b0ac9
update makefiles
2017-02-21 16:57:21 +01:00
Karel Miko
bbbbf5f1d5
adding rsa_import_radix tests
2017-02-21 16:55:10 +01:00
Karel Miko
a2c87f54de
adding rsa_import_radix
2017-02-21 16:55:09 +01:00
Steffen Jaeckel
0cf80ef631
Merge branch 'fix/98' into develop
...
This closes #98
2017-02-21 16:54:25 +01:00
Karel Miko
ac6f69e8fe
adding dsa_import_radix tests
2017-02-21 16:54:11 +01:00
Steffen Jaeckel
43517bca83
update makefiles
2017-02-21 16:54:11 +01:00
Karel Miko
10545366d2
adding dsa_import_radix
2017-02-21 16:54:10 +01:00
Steffen Jaeckel
a8df316581
Merge branch 'pr/133' into develop
...
This closes #133
2017-02-21 16:45:12 +01:00
Karel Miko
bcf7753a26
use MIN macro
2017-02-21 16:36:17 +01:00
Karel Miko
ecbac7324e
DSA: properly handle FIPS 186-4 (4.6 + 4.7)
2017-02-21 16:36:17 +01:00
Steffen Jaeckel
498538f6ef
Merge pull request #103 from libtom/fix/103
...
Serious bug in rng_get_bytes @ MS Windows
2017-02-21 14:39:54 +01:00
Karel Miko
b36e75b7f1
don't read from c:\dev\random on windows
2017-02-21 13:34:52 +01:00
Steffen Jaeckel
d727b16898
use proper defines as of [1]
...
[1] http://predef.sourceforge.net
2017-02-21 13:34:52 +01:00
Steffen Jaeckel
5757fdb035
Merge branch 'pr/124' into develop
...
This closes #124
2017-02-21 11:50:25 +01:00
zeromus
c341d36c6a
do it differently
2017-02-21 11:49:35 +01:00
zeromus
32f19995f8
do it differently
2017-02-21 11:49:35 +01:00
zeromus
793ff08986
do it differently
2017-02-21 11:49:35 +01:00
zeromus
c83763bd46
fix tiny compile error in tomcrypt_pk.h macro
...
An ARM compiler gives me this:
libtomcrypt\pk\asn1\der\sequence\der_decode_subject_public_key_info.c(65,4): error #188-D: enumerated type mixed with another type
Since der_decode_subject_public_key_info's parameters_type is of type 'unsigned long', an attempt to assign it to ltc_asn1_list's member 'ltc_asn1_type type' fails.
My fix solves this in a simple way by casting it at the point of assignment.
But while studying this I noticed there's no use of enum in the codebase other than a few PK-related things. Perhaps a more appropriate solution would be to remove these enums. I mean, enums seem like an OK enough idea, but I don't know anything about the practicality of using enums in archaic C dialects like libtomcrypt conforms (thankfully!) to...
2017-02-21 11:49:35 +01:00
Steffen Jaeckel
600004fecc
print ascii in print_hex()
2017-02-21 11:42:24 +01:00
Steffen Jaeckel
60bb5440fb
add compare_testvector()
2017-02-21 11:42:24 +01:00
Steffen Jaeckel
383f200cb6
fix LTC_MINIMAL
2017-02-20 19:19:44 +01:00
Steffen Jaeckel
fd99c3e3c0
remove duplicate define
2017-02-20 18:58:20 +01:00
Steffen Jaeckel
08aabc7f8c
improve print_hex() prototype
2017-02-17 11:53:14 +01:00