Commit Graph

1268 Commits

Author SHA1 Message Date
Steffen Jaeckel
65dc00e23a align HASH_PROCESS() macro 2017-08-08 19:05:59 +02:00
Steffen Jaeckel
c29c9f140d disable DSA4096 timing tests when building for TFM
this fixes #260
2017-08-08 08:47:58 +02:00
Steffen Jaeckel
227838bb09 Merge pull request #261 from libtom/improve/test_without_mpi
make it possible to 'make all' w/o an MPI provider
2017-08-08 08:46:31 +02:00
Steffen Jaeckel
a65cfb8dbe make it possible to 'make all' w/o an MPI provider 2017-08-07 21:11:42 +02:00
Steffen Jaeckel
7993ce8e10 Merge pull request #262 from libtom/pr/ocb3-done-taglen-fix
ocb3_done taglen fix
2017-08-07 21:07:25 +02:00
Steffen Jaeckel
9139b59699 OCBv3: fix testvector generation 2017-08-07 19:43:09 +02:00
Steffen Jaeckel
9952fac68e tv.txt contains errors from tv_gen 2017-08-07 19:37:53 +02:00
Karel Miko
f647baa778 OCBv3: ocb3_init taglen check 2017-08-07 18:24:59 +02:00
Karel Miko
af63d0a55f OCBv3: improved handling of taglen in ocb3_done 2017-08-07 18:24:59 +02:00
Steffen Jaeckel
41130900d0 fix 1. help-line of openssl-enc
[skip ci]
2017-08-07 17:28:49 +02:00
Steffen Jaeckel
28ecdd5d12 minor improvements
[skip ci]
2017-08-07 16:33:38 +02:00
Steffen Jaeckel
ac4687d88d also put LTC_TEST_DBG in crypt_build_settings 2017-08-07 16:18:15 +02:00
Steffen Jaeckel
44076e3815 Merge branch 'fix/254' into release/1.18.0
This fixes #254
2017-08-07 16:05:38 +02:00
Steffen Jaeckel
7a59f71af8 fix warning
warning: 'ltc_asn1_type {aka enum ltc_asn1_type_}' is promoted to 'int' when passed through '...'
        type = va_arg(args, ltc_asn1_type);
note: (so you should pass 'int' not 'ltc_asn1_type {aka enum ltc_asn1_type_}' to 'va_arg')
note: if this code is reached, the program will abort
2017-08-07 16:04:57 +02:00
Steffen Jaeckel
32355d04bb fix endianness detection for some versions of gcc
This fixes #254
2017-08-07 16:04:57 +02:00
Steffen Jaeckel
9f020b17df limit malloc'ed data in eax_decrypt_verify_memory() 2017-08-07 16:04:36 +02:00
Steffen Jaeckel
05f7393067 Merge pull request #256 from libtom/fix/256
OCB3 is not according to RFC7253
2017-08-07 16:03:39 +02:00
Karel Miko
6ac1c5fa34 OCBv3: fix demos/timing failures 2017-08-07 07:48:21 +02:00
Steffen Jaeckel
3ecd18763b OCBv3: better taglen limitation 2017-08-03 13:40:57 +02:00
Steffen Jaeckel
3b4d39ea45 OCBv3: improve a bit when ARGCHK'ing pointers
* it didn't really make sense to check that the _in_ pointer is NULL
* instead we should check that _in_ and _out_ are not NULL when there's
  something to process
2017-08-03 13:40:26 +02:00
Steffen Jaeckel
868c5a82c3 OCBv3: fix handling of empty plaintext 2017-08-03 13:19:12 +02:00
Steffen Jaeckel
bc0c18f347 Update makefiles 2017-08-02 18:55:42 +02:00
Steffen Jaeckel
0c2ff4a1b0 OCBv3: small review
* better LTC_ARGCHK()
* move unnecessary functions from API to be static
* limit malloc'ed data in ocb3_decrypt_verify_memory()
2017-08-02 18:55:34 +02:00
Steffen Jaeckel
d77cf0e248 OCBv3: implement RFC7253 compliance
This fixes #256
2017-08-02 17:45:59 +02:00
Steffen Jaeckel
1aaa5abb33 ocb3: check the length of the nonce 2017-08-02 14:41:46 +02:00
Steffen Jaeckel
b2448c593a ocb3: properly handle empty AAD
* allow passing "no additional data" to ocb3_decrypt_verify_memory() and
  ocb3_encrypt_authenticate_memory()
