mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
tests: Add symmetric decryption tests.
* tests/openpgp/decrypt-sym.scm: New. * tests/openpgp/samplemsgs/enc-sym-cfb-1.asc: New. * tests/openpgp/samplemsgs/enc-sym-cfb-2.asc: New. * tests/openpgp/samplemsgs/enc-sym-ocb-1.asc: New. * tests/openpgp/samplemsgs/enc-sym-ocb-2.asc: New. -- It's time to have some OCB tests in our suite so that we don't forget to run the tests from our RNP interop tests. Also adds new tests for CFB messages.
This commit is contained in:
parent
9b24d8ab50
commit
e284f62b1c
6 changed files with 83 additions and 0 deletions
9
tests/openpgp/samplemsgs/enc-sym-cfb-1.asc
Normal file
9
tests/openpgp/samplemsgs/enc-sym-cfb-1.asc
Normal file
|
@ -0,0 +1,9 @@
|
|||
Symmetric encrypted message of "Hello, world!\n" using
|
||||
the passphrase "password" and cipher AES128.CFB.
|
||||
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0EBwMCt0tGQ7H0b2Xt0j8BHVEh+mzI3SyApdQmObZuDtAKNk/dRbERyF7haRCn
|
||||
cw3N5t3hbOZ/fWlN/BRAaKplninV//QEo8lqheFFpmI=
|
||||
=LxrG
|
||||
-----END PGP MESSAGE-----
|
9
tests/openpgp/samplemsgs/enc-sym-cfb-2.asc
Normal file
9
tests/openpgp/samplemsgs/enc-sym-cfb-2.asc
Normal file
|
@ -0,0 +1,9 @@
|
|||
Symmetric encrypted message of "Hello, world!\n" using
|
||||
the passphrase "password" and cipher AES256.CFB.
|
||||
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0ECQMCN4BmCgZpVHDt0j8B1MRJ3ezrbVqU3Xofj5ykOmb7dgYytxzk6QHqzdNO
|
||||
lorumncKV+xjFkte8uKqaGJoPhoKb2s9uJWDgugLMDM=
|
||||
=gy0I
|
||||
-----END PGP MESSAGE-----
|
11
tests/openpgp/samplemsgs/enc-sym-ocb-1.asc
Normal file
11
tests/openpgp/samplemsgs/enc-sym-ocb-1.asc
Normal file
|
@ -0,0 +1,11 @@
|
|||
Symmetric encrypted message of "Hello, world!\n" using
|
||||
the passphrase "password" and cipher AES128.OCB.
|
||||
This is the sample message from the rfc4880bis specs.
|
||||
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
wz0FBwIDCJ8LfaPl6mR3kJnjJuVACpCTbO+06OugjGdzcW0fJxRUCjj8rFKZSdrF
|
||||
KdPeMeFbSutynjMAM9vt1EkBBwIOXtK8HkcKvo8dZEx6bIpWew93ARlmEaFUupwl
|
||||
dM0FYoSo72gDXGI9k8xwikMhG7bq8rJ/fBjVcbzYOyCt06CLc68VuaCY
|
||||
=xyh5
|
||||
-----END PGP MESSAGE-----
|
11
tests/openpgp/samplemsgs/enc-sym-ocb-2.asc
Normal file
11
tests/openpgp/samplemsgs/enc-sym-ocb-2.asc
Normal file
|
@ -0,0 +1,11 @@
|
|||
Symmetric encrypted message of "Hello, world!\n" using
|
||||
the passphrase "password" and cipher AES256.OCB.
|
||||
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jE0FCQIDAvYE/YfWbrWF7T3TKFmFzU/o5JSmot/OwIoDZc4sABYLMuTjVeCXUaRp
|
||||
unDEDnkCz0tsov+7ljb/tu2NUDGnybSsupE+E4bMf9RJAQkCEMhe3HeHBrv1jHsS
|
||||
gbmxjSQ/r1whc40/vh6ACbp/Yu2Te1Gf/mPxS9mgLDbIeah3G9/kXlheO4X2Hhuy
|
||||
iOCOZdpPiAp1QA==
|
||||
=U8eG
|
||||
-----END PGP MESSAGE-----
|
Loading…
Add table
Add a link
Reference in a new issue