werew
25c26a3b7a
Fixes #507
2019-10-03 19:57:10 +02:00
Steffen Jaeckel
734ba7ec50
Merge pull request #499 from libtom/minor-improvements
...
Minor improvements
2019-09-30 15:00:05 +02:00
Steffen Jaeckel
da9f55231f
don't exclude other settings when giving make options
...
Now `make LTC_DEBUG=1` builds a full-speed library but with debug infos.
One has to do `make LTC_DEBUG=1 IGNORE_SPEED=1` now to have the same
results as before.
This was done since
1. it makes sense to enable optimization also when adding debug infos
2. clang+valgrind creates errors if there's no optimization enabled
(c.f. #497 )
2019-09-30 11:55:51 +02:00
Steffen Jaeckel
d4b8d9b507
fix scan-build error
2019-09-30 11:55:51 +02:00
Steffen Jaeckel
9416a88468
install libtool-bin
2019-09-30 11:55:49 +02:00
Steffen Jaeckel
e4dd30af54
run tests on bionic
2019-09-30 11:54:07 +02:00
Steffen Jaeckel
4458e91151
be more strict when searching scan-build-*
...
clang-9 brings `scan-build-py-9` which matched the old pattern
2019-09-30 11:54:03 +02:00
Steffen Jaeckel
62bbdecaff
use rotate intrinsics if available
2019-09-30 11:35:49 +02:00
Steffen Jaeckel
33dabf9693
only run the standard build in travis PR's
...
all the other builds are only get built, the testrun is skipped
2019-09-30 11:35:49 +02:00
Steffen Jaeckel
e2f5d17dcc
test default-build as first
2019-09-30 09:59:59 +02:00
Steffen Jaeckel
6f3a7c9e3e
improve GNU Makefiles a bit
...
* unignore type-limits warning
* add the possibility to do `make V=0 >/dev/null` and still get the
CFLAGS and LDFLAGS that are used while compilation
2019-09-30 09:59:59 +02:00
Steffen Jaeckel
1e67d81f7b
Merge pull request #498 from libtom/appveyor
...
Add AppVeyor MSVC builds
2019-09-29 17:33:24 +02:00
Steffen Jaeckel
eaf2c7b6b9
fix build for msvc
2019-09-24 14:09:35 +02:00
Steffen Jaeckel
d25c52b546
add AppVeyor to README
2019-09-24 14:09:35 +02:00
Steffen Jaeckel
b4c6c4c45f
also build on appveyor
2019-09-24 13:24:09 +02:00
Steffen Jaeckel
a1f6312416
Merge pull request #493 from jbech-linaro/rijndael_range
...
check range in _rijndael_ecb_ functions
2019-09-04 13:44:47 +02:00
Joakim Bech
7b4a5c1dcf
check range in _rijndael_ecb_ functions
...
There is no check that the 'skey' structure has been properly
initialized. For example, the skey->rijndael.Nr is assumed to contain a
positive number corresponding to the number of AES rounds to perform. In
_rijndael_ecb_encrypt the skey->rijndael.Nr is subtracted by two, which
can result in an integer underflow if the structure hasn't been
initialized correctly.
By clamping the value for skey->rijndael.Nr into the valid rounds for
AES we can return an error instead of ending up reading outside the
boundaries (of skey->rijndael.eK).
Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
Reported-by: Martijn Bogaard <bogaard@riscure.com>
2019-08-02 10:39:08 +02:00
Steffen Jaeckel
e01e4c5c97
Merge pull request #491 from fperrad/20190610_lint
...
some linting
2019-06-11 07:55:21 +02:00
Francois Perrad
75d53696c2
remove useless initialization
2019-06-10 23:56:27 +02:00
Steffen Jaeckel
c23f4699fb
Merge pull request #490 from libtom/improve/curve25519
...
Improve curve25519
2019-06-10 21:53:51 +02:00
Steffen Jaeckel
c971205404
fix clang-tidy warnings: do not use else after return
2019-06-10 12:48:16 +02:00
Steffen Jaeckel
e673906026
fix differing parameter names
2019-06-10 12:48:16 +02:00
Steffen Jaeckel
0b06979b10
prefix tweetnacl crypto_
API
2019-06-10 12:48:16 +02:00
Karel Miko
10056ed540
make crypto_verify_32 static
2019-06-10 12:32:28 +02:00
Karel Miko
1301cc5d2f
fix clang-tidy warnings: do not use else after return
2019-06-10 12:31:56 +02:00
Steffen Jaeckel
3da27d71a0
Improve comments&doc
...
[skip ci]
2019-06-10 03:28:42 +02:00
Steffen Jaeckel
55d6661d48
Update makefiles
2019-06-09 23:20:45 +02:00
Steffen Jaeckel
fef07fd843
add documentation of Curve25519 API
2019-06-09 23:20:45 +02:00
Steffen Jaeckel
e0a9114129
move setting of sig-verification result to crypto_sign_open()
2019-06-09 23:20:45 +02:00
Steffen Jaeckel
0392867678
use shared {ed,x}25519_export() implementation
2019-06-09 23:20:45 +02:00
Steffen Jaeckel
3957c22e28
remove unused code from tweetnacl
2019-06-09 23:20:45 +02:00
Steffen Jaeckel
819656a12f
add ed25519_make_key() testcase
2019-06-09 23:20:45 +02:00
Steffen Jaeckel
41731855c9
fix comment
2019-06-09 23:20:45 +02:00
Steffen Jaeckel
e3766e16ca
add real pkcs#8 import of Curve25519 private keys
2019-06-09 22:46:57 +02:00
Steffen Jaeckel
8ea0fb1195
rename x25519_set_ku() to x25519_set_key()
2019-06-09 22:46:57 +02:00
Steffen Jaeckel
5d87aa21a5
Merge pull request #364 from libtom/feature/curve25519
...
Add curve25519
2019-06-09 22:22:39 +02:00
Steffen Jaeckel
47c34b37ef
Update makefiles
2019-06-09 20:41:04 +02:00
Steffen Jaeckel
94b894fda9
update tests
2019-06-09 20:41:04 +02:00
Steffen Jaeckel
34196b90b9
add {ed,x}25519_import_x509()
2019-06-09 20:41:04 +02:00
Steffen Jaeckel
54d7c6782b
clean-up macros
...
no need to enable them separately now
2019-06-09 20:41:04 +02:00
Steffen Jaeckel
233f8af490
draft-ietf-curdle-pkix is meanwhile rfc8410
2019-06-09 20:41:02 +02:00
Steffen Jaeckel
fe00be4abc
Fix removed oid_st
2019-06-09 20:40:42 +02:00
Steffen Jaeckel
52a24ca3a3
add Curve25519 API
2019-06-09 20:40:40 +02:00
Steffen Jaeckel
59190c4f3c
fix warnings & apply required changes
2019-06-09 11:43:54 +02:00
Steffen Jaeckel
a5072b17d5
add new signed datatype
2019-06-09 11:43:54 +02:00
Steffen Jaeckel
5698e0592c
remove not required stuff & re-implement crypto_hash()
2019-06-09 11:43:54 +02:00
Steffen Jaeckel
ee11f2d500
add headers & footers
2019-06-09 11:43:54 +02:00
Steffen Jaeckel
85e902bcc0
add tweetnacl.c Version 20140427
2019-06-09 11:43:54 +02:00
Steffen Jaeckel
c600d81e31
Merge pull request #489 from libtom/pr/fix-stringop-truncation
...
Fix gcc 8.3 warning (stringop-truncation)
2019-06-09 11:40:51 +02:00
Karel Miko
5f09c2c584
Fix gcc 8.3 warning (stringop-truncation)
2019-06-09 11:40:27 +02:00