Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Simon Tatham 9604c2b367 Generate keys more carefully, so that when the user asks for an n-bit
key they always get an n-bit number instead of n-1. The latter was
perfectly harmless but kept confusing users.

[originally from svn r9421]
2012-03-04 00:24:49 +00:00
Simon Tatham e59f1ac827 Long overdue rewrapping of the primes[] array for legibility. I think
the previous ghastly formatting arose when I ran the whole source base
through GNU indent...

[originally from svn r9420]
2012-03-04 00:24:47 +00:00
Jacob Nevins 0b673fd02d Fix a memory leak in key generation.
[originally from svn r6587]
2006-02-27 23:55:07 +00:00
Simon Tatham 61648131fb Failure to set multipliers[NPRIMES] was rendering the input-modulus
feature (make sure your prime is not congruent to Foo mod Bar)
largely ineffective. As a result, RSA keys were being generated
every so often with at least one prime congruent to 1 mod 37,
causing modinv(37, phi(n)) to divide by zero, and rightly so. I
believe this fixes `puttygen-zero-div'.

[originally from svn r3316]
2003-06-28 14:11:28 +00:00
Ben Harris a427048b29 Deal with a "possible extraneous ';'" warning.
[originally from svn r2841]
2003-02-12 23:21:38 +00:00
Simon Tatham d345ebc2a5 Add support for DSA authentication in SSH2, following clever ideas
on how to get round the problem of generating a good k.

[originally from svn r1284]
2001-09-22 20:52:21 +00:00
Simon Tatham 3730ada5ce Run entire source base through GNU indent to tidy up the varying
coding styles of the various contributors! Woohoo!

[originally from svn r1098]
2001-05-06 14:35:20 +00:00
Simon Tatham cdf972d9f1 Fix excessive calls to random_byte()
[originally from svn r1052]
2001-04-16 16:25:57 +00:00
Simon Tatham f72b5aa95f Remove the last lingering knowledge, outside sshbn.c, of the
internal structure of the Bignum type. Bignum is now a fully opaque
type unless you're inside sshbn.c.

[originally from svn r960]
2001-03-01 17:41:26 +00:00
Simon Tatham 0ff0fad344 Improve comment so I don't misunderstand when I come back to this :-)
[originally from svn r802]
2000-11-16 10:47:59 +00:00
Simon Tatham 7ac98ae071 Use a Miller-Rabin test instead of a Fermat test; add comments
[originally from svn r801]
2000-11-15 15:03:17 +00:00
Simon Tatham e51b4da9f7 Make the frankly ridiculous prototypes for modpow() and modmul() more sane
[originally from svn r752]
2000-10-23 16:11:31 +00:00
Simon Tatham e41344c544 RSA key generation routines, and the bignum enhancements required to
support them. A key generation tool will be forthcoming soon.

[originally from svn r712]
2000-10-18 15:00:36 +00:00