Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: rsassa-pkcs1: fix undersized key handling
@ 2026-08-26 10:37 Jérémy Jean
  2026-08-26 10:37 ` [PATCH 1/2] crypto: rsassa-pkcs1: reject undersized keys when signing Jérémy Jean
  2026-08-26 10:37 ` [PATCH 2/2] crypto: rsassa-pkcs1: reject undersized keys when verifying Jérémy Jean
  0 siblings, 2 replies; 5+ messages in thread
From: Jérémy Jean @ 2026-08-26 10:37 UTC (permalink / raw)
  To: Lukas Wunner, Ignat Korchagin
  Cc: Herbert Xu, David S. Miller, linux-crypto, linux-kernel,
	Jérémy Jean

PKCS#1 v1.5 requires an encoded message of at least 11 bytes. The
signing and verification functions do not reject smaller RSA modulus
sizes reported by the child implementation.

This series include two patches due to integer underflows:
* one in the signing function that can write OOB,
* one in the verification function that can read 1 byte OOB.

Jérémy Jean (2):
  crypto: rsassa-pkcs1: reject undersized keys when signing
  crypto: rsassa-pkcs1: reject undersized keys when verifying

 crypto/rsassa-pkcs1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-26 15:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 10:37 [PATCH 0/2] crypto: rsassa-pkcs1: fix undersized key handling Jérémy Jean
2026-08-26 10:37 ` [PATCH 1/2] crypto: rsassa-pkcs1: reject undersized keys when signing Jérémy Jean
2026-08-26 15:44   ` Sudhakar Kuppusamy
2026-08-26 10:37 ` [PATCH 2/2] crypto: rsassa-pkcs1: reject undersized keys when verifying Jérémy Jean
2026-08-26 15:44   ` Sudhakar Kuppusamy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox