mirror of https://github.com/wolfSSL/wolfssh.git
commit
e4c97be319
|
@ -7076,10 +7076,12 @@ static int BuildUserAuthRequestEcc(WOLFSSH* ssh,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == WS_SUCCESS) {
|
if (ret == WS_SUCCESS) {
|
||||||
byte rPad = (r[0] & 0x80) ? 1 : 0;
|
byte rPad;
|
||||||
byte sPad = (s[0] & 0x80) ? 1 : 0;
|
byte sPad;
|
||||||
|
|
||||||
rPad = 0; sPad = 0;
|
/* adds a byte of padding if needed to avoid negative values */
|
||||||
|
rPad = (r[0] & 0x80) ? 1 : 0;
|
||||||
|
sPad = (s[0] & 0x80) ? 1 : 0;
|
||||||
c32toa(rSz + rPad + sSz + sPad +
|
c32toa(rSz + rPad + sSz + sPad +
|
||||||
cannedKeyAlgoEcc256NamesSz + LENGTH_SZ * 4,
|
cannedKeyAlgoEcc256NamesSz + LENGTH_SZ * 4,
|
||||||
output + begin);
|
output + begin);
|
||||||
|
|
Loading…
Reference in New Issue