Commit Graph

1933 Commits

Author SHA1 Message Date
Steffen Jaeckel
7fb108d884 add full-debug build to ci-tests 2018-03-10 17:37:54 +01:00
Steffen Jaeckel
3cfdd4bfdb fix compilation with debug output enabled 2018-03-10 11:34:05 +01:00
Steffen Jaeckel
2c07ff6fbe
Merge pull request #355 from MilkywayPwns/develop
renamed class -> klass
2018-03-10 10:43:14 +01:00
RektInator
b477e2c221 Renamed class->klass 2018-03-09 16:37:18 +01:00
karel-m
249d4694da
Merge pull request #356 from libtom/pr/keccak
Keccak
2018-03-08 09:58:46 +01:00
Karel Miko
e1ffc82bfb add keccak_NNN_init + keccak_process defines 2018-03-08 07:18:33 +01:00
Karel Miko
3cd8044290 Keccak 2018-03-08 07:18:33 +01:00
karel-m
2731b9a873
Merge pull request #357 from libtom/pr/357-msvc-warning
MSVC fix warning: signed/unsigned mismatch
2018-03-08 07:10:52 +01:00
Karel Miko
1871c5dff4 fix warning: signed/unsigned mismatch 2018-03-07 23:39:43 +01:00
Steffen Jaeckel
0a4f36d45d
Merge pull request #352 from fperrad/20180226_lint
some linting after ecc-asn1-minimal-part merge
2018-03-01 08:47:59 +01:00
Francois Perrad
1662910b40 refactor der_encode_asn1_length
in order to avoid comparison : len <= 0xffffffffffffffffULL
2018-02-28 16:19:15 +01:00
Francois Perrad
995e575521 variable 'len' must be initialized in all case 2018-02-27 22:16:57 +01:00
Francois Perrad
525b129466 fix indentation 2018-02-26 21:11:44 +01:00
karel-m
ea5b6cdce9
Merge pull request #351 from libtom/pr/fix-time_cipher_lrw
LTC_EASY & time_cipher_lrw
2018-02-26 12:55:41 +01:00
Karel Miko
733d3e5d7d fix: return with a value, in function returning void (LTC_EASY) 2018-02-26 09:52:57 +01:00
Steffen Jaeckel
64298c1819
Merge pull request #309 from libtom/pr/ecc-asn1-part-minimal
ECC-step1: ASN.1 changes required for future ECC enhancements
2018-02-25 23:34:09 +01:00
Steffen Jaeckel
d89326bbea update doc 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
e4efd70382 add der_decode_custom_type_ex()
This merges der_decode_sequence_ex() into a new der_decode_custom_type_ex()
which can decode SEQUENCEs, SETs and custom types.
2018-02-25 20:42:26 +01:00
Steffen Jaeckel
9d03c38ea4 add flags to der_decode_sequence() 2018-02-25 20:42:26 +01:00
Karel Miko
3044b227f8 improve style of length-checks
As `der_decode_asn1_length()` will now also decode a uint64 with all 0xff
the old style would overflow in that check which "wouldn't be good"^TM.

The old way the length-checks were written were kind of fine when building
on 64bit architectures, but have the same problem on 32bit.
2018-02-25 20:42:26 +01:00
Steffen Jaeckel
7e2d163d1d add testvectors from [1]
[1] https://misc.daniel-marschall.de/asn.1/oid_facts.html
2018-02-25 20:42:26 +01:00
Steffen Jaeckel
756bc7fa21 use new ASN.1 functionality 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
3431763275 update/add more DER tests 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
b75c3ce9db remove LTC_ASN1_CONSTRUCTED and LTC_ASN1_CONTEXT_SPECIFIC 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
799e147254 Update makefiles 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
5230977219 implement the Custom-type de-/encoders 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
0d02137a8e add required ASN.1 custom-types functions 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
1b3a757345 add ASN.1-identifier functions 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
509ad5222f add maps for ASN.1 en-/decoding 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
64875d3a8f add ASN.1-length functions 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
2a78ed31bf add CRYPT_PK_ASN1_ERROR 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
54dd6ce840 fix naming of SubjectPublicKeyInfo de-&encoder 2018-02-25 20:42:26 +01:00
Karel Miko
fd7c2b8c1f no need for der_decode_subject_public_key_info_ex 2018-02-25 20:42:26 +01:00
Karel Miko
f155d3c530 ASN.1 changes required fo future ECC enhancements 2018-02-25 20:42:26 +01:00
Steffen Jaeckel
11cda2e274
Merge pull request #350 from libtom/fix/no-file-warnings
Fix warnings in `XMAC_file()` functions when compiling with `LTC_NO_FILE`.
2018-02-25 20:35:49 +01:00
Steffen Jaeckel
b1b40d48fa silencio por favor
Fix warnings in `XMAC_file()` functions when compiling with `LTC_NO_FILE`.
2018-02-25 17:17:04 +01:00
Steffen Jaeckel
5a3a12c9b3 don't export .travis.yml in future releases 2018-01-22 11:09:38 +01:00
Steffen Jaeckel
fa96614366 Update makefiles 2018-01-22 11:05:22 +01:00
Steffen Jaeckel
d68de4d26d show in SCRYPT etc. that we're on develop 2018-01-22 11:05:20 +01:00
Steffen Jaeckel
7de2d910fe libtomcrypt v1.18.1
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 Comment: Gnu Privacy Tools
 
 iF4EABEIAAYFAlpltt4ACgkQrwyxdiHtrXIaugD+PZ1lGJ3Hhm5nQzVycQqp5ryc
 BbfeJhhrRVr1art3ftMA/2AOFXS0SEKtkgALCh1qJkK9YwZIZcDGPqSl/6uTEbKq
 =1DpZ
 -----END PGP SIGNATURE-----

