cloudflare / tls-tris

crypto/tls, now with 100% more 1.3. THE API IS NOT STABLE AND DOCUMENTATION IS NOT GUARANTEED.
Other
292 stars 50 forks source link

Offer helpful error message for RSA keys too short #60

Closed FiloSottile closed 6 years ago

FiloSottile commented 6 years ago

If an RSA key is too short for PSS, the handshake fails with an unhelpful crypto/rsa: encoding error.

Pick a minimum bitlen (or find it in the spec) and return a helpful error message.

kriskwiatkowski commented 6 years ago

Is it really TLS tris problem? Shouldn't it be fixed in crypto?

FiloSottile commented 6 years ago

You have a point! https://github.com/golang/go/issues/23736