Steffen Jaeckel
6a48f7d184
add padding tests
2018-03-23 22:01:41 +01:00
Steffen Jaeckel
ea79c5f8b1
use new padding functions in openssl-enc
2018-03-23 22:01:41 +01:00
Steffen Jaeckel
82482119df
add padding module
2018-03-23 22:01:41 +01:00
Steffen Jaeckel
8a6ee82e17
Merge pull request #341 from libtom/review/prngs
...
Review of prngs
2018-03-23 22:00:56 +01:00
Steffen Jaeckel
39d4a14c29
improve fortuna_import()
...
This makes fortuna_import() kinda compliant to the "Update seed file"
behavior of the original paper.
It differs from the original behavior in that it allows to import
seed files which are larger than 64 bytes.
2018-03-23 15:16:13 +01:00
Steffen Jaeckel
4fb3a6468e
unify the prng's export() functions
...
This also makes fortuna_export() compliant to the "Write seed file"
behavior of the original paper.
2018-03-23 15:16:13 +01:00
Steffen Jaeckel
979a36b9bb
add possibility to seed PRNG as if it's imported
2018-03-23 15:16:13 +01:00
Steffen Jaeckel
cccd1e3053
add comment to Fortuna docs
2018-03-23 15:16:13 +01:00
Steffen Jaeckel
d502869728
don't ignore additional data on SOBER128-PRNG import
2018-03-23 15:16:13 +01:00
Steffen Jaeckel
0c05e5386f
fortuna_import() shouldn't ignore additional input
2018-03-23 15:16:13 +01:00
Steffen Jaeckel
04ce8cf613
ensure that fortuna has been seeded properly
2018-03-23 15:16:13 +01:00
Steffen Jaeckel
70fd5dd83d
Merge pull request #353 from libtom/minor/improvements
...
Minor improvements
2018-03-23 15:15:30 +01:00
Steffen Jaeckel
0dc3ab00d9
update/improve docs
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
9d72e81ce8
use 'char*' in base32
...
... instead of 'unsigned char*'
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
6f20738057
Update makefiles
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
3d99d9b443
add base16_{de,en}code()
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
b026c23b0a
use do_compare_testvector() where possible
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
e1cba4da7d
fix der_test and rsa_test when compiling for msvc
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
e36e512459
use DO() macro in file_test
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
ffd4dd9e6a
give a name to the public-key-type enum
...
... and add PK_STD to it
2018-03-22 16:12:56 +01:00
Steffen Jaeckel
ccc7cf4af2
improve/fix x509_decode_subject_public_key_info()
...
1. only pass in as many alg_id sequence elements as used
2. we weren't able to import into exactly sized public_key buffers
3. fix types in API signature
4. make `public_key` arg a `const*`
2018-03-22 14:39:16 +01:00
Steffen Jaeckel
ecd3fb714d
add do_compare_testvector()
2018-03-22 14:39:16 +01:00
Steffen Jaeckel
4d17d1328d
Merge pull request #358 from libtom/travis/build-debug
...
Travis/build debug
2018-03-10 22:42:35 +01:00
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