From f004aa556d90648f31859e48c0052b62d78fed6d Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 11 Apr 2017 12:53:17 -0400 Subject: [PATCH] Add a test when hashes are too large for RSASSA-PKCS1-v1_5. We didn't cover this case. Change-Id: Iafa6529290298326fd17e5c130b4816098213ebb Reviewed-on: https://boringssl-review.googlesource.com/14945 Reviewed-by: Adam Langley --- crypto/evp/evp_tests.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crypto/evp/evp_tests.txt b/crypto/evp/evp_tests.txt index 731b747b..9f696642 100644 --- a/crypto/evp/evp_tests.txt +++ b/crypto/evp/evp_tests.txt @@ -144,6 +144,12 @@ Digest = SHA1 Input = "0123456789ABCDEF12345" Error = INVALID_DIGEST_LENGTH +# Digest too large for key. +Sign = RSA-512 +Digest = SHA512 +Input = "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" +Error = DIGEST_TOO_BIG_FOR_RSA_KEY + # Mismatched digest Verify = RSA-2048 Digest = SHA1