summaryrefslogtreecommitdiff
path: root/tests/testkeys
diff options
context:
space:
mode:
authorGaurav Shah <gauravsh@google.com>2010-02-24 16:41:32 -0800
committerGaurav Shah <gauravsh@google.com>2010-02-24 16:41:32 -0800
commit7d122e2a47145ef535163744daa55cec54e12b16 (patch)
treef1fcfb7abb6e10729ec5a6631e3e205ef99d391c /tests/testkeys
parent08df9b88a36b7a351305a06b2849c5fcdac54135 (diff)
downloadvboot-7d122e2a47145ef535163744daa55cec54e12b16.tar.gz
Add a test for RSA PKCS #1 v1.5 signature verification.
This test checks that signatures with improper padding do not get accepted by the RSA signature verification implementation. Review URL: http://codereview.chromium.org/661038
Diffstat (limited to 'tests/testkeys')
-rw-r--r--tests/testkeys/rsa_padding_test_pubkey.keybbin0 -> 264 bytes
-rw-r--r--tests/testkeys/rsa_padding_test_pubkey.pem6
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/testkeys/rsa_padding_test_pubkey.keyb b/tests/testkeys/rsa_padding_test_pubkey.keyb
new file mode 100644
index 00000000..fe289fe9
--- /dev/null
+++ b/tests/testkeys/rsa_padding_test_pubkey.keyb
Binary files differ
diff --git a/tests/testkeys/rsa_padding_test_pubkey.pem b/tests/testkeys/rsa_padding_test_pubkey.pem
new file mode 100644
index 00000000..116f39b1
--- /dev/null
+++ b/tests/testkeys/rsa_padding_test_pubkey.pem
@@ -0,0 +1,6 @@
+-----BEGIN PUBLIC KEY-----
+MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDSiGmidatyklHyFd5XPHqw9TnV
+n8SlKEuSI3J2GcSWJijDOG2RL6t1Odywukav3kE8QR9YXdwbSkkrcAbyTiblOs7I
+BMRDCI0VjU/W3bO4QFwI3kQQYWVE0pvZ7k7PyisQ8cJOHKx8LG+1u0c5vjJt/qpn
+fnycqSSkuohsQiyTiQIDAQAB
+-----END PUBLIC KEY-----