Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rsakey: pad received signature with leading zeros
I noticed that paramiko ssh server rejects userauth request when PuTTY connects with an RSA key, about 1% of the time. OpenSSH server pads leading zeros to a signature before verifying it. Putty even has an FAQ about this particular bug, explaining that: > The SSH-2 specification says that an unpadded signature MUST be accepted https://github.com/openssh/openssh-portable/blob/V_8_8_P1/ssh-rsa.c#L296-L312 https://documentation.help/PuTTY/config-ssh-bug-sig.html
- Loading branch information