Francois Perrad
01415ef826
const parameter mp_int
2022-12-22 10:19:54 +01:00
Steffen Jaeckel
b4bd23b4d2
Update LibTomMath to 1.2.0 ( #84 )
...
* update C files
* update other files
* update headers
* update makefiles
* remove mp_set/get_double()
* use ltm 1.2.0 API
* update ltm_desc
* use bundled tommath if system-tommath is too old
* XMALLOC etc. were changed to MP_MALLOC etc.
2020-05-26 23:36:47 +08:00
Steffen Jaeckel
615ed4e46a
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation ( #79 )
...
* make key-generation compliant to FIPS 186.4
* fix includes in tommath_class.h
* update fuzzcorpus instead of error-out
* fixup fuzzing make-targets
* update Makefile.in
* apply necessary patches to ltm sources
* clean-up not required ltm files
* update to vanilla ltm 1.1.0
this already only contains the required files
* remove set/get double
2019-09-16 21:50:38 +08:00
Matt Johnston
32a28d0d9c
Convert #ifdef to #if, other build changes
2016-05-04 15:33:40 +02:00
Matt Johnston
73444f2957
generate RSA keys of exact length
2014-02-14 23:18:45 +08:00
Matt Johnston
cbe63bbabe
rename random.h to dbrandom.h since some OSes have a system random.h
...
--HG--
rename : random.c => dbrandom.c
rename : random.h => dbrandom.h
2013-11-14 22:05:47 +08:00
Matt Johnston
d9e790e7dc
Add m_mp_alloc_init_multi() helper
...
--HG--
branch : ecc
2013-05-23 22:18:16 +08:00
Matt Johnston
79660f2eb1
more ecdsa signkey work, not correct
...
--HG--
branch : ecc
2013-04-28 23:17:43 +08:00
Matt Johnston
545de7a3a1
/dev/random blocks on busy servers too.
2012-07-19 21:34:27 +08:00
Matt Johnston
d5ccc32b4d
Improve RNG seeding.
...
Try to read from /dev/urandom multiple times, take input from extra sources,
and use /dev/random when generating private keys
2012-06-29 23:19:43 +08:00
Matt Johnston
38ed870ffe
Improve capitalisation for all logged strings
...
--HG--
extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2011-02-23 15:50:30 +00:00
Matt Johnston
fced1113d3
Rename rsa_key to dropbear_rsa_key (and same for dss too) so
...
we don't conflict with libtomcrypt.
--HG--
extra : convert_revision : 77961344ec415d73d48fdc7b1ebead3099c13394
2010-07-21 12:55:25 +00:00
Matt Johnston
460bf43822
Remove workaround forcing rsa mpint to exactly a 8 bits multiple for putty (see
...
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/rsa-non8mult-verify-fail.html ,
was fixed in 2004)
--HG--
extra : convert_revision : f21045c791002d81fc6b8dde6537ea481e513eb2
2008-09-12 17:48:33 +00:00
Matt Johnston
cf585ba1de
- refactored random mp_int generation and byte->mp_int code
...
- added RSA blinding
--HG--
extra : convert_revision : 5d5b4657a24a1c8f53c6fc45d5ec29ddb85fb45a
2005-05-05 03:58:21 +00:00
Matt Johnston
4a52217ed4
default initialisers for mp_ints
...
--HG--
extra : convert_revision : af69bacb50a31523e383e8f73844d04681f9e394
2004-08-17 10:20:20 +00:00
Matt Johnston
674a607488
Makefile.in contains updated files required
...
--HG--
extra : convert_revision : cc8a8c49dc70e632c352853a39801089b08149be
2004-06-01 02:46:09 +00:00