diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
7 files changed, 377 insertions, 0 deletions
diff --git a/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart new file mode 100644 index 0000000000..5a1a1c2fdc --- /dev/null +++ b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart @@ -0,0 +1,54 @@ +Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-384; boundary="------------ms030903020902020502030404" + +This is a cryptographically signed message in MIME format. + +--------------ms030903020902020502030404 +Content-Type: text/plain; charset=utf-8; format=flowed +Content-Transfer-Encoding: quoted-printable +Content-Language: en-US + +This is a test message from Alice to Bob. + +--------------ms030903020902020502030404 +Content-Type: application/pkcs7-signature; name=smime.p7s +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename=smime.p7s +Content-Description: S/MIME Cryptographic Signature + +MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgIFADCABgkqhkiG9w0B +BwEAAKCCA2IwggNeMIICRqADAgECAgEeMA0GCSqGSIb3DQEBCwUAMGQxCzAJBgNV +BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBW +aWV3MRIwEAYDVQQKEwl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EBhMCVVMxEzARBgNVBAgT +CkNhbGlmb3JuaWExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxEjAQBgNVBAoTCUJP +R1VTIE5TUzEUMBIGA1UEAxMLTlNTIFRlc3QgQ0ECAR4wDQYJYIZIAWUDBAICBQCg +ggFRMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwPwYJKoZIhvcNAQkEMTIEMFHS +xq+v2uYEt+1Cl18IAFzsK6a/jcQXxa6IzEYbHrHifrdlGO5onbLdf1KfAHKiPTB4 +BgkrBgEEAYI3EAQxazBpMGQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9y +bmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRIwEAYDVQQKEwlCT0dVUyBOU1Mx +FDASBgNVBAMTC05TUyBUZXN0IENBAgEeMHoGCyqGSIb3DQEJEAILMWugaTBkMQsw +CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRh +aW4gVmlldzESMBAGA1UEChMJQk9HVVMgTlNTMRQwEgYDVQQDEwtOU1MgVGVzdCBD +QQIBHjANBgkqhkiG9w0BAQEFAASCAQBQN10JIbN5LfL6a6pRD574/fzGh0/ssmvM +YVio8jwZs6ayh0LDT3QaH8PeyNf1RWM1fTRQ9wzbiv4HL2xjVk/fscrjojertRxm +n3s3jxorDAbpNMcAyaVLf41KZ8BGih/gNUAqEReLq+5thl6rspNSiO/joWNUUZQj +ATXS33g+A4Vm9/SxvBxA5STyRUJ+VSMhh0o5FcZSQgnjHH18F1lcma5+Xx2Il/6p +K3oqBb6azXMdGEdZtmXu8r1hTWPuBNGI64wAiBhRdbk2c54oft0hmw7JzZKIxSoY +Zk4FW8nUwJr+AFAGXHVOWpVN0tn8L1k4DHoEgFez/O1DlnHxu4oEAAAAAAAA +--------------ms030903020902020502030404-- + diff --git a/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.bad.eml b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.bad.eml new file mode 100644 index 0000000000..1423fa9482 --- /dev/null +++ b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.bad.eml @@ -0,0 +1,60 @@ +MIME-Version: 1.0
+Date: Tue, 21 Nov 2023 20:50:06 +0000
+From: Alice@example.com
+To: Bob@example.com
+Subject: BAD clear-signed sig.SHA384
+Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-384; boundary="------------ms030903020902020502030404"
+
+This is a cryptographically signed message in MIME format.
+
+--------------ms030903020902020502030404
+Content-Type: text/plain; charset=utf-8; format=flowed
+Content-Transfer-Encoding: quoted-printable
+Content-Language: en-US
+
+This is a FAKE message NOT from Alice to Bob.
+
+--------------ms030903020902020502030404
+Content-Type: application/pkcs7-signature; name=smime.p7s
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename=smime.p7s
+Content-Description: S/MIME Cryptographic Signature
+
+MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgIFADCABgkqhkiG9w0B
+BwEAAKCCA2IwggNeMIICRqADAgECAgEeMA0GCSqGSIb3DQEBCwUAMGQxCzAJBgNV
+BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBW
+aWV3MRIwEAYDVQQKEwlCT0dVUyBOU1MxFDASBgNVBAMTC05TUyBUZXN0IENBMB4X
+DTIzMTEyMTIwNTAzNloXDTI4MTEyMTIwNTAzNlowgYAxCzAJBgNVBAYTAlVTMRMw
+EQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRIwEAYD
+VQQKEwlCT0dVUyBOU1MxIDAeBgkqhkiG9w0BCQEWEUFsaWNlQGV4YW1wbGUuY29t
+MQ4wDAYDVQQDEwVBbGljZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
+AJ66YRMPyB5Xjh5p6xY6mFjX8K52pJ/V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gkrBgEEAYI3EAQxazBpMGQx
+CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3Vu
+dGFpbiBWaWV3MRIwEAYDVQQKEwlCT0dVUyBOU1MxFDASBgNVBAMTC05TUyBUZXN0
+IENBAgEeMHoGCyqGSIb3DQEJEAILMWugaTBkMQswCQYDVQQGEwJVUzETMBEGA1UE
+CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzESMBAGA1UEChMJ
+Qk9HVVMgTlNTMRQwEgYDVQQDEwtOU1MgVGVzdCBDQQIBHjANBgkqhkiG9w0BAQEF
+AASCAQB6l943JrgvaAWL7sW/rbb2DdlcnJXS3o5hFDqe32YNBXNITY5xP9F3vrgJ
+TS54PWaJ9f7eD6HLaU77l98ySgkrxPHoP/EFHNmuO1a/T6PSuc3YkVxhXoIkJSz8
+3TEyTpuRm5UwBAjwZEV8BaKiq6bFi803L5NUEuRibrlQ3C/MldoDEd+7/0sAb0Md
+JPgD7R5oZZWEtosxH6B60tgH0Daotx/AZkNcjLrZ3YH6iHjUJKkQAPpUacGJChNj
+ibFZu57S3KjJSd3wfWfQk44bGYevMZGqXLl8PQMoOZQD1coWpLBvY1hZUeHGUyvC
+tsxPOCAraEuvsJffxIEaQYLrpeVKAAAAAAAA
+--------------ms030903020902020502030404--
+
diff --git a/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.eml b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.eml new file mode 100644 index 0000000000..a81560e276 --- /dev/null +++ b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.eml @@ -0,0 +1,60 @@ +MIME-Version: 1.0
+Date: Tue, 21 Nov 2023 20:50:06 +0000
+From: Alice@example.com
+To: Bob@example.com
+Subject: clear-signed sig.SHA384
+Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-384; boundary="------------ms030903020902020502030404"
+
+This is a cryptographically signed message in MIME format.
+
+--------------ms030903020902020502030404
+Content-Type: text/plain; charset=utf-8; format=flowed
+Content-Transfer-Encoding: quoted-printable
+Content-Language: en-US
+
+This is a test message from Alice to Bob.
+
+--------------ms030903020902020502030404
+Content-Type: application/pkcs7-signature; name=smime.p7s
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename=smime.p7s
+Content-Description: S/MIME Cryptographic Signature
+
+MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgIFADCABgkqhkiG9w0B
+BwEAAKCCA2IwggNeMIICRqADAgECAgEeMA0GCSqGSIb3DQEBCwUAMGQxCzAJBgNV
+BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBW
+aWV3MRIwEAYDVQQKEwlCT0dVUyBOU1MxFDASBgNVBAMTC05TUyBUZXN0IENBMB4X
+DTIzMTEyMTIwNTAzNloXDTI4MTEyMTIwNTAzNlowgYAxCzAJBgNVBAYTAlVTMRMw
+EQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRIwEAYD
+VQQKEwlCT0dVUyBOU1MxIDAeBgkqhkiG9w0BCQEWEUFsaWNlQGV4YW1wbGUuY29t
+MQ4wDAYDVQQDEwVBbGljZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
+AJ66YRMPyB5Xjh5p6xY6mFjX8K52pJ/VR7yVYgq8jtBjjqUlBS20kwJdOemp4evE
+g76M7lhfmytro7LSlV28uUV/EmHLnNb9c9FjBg69UuX0P3TxJs7oi1ukrOAni35p
+Phd6mj+mBmhC7GaBLOn1HJdxTzDH/NSnWMhZct1Y9rR1RWPEbCVqA/UM61qXFpMc
+i+UQ/Lg7YxjrfowlWdQSeztQPyaMYpO2GbZN+b2daL2KAEO0Ac04e4Koaoog/ZhG
+K8JAquOkgrPsl3mnhdjOrZQ1la4a3jLNs7MJpRSwmXzq/iAMLEoHs+6+rOery0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
+Qk9HVVMgTlNTMRQwEgYDVQQDEwtOU1MgVGVzdCBDQQIBHjANBgkqhkiG9w0BAQEF
+AASCAQB6l943JrgvaAWL7sW/rbb2DdlcnJXS3o5hFDqe32YNBXNITY5xP9F3vrgJ
+TS54PWaJ9f7eD6HLaU77l98ySgkrxPHoP/EFHNmuO1a/T6PSuc3YkVxhXoIkJSz8
+3TEyTpuRm5UwBAjwZEV8BaKiq6bFi803L5NUEuRibrlQ3C/MldoDEd+7/0sAb0Md
+JPgD7R5oZZWEtosxH6B60tgH0Daotx/AZkNcjLrZ3YH6iHjUJKkQAPpUacGJChNj
+ibFZu57S3KjJSd3wfWfQk44bGYevMZGqXLl8PQMoOZQD1coWpLBvY1hZUeHGUyvC
+tsxPOCAraEuvsJffxIEaQYLrpeVKAAAAAAAA
+--------------ms030903020902020502030404--
+
diff --git a/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.env b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.env Binary files differnew file mode 100644 index 0000000000..07f2160fba --- /dev/null +++ b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.env diff --git a/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.env.eml b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.env.eml new file mode 100644 index 0000000000..8151234896 --- /dev/null +++ b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.env.eml @@ -0,0 +1,85 @@ +MIME-Version: 1.0
+Date: Tue, 21 Nov 2023 20:50:06 +0000
+From: Alice@example.com
+To: Bob@example.com
+Subject: clear-signed then enveloped sig.SHA384
+Content-Type: application/pkcs7-mime; name=smime.p7m;
+ smime-type=enveloped-data
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename=smime.p7m
+Content-Description: S/MIME Encrypted Message
+
+MIAGCSqGSIb3DQEHA6CAMIACAQAxggGFMIIBgQIBADBpMGQxCzAJBgNVBAYTAlVT
+MRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw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bd5lClMPpFUOsD56vI5B
+oMJI8aT29y24VfhuaodrwSbsAKibwpewjLH06U4pjlSzzBa724fHh3s9OAo5hFyq
+x90ML0WmSfU+n2dNWptdV1TU6kLdht7Y42zcJPFSPJ+QyfUX3daaq9mzgK6sZp9l
+ZFVQEF3q0TfmFNWg0Sf+rfe+fmhq0fg+VScLN4XhyUCgzWAfX/DFmGY5Kny8ePvo
+AEWD3Sz1mv87ieTJ32876WlCcd8vsfE5F74pkMsNEuEfbhw55fOQY31FLUE+38Sd
+e3H4jDcR5myvJcZPAQx/ebChK31A3opjQpkoGKTs0N6h2+SRcPEk9PpCWJi4jIME
+EFRZEjk7+hbeGdekn0pePRwAAAAAAAAAAAAA
+
diff --git a/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.mismatch-econtent b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.mismatch-econtent new file mode 100644 index 0000000000..827bb480c4 --- /dev/null +++ b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.mismatch-econtent @@ -0,0 +1,56 @@ +Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-384; boundary="------------ms030903020902020502030404" + +This is a cryptographically signed message in MIME format. + +--------------ms030903020902020502030404 +Content-Type: text/plain; charset=utf-8; format=flowed +Content-Transfer-Encoding: quoted-printable +Content-Language: en-US + +This is a FAKE message NOT from Alice to Bob. + +--------------ms030903020902020502030404 +Content-Type: application/pkcs7-signature; name=smime.p7s +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename=smime.p7s +Content-Description: S/MIME Cryptographic Signature + +MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgIFADCABgkqhkiG9w0B +BwGggCSABEdDb250ZW50LVR5cGU6IHRleHQvcGxhaW4NCg0KVGhpcyBpcyBhIHRl +c3QgbWVzc2FnZSBmcm9tIEFsaWNlIHRvIEJvYi4NCgAAAAAAAKCCA2IwggNeMIIC +RqADAgECAgEeMA0GCSqGSIb3DQEBCw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Smcnd1EvG/BD0ZVF17bT2KC7rwF0AAAAAAAA +--------------ms030903020902020502030404-- + diff --git a/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.mismatch-econtent.eml b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.mismatch-econtent.eml new file mode 100644 index 0000000000..6772b1bbbe --- /dev/null +++ b/comm/mailnews/test/data/smime/alice.dsig.SHA384.multipart.mismatch-econtent.eml @@ -0,0 +1,62 @@ +MIME-Version: 1.0
+Date: Tue, 21 Nov 2023 20:50:06 +0000
+From: Alice@example.com
+To: Bob@example.com
+Subject: BAD mismatch-econtent sig.SHA384
+Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-384; boundary="------------ms030903020902020502030404"
+
+This is a cryptographically signed message in MIME format.
+
+--------------ms030903020902020502030404
+Content-Type: text/plain; charset=utf-8; format=flowed
+Content-Transfer-Encoding: quoted-printable
+Content-Language: en-US
+
+This is a FAKE message NOT from Alice to Bob.
+
+--------------ms030903020902020502030404
+Content-Type: application/pkcs7-signature; name=smime.p7s
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename=smime.p7s
+Content-Description: S/MIME Cryptographic Signature
+
+MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgIFADCABgkqhkiG9w0B
+BwGggCSABEdDb250ZW50LVR5cGU6IHRleHQvcGxhaW4NCg0KVGhpcyBpcyBhIHRl
+c3QgbWVzc2FnZSBmcm9tIEFsaWNlIHRvIEJvYi4NCgAAAAAAAKCCA2IwggNeMIIC
+RqADAgECAgEeMA0GCSqGSIb3DQEBCwUAMGQxCzAJBgNVBAYTAlVTMRMwEQYDVQQI
+EwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRIwEAYDVQQKEwlC
+T0dVUyBOU1MxFDASBgNVBAMTC05TUyBUZXN0IENBMB4XDTIzMTEyMTIwNTAzNloX
+DTI4MTEyMTIwNTAzNlowgYAxCzAJBgNVBAYTA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