Merge tag 'v1.18.1' into develop

libtomcrypt v1.18.1
2018-01-22 11:04:49 +01:00
Steffen Jaeckel
e08fd8630f Merge branch 'release/1.18.1' 2018-01-22 11:02:57 +01:00
Steffen Jaeckel
60df7d360a Fix 'fixme check'
The error produced by `make zipup` - but ignored by make - was:

```
...
fixme check
makefile_include.mk:448: recipe for target 'zipup' failed
make: [zipup] Error 123 (ignored)
mkdir -p libtomcrypt-...
```
2018-01-22 11:01:34 +01:00
Steffen Jaeckel
c7ff3bb86e Bump revision 2018-01-22 10:45:28 +01:00
Steffen Jaeckel
08e0424d52 Update changes 2018-01-22 10:06:54 +01:00
Steffen Jaeckel
4800543664 add -p switch to install commands in GNU makefiles
This fixes #340

[skip ci]

(cherry picked from commit fc6eb3ecf0)
2018-01-22 10:05:03 +01:00
Steffen Jaeckel
fc6eb3ecf0 add -p switch to install commands in GNU makefiles
This fixes #340

[skip ci]
2018-01-21 13:23:14 +01:00
Steffen Jaeckel
da7054820c Fix some latex formatting errors
[skip ci]
2018-01-20 15:31:00 +01:00
Tetsuya Yoshizaki
144839a8db ltc: ctr: update pt and ct after acceleration
Problem occurs in the condition of the following case:

1st decryption:
Decrypt a ciphertext whose length is a multiple of the block size (16B)
(len = n * block_size)
2nd decryption:
Decrypt the continuing ciphertext whose length is not a multiple of the
block size
(len = m * block_size + l)

In this case accel_ctr_encrypt() is firstly used at the 2nd decryption.
If pt and ct are not updated, the top (l = len % block_size) bytes of
decryption result are sometimes destroyed.

From: Tetsuya Yoshizaki <yoshizaki.tetsuya@socionext.com>
Signed-off-by: Tetsuya Yoshizaki <yoshizaki.tetsuya@socionext.com>
Signed-off-by: Victor Chong <victor.chong@linaro.org>
(cherry picked from commit d1d3ae2d1e)
2018-01-19 10:01:03 +01:00
Tetsuya Yoshizaki
d1d3ae2d1e ltc: ctr: update pt and ct after acceleration
Problem occurs in the condition of the following case:

1st decryption:
Decrypt a ciphertext whose length is a multiple of the block size (16B)
(len = n * block_size)
2nd decryption:
Decrypt the continuing ciphertext whose length is not a multiple of the
block size
(len = m * block_size + l)

In this case accel_ctr_encrypt() is firstly used at the 2nd decryption.
If pt and ct are not updated, the top (l = len % block_size) bytes of
decryption result are sometimes destroyed.

From: Tetsuya Yoshizaki <yoshizaki.tetsuya@socionext.com>
Signed-off-by: Tetsuya Yoshizaki <yoshizaki.tetsuya@socionext.com>
Signed-off-by: Victor Chong <victor.chong@linaro.org>
2018-01-19 09:39:25 +01:00
Steffen Jaeckel
5501572b35 Merge pull request #339 from libtom/minor_improvements
Minor improvements
(cherry picked from commit df8ed5c76b)
2018-01-15 00:39:26 +01:00