* ensure that the caller didn't want to add AAD
2017-08-01 14:44:37 +02:00
Steffen Jaeckel
4805c89adb add ARGTYPE to crypt_build_settings 2017-08-01 14:21:11 +02:00
Michael Stapelberg
541ab1c16c Fix crypt.tex with newer TeXLive (thanks Norbert Preining)
See https://lists.debian.org/debian-tex-maint/2017/08/msg00000.html for details
2017-08-01 12:04:01 +02:00
Steffen Jaeckel
129bc7175f beautify dh & rsa 2017-07-21 10:16:19 +02:00
Steffen Jaeckel
6b925485a8 make sure to request an element which is always available 2017-07-20 13:34:16 +02:00
Steffen Jaeckel
ab8c5b8b49 fix help of {un,}install targets 2017-07-20 12:58:28 +02:00
Steffen Jaeckel
61eb98b76e add compile-time check for sprng requirements 2017-07-20 12:47:19 +02:00
Steffen Jaeckel
a46d6eb819 remove define of LTC_NO_FILE when defining LTC_NOTHING
it doesn't make sense to define this opt-out option especially
since there's no way to undefine it again.
2017-07-19 16:44:37 +02:00
Steffen Jaeckel
83407feaa6 Merge pull request #250 from libtom/pr/readme-building
README building instructions
2017-07-17 18:34:52 +02:00
Steffen Jaeckel
1e1170df29 move timing to BROKEN_DEMOS 2017-07-17 13:36:34 +02:00
Steffen Jaeckel
24c5b74193 introduce 'make help' 2017-07-17 13:36:34 +02:00
Steffen Jaeckel
bffaab4eed re-group demos and really build everything in 'all' target 2017-07-17 13:36:34 +02:00
Steffen Jaeckel
22c13b49d8 oops, refman.pdf can't be built with DOT 2017-07-17 13:36:34 +02:00
Steffen Jaeckel
0e081d666a improve error message when using makefile on Mac OSX
[skip ci]
2017-07-17 13:36:34 +02:00
Steffen Jaeckel
4cb8936a31 update readme
[skip ci]
2017-07-17 13:36:34 +02:00
Karel Miko
bfe6c4d35c improved README - building instructions
[skip ci]
2017-07-17 13:36:34 +02:00
karel-m
ff54ec2f0d Merge pull request #253 from libtom/pr/rc2-fix-win64
Fix MS Windows/64bit related warnings
2017-07-14 20:41:10 +02:00
Karel Miko
909b4954a9 fix MS Windows/64bit related warnings 2017-07-14 19:59:03 +02:00
Steffen Jaeckel
aa0f396c0c Update makefiles 2017-07-13 14:58:01 +02:00
Steffen Jaeckel
535358ec28 bump version 2017-07-13 14:57:45 +02:00
Steffen Jaeckel
89d0c64335 Merge pull request #247 from libtom/pr/custom_compile_flags
introduce LTC_CFLAGS and LTC_LDFLAGS
2017-07-13 14:34:05 +02:00
Steffen Jaeckel
a2f48578e9 also pre-pend -Itests 2017-07-12 22:48:46 +02:00
Steffen Jaeckel
a949ef5a89 append instead of prepend CFLAGS for the other makefiles 2017-07-11 15:37:31 +02:00
Steffen Jaeckel
b1c0227d54 introduce LTC_CFLAGS and LTC_LDFLAGS 2017-07-11 15:33:33 +02:00
Steffen Jaeckel
24e69b2956 more printf() clean-up
* remove last occurences in non-test code
* minimize in tests
2017-07-11 15:29:45 +02:00