summaryrefslogtreecommitdiffstats
path: root/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-signature-not-bitstring.pem
diff options
context:
space:
mode:
Diffstat (limited to 'net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-signature-not-bitstring.pem')
-rw-r--r--net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-signature-not-bitstring.pem49
1 files changed, 49 insertions, 0 deletions
diff --git a/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-signature-not-bitstring.pem b/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-signature-not-bitstring.pem
new file mode 100644
index 0000000..2f7a281
--- /dev/null
+++ b/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-signature-not-bitstring.pem
@@ -0,0 +1,49 @@
+This is the same test as ecdsa-prime256v1-sha512.pem, except the signature
+value is not wrapped in a BIT STRING and is just the straight up
+Ecdsa-Sig-Value.
+
+This should fail to verify since the expectation is that the signature be a BIT STRING.
+
+
+
+-----BEGIN PUBLIC KEY-----
+MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKS
+o1vctUSM6F4iSCobuCKGWLHnvoxf7eHnil9rSFG25lfoceA==
+-----END PUBLIC KEY-----
+
+$ openssl asn1parse -i < [PUBLIC KEY]
+ 0:d=0 hl=2 l= 89 cons: SEQUENCE
+ 2:d=1 hl=2 l= 19 cons: SEQUENCE
+ 4:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey
+ 13:d=2 hl=2 l= 8 prim: OBJECT :prime256v1
+ 23:d=1 hl=2 l= 66 prim: BIT STRING
+
+
+
+-----BEGIN ALGORITHM-----
+MAoGCCqGSM49BAME
+-----END ALGORITHM-----
+
+$ openssl asn1parse -i < [ALGORITHM]
+ 0:d=0 hl=2 l= 10 cons: SEQUENCE
+ 2:d=1 hl=2 l= 8 prim: OBJECT :ecdsa-with-SHA512
+
+
+
+-----BEGIN DATA-----
+bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV
+SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1
+APuEMjWr/5jiQb37VTjD4=
+-----END DATA-----
+
+
+
+-----BEGIN SIGNATURE-----
+MEQCIEufkeQoUocmGh0ckjz2Gc1SwXXP5/G+YKUljGEDSLo9AiAoxF+QHXHEGymGOOwNaoXX/LD
+DO7/sWpyBCEa2OSiahA==
+-----END SIGNATURE-----
+
+$ openssl asn1parse -i < [SIGNATURE]
+ 0:d=0 hl=2 l= 68 cons: SEQUENCE
+ 2:d=1 hl=2 l= 32 prim: INTEGER :4B9F91E4285287261A1D1C923CF619CD52C175CFE7F1BE60A5258C610348BA3D
+ 36:d=1 hl=2 l= 32 prim: INTEGER :28C45F901D71C41B298638EC0D6A85D7FCB0C33BBFEC5A9C810846B639289A84