]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: return err when key too small to compute salt for RSA PSS
authorRoland Shoemaker <roland@golang.org>
Tue, 15 Nov 2022 19:57:10 +0000 (11:57 -0800)
committerRoland Shoemaker <roland@golang.org>
Tue, 15 Nov 2022 20:28:49 +0000 (20:28 +0000)
commitd03e442e2dace16ce125aa073a3c6ac8484d4457
treeac8cb7bff7816043560f9b65fa0843918557a21f
parent318ceda632c3e961b2d883262ea57f06ab09d06d
crypto/rsa: return err when key too small to compute salt for RSA PSS

When PSSSaltLengthAuto is passed to SignPSS, and the key size is too
small to create a valid salt, return ErrMessageTooLong

Change-Id: I4e0d70bdd54fcd667eae10e0a70b4f540a4ebe93
Reviewed-on: https://go-review.googlesource.com/c/go/+/450796
Reviewed-by: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
src/crypto/rsa/pss.go