aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-04-21 15:41:20 +0000
committerlloyd <[email protected]>2010-04-21 15:41:20 +0000
commita8980feaf43900bc4a083422b28e3971c22cbe74 (patch)
tree01f548eacdd86907bba2720b7226362b78fae282
parent3376aa09bbbf444c33b56d802064a8b57185ebe3 (diff)
Add a test for RSA verification with raw padding and an unusual key
-rw-r--r--checks/pk_valid.dat33
1 files changed, 33 insertions, 0 deletions
diff --git a/checks/pk_valid.dat b/checks/pk_valid.dat
index 1190886e9..45a2cea2b 100644
--- a/checks/pk_valid.dat
+++ b/checks/pk_valid.dat
@@ -3275,6 +3275,39 @@ EFC5A58C5E9CB841EA08D2E22E40293B1876BBB976947038AEEAA36B1751FF97\
13B9F7BD306D9360CC8D78B7A607F9CA7B4C18C308D85330E534337998D97D6F\
70F828D6AD1C9C7F6916476127993E4E6F7D596BA6C246F0EB7312A02D09BFB3
+[RSAVA/Raw]
+# The key that generated this signature isn't valid by PKCS #1 rules,
+# because the private exponent was set to (p-1)*(q-1) instead of
+# lcm(p-1,q-1). So if we generated a key with similiar exponent and
+# modulus, we'd use a different private exponent and thus generate a
+# different signature here. But it still will verify, so test that.
+
+10001:\
+A8AE5BF022EE5183FCD4C4DC3E2BE75F0641308FF7A066597A89CB55B2975AA1\
+4CAC475FEF9EC736186BA28E4B5D7B8F7CFA605B9A53DA5C1584F07663678940\
+1CC0D0CD65CC85962C228DC5E89CC496067859FB5EA9F579EC9F5643444A28A7\
+9000F9ADD1F9B7849EAA3FD3FC5DC002BCA413D7EBF8E6C9392AB5E40C09470D\
+21A9C705732EB027075836692FA90A997B4939799085C5E6E896BC35D58B857B\
+9A9D0CF32D9C0E4B7AF6ABCF501E5D6D55E2987E22586CDB964BF11F3F54740B\
+E31337E539D48780D9192B22CBCEBCE2228CA9668ACD6292207E02AE7A77E576\
+BC811E3DB0FA56D5FFE53EE6C715F2973A70C29AF72AA6BFFC985F2DC5E9369D:\
+0001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\
+FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\
+FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\
+FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\
+FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\
+FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\
+FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\
+FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0068656C6C6F20776F726C64:\
+A88A260DF63E7241BFB42C05F50B5FF470CEB7B4E47353C94C0EBF620309841F\
+CD84FFA08B164411CA9D2066FA02D8223AC19250212409E241446C22C9B85B23\
+38E6C8545E722427FB6798EAD8488106B01F15EE3E8574C85DCCFD407FAAD4F7\
+05D397551E4BF32CE484DE76514DBF805B5361CB3B1B221FE3AD12734E8542D4\
+B4D53962D0B0A80B11DC789EC08B050F28CB75363B8BD1F545839953271DB734\
+0C749C3B979C0A11C46E9D590446C8D3B75907B3F0B3F164A8F72D302B383B2B\
+D1248E9D86EAEBEBCB0623FAEA616CDE51CFFE5BE3D0BF140F053B05B6A17B6A\
+4F7B733F0042DC9AF4EA737031DB170EB5F691859B5EDA13C82B8EE69D7B2732
+
# These test verification with various seed sizes. Botan cannot actually create
# such a signature, since seed sizes != size of hash are not allowed. These
# were created by some RSA PSS test code, with various salt sizes. This is not