Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New x/crypto release breaks ssh tests ("crypto/rsa: message too long for RSA public key size") #316

Open
gibmat opened this issue Jan 7, 2022 · 0 comments

Comments

@gibmat
Copy link

gibmat commented Jan 7, 2022

Recently, the x/crypto library switched to SHA-512 for the default RSA certificate signature, which doesn't fit in 512 bits (https://cs.opensource.google/go/x/crypto/+/b4de73f9ece8163b492578e101e4ef8923ac2c5c). This causes several of the ssh tests to fail with the error "crypto/rsa: message too long for RSA public key size".

Updating generateRSAKey() in ssh/generate_test.go to use a 1024 bit key size fixes the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant