mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
DSS key format string was missing some commas
[originally from svn r646]
This commit is contained in:
parent
aa203391c2
commit
8191249d86
6
sshdss.c
6
sshdss.c
@ -101,15 +101,15 @@ static char *dss_fmtkey(void) {
|
||||
nibbles = (3 + ssh1_bignum_bitcount(dss_p))/4; if (nibbles<1) nibbles=1;
|
||||
for (i=nibbles; i-- ;)
|
||||
p[pos++] = hex[(bignum_byte(dss_p, i/2) >> (4*(i%2))) & 0xF];
|
||||
pos += sprintf(p+pos, "0x");
|
||||
pos += sprintf(p+pos, ",0x");
|
||||
nibbles = (3 + ssh1_bignum_bitcount(dss_q))/4; if (nibbles<1) nibbles=1;
|
||||
for (i=nibbles; i-- ;)
|
||||
p[pos++] = hex[(bignum_byte(dss_q, i/2) >> (4*(i%2))) & 0xF];
|
||||
pos += sprintf(p+pos, "0x");
|
||||
pos += sprintf(p+pos, ",0x");
|
||||
nibbles = (3 + ssh1_bignum_bitcount(dss_g))/4; if (nibbles<1) nibbles=1;
|
||||
for (i=nibbles; i-- ;)
|
||||
p[pos++] = hex[(bignum_byte(dss_g, i/2) >> (4*(i%2))) & 0xF];
|
||||
pos += sprintf(p+pos, "0x");
|
||||
pos += sprintf(p+pos, ",0x");
|
||||
nibbles = (3 + ssh1_bignum_bitcount(dss_y))/4; if (nibbles<1) nibbles=1;
|
||||
for (i=nibbles; i-- ;)
|
||||
p[pos++] = hex[(bignum_byte(dss_y, i/2) >> (4*(i%2))) & 0xF];
|
||||
|
Loading…
Reference in New Issue
Block a user