mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Merged SSH1 robustness changes from 0.55 release branch on to trunk.
[originally from svn r4379]
This commit is contained in:
2
sshdh.c
2
sshdh.c
@ -123,7 +123,7 @@ Bignum dh_create_e(void *handle, int nbits)
|
||||
ssh1_write_bignum(buf, ctx->qmask);
|
||||
for (i = 2; i < nbytes; i++)
|
||||
buf[i] &= random_byte();
|
||||
ssh1_read_bignum(buf, &ctx->x);
|
||||
ssh1_read_bignum(buf, nbytes, &ctx->x); /* can't fail */
|
||||
} else {
|
||||
int b, nb;
|
||||
ctx->x = bn_power_2(nbits);
|
||||
|
Reference in New Issue
Block a user