summaryrefslogtreecommitdiffstats
path: root/openpgp/tests/data/messages
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2017-12-14 14:20:54 +0100
committerNeal H. Walfield <neal@pep.foundation>2017-12-14 14:24:41 +0100
commit6ae8fc89167b85cbd623bfa92427b657c7ab0e60 (patch)
tree1e57172a9d545a448211e3020541e3254914f5c5 /openpgp/tests/data/messages
parentb3f996c3e71d4e2289008a406bbf3fd71a8b4b26 (diff)
openpgp: Move test data to the tests/data directory.
- Test data is no longer kept next to the source code to keep the code cleaner. - Rename foo.asc to foo.gpg when the file contains binary data and not ASCII armored data. - Rename literal-mode-t-partial-body.txt to a-cypherpunks-manifesto.txt, since this is the source for several files and not only literal-mode-t-partial-body.gpg.
Diffstat (limited to 'openpgp/tests/data/messages')
-rw-r--r--openpgp/tests/data/messages/a-cypherpunks-manifesto.txt99
-rw-r--r--openpgp/tests/data/messages/compressed-data-algo-1.gpgbin0 -> 2282 bytes
-rw-r--r--openpgp/tests/data/messages/compressed-data-algo-2.gpgbin0 -> 2288 bytes
-rw-r--r--openpgp/tests/data/messages/compressed-data-algo-3.gpgbin0 -> 2216 bytes
-rw-r--r--openpgp/tests/data/messages/compression-quine.gpgbin0 -> 182 bytes
-rw-r--r--openpgp/tests/data/messages/compression-quine.txt3
-rw-r--r--openpgp/tests/data/messages/literal-mode-b.gpg1
-rw-r--r--openpgp/tests/data/messages/literal-mode-t-partial-body.gpg99
-rw-r--r--openpgp/tests/data/messages/public-key.gpgbin0 -> 25148 bytes
-rw-r--r--openpgp/tests/data/messages/sig.gpgbin0 -> 310 bytes
-rw-r--r--openpgp/tests/data/messages/signed.gpgbin0 -> 456 bytes
11 files changed, 202 insertions, 0 deletions
diff --git a/openpgp/tests/data/messages/a-cypherpunks-manifesto.txt b/openpgp/tests/data/messages/a-cypherpunks-manifesto.txt
new file mode 100644
index 00000000..cdf045b7
--- /dev/null
+++ b/openpgp/tests/data/messages/a-cypherpunks-manifesto.txt
@@ -0,0 +1,99 @@
+A Cypherpunk's Manifesto
+by Eric Hughes
+
+Privacy is necessary for an open society in the electronic
+age. Privacy is not secrecy. A private matter is something one doesn't
+want the whole world to know, but a secret matter is something one
+doesn't want anybody to know. Privacy is the power to selectively
+reveal oneself to the world.
+
+If two parties have some sort of dealings, then each has a memory of
+their interaction. Each party can speak about their own memory of
+this; how could anyone prevent it? One could pass laws against it, but
+the freedom of speech, even more than privacy, is fundamental to an
+open society; we seek not to restrict any speech at all. If many
+parties speak together in the same forum, each can speak to all the
+others and aggregate together knowledge about individuals and other
+parties. The power of electronic communications has enabled such group
+speech, and it will not go away merely because we might want it to.
+
+Since we desire privacy, we must ensure that each party to a
+transaction have knowledge only of that which is directly necessary
+for that transaction. Since any information can be spoken of, we must
+ensure that we reveal as little as possible. In most cases personal
+identity is not salient. When I purchase a magazine at a store and
+hand cash to the clerk, there is no need to know who I am. When I ask
+my electronic mail provider to send and receive messages, my provider
+need not know to whom I am speaking or what I am saying or what others
+are saying to me; my provider only need know how to get the message
+there and how much I owe them in fees. When my identity is revealed by
+the underlying mechanism of the transaction, I have no privacy. I
+cannot here selectively reveal myself; I must always reveal myself.
+
+Therefore, privacy in an open society requires anonymous transaction
+systems. Until now, cash has been the primary such system. An
+anonymous transaction system is not a secret transaction system. An
+anonymous system empowers individuals to reveal their identity when
+desired and only when desired; this is the essence of privacy.
+
+Privacy in an open society also requires cryptography. If I say
+something, I want it heard only by those for whom I intend it. If the
+content of my speech is available to the world, I have no privacy. To
+encrypt is to indicate the desire for privacy, and to encrypt with
+weak cryptography is to indicate not too much desire for
+privacy. Furthermore, to reveal one's identity with assurance when the
+default is anonymity requires the cryptographic signature.
+
+We cannot expect governments, corporations, or other large, faceless
+organizations to grant us privacy out of their beneficence. It is to
+their advantage to speak of us, and we should expect that they will
+speak. To try to prevent their speech is to fight against the
+realities of information. Information does not just want to be free,
+it longs to be free. Information expands to fill the available storage
+space. Information is Rumor's younger, stronger cousin; Information is
+fleeter of foot, has more eyes, knows more, and understands less than
+Rumor.
+
+We must defend our own privacy if we expect to have any. We must come
+together and create systems which allow anonymous transactions to take
+place. People have been defending their own privacy for centuries with
+whispers, darkness, envelopes, closed doors, secret handshakes, and
+couriers. The technologies of the past did not allow for strong
+privacy, but electronic technologies do.
+
+We the Cypherpunks are dedicated to building anonymous systems. We are
+defending our privacy with cryptography, with anonymous mail
+forwarding systems, with digital signatures, and with electronic
+money.
+
+Cypherpunks write code. We know that someone has to write software to
+defend privacy, and since we can't get privacy unless we all do, we're
+going to write it. We publish our code so that our fellow Cypherpunks
+may practice and play with it. Our code is free for all to use,
+worldwide. We don't much care if you don't approve of the software we
+write. We know that software can't be destroyed and that a widely
+dispersed system can't be shut down.
+
+Cypherpunks deplore regulations on cryptography, for encryption is
+fundamentally a private act. The act of encryption, in fact, removes
+information from the public realm. Even laws against cryptography
+reach only so far as a nation's border and the arm of its
+violence. Cryptography will ineluctably spread over the whole globe,
+and with it the anonymous transactions systems that it makes possible.
+
+For privacy to be widespread it must be part of a social
+contract. People must come and together deploy these systems for the
+common good. Privacy only extends so far as the cooperation of one's
+fellows in society. We the Cypherpunks seek your questions and your
+concerns and hope we may engage you so that we do not deceive
+ourselves. We will not, however, be moved out of our course because
+some may disagree with our goals.
+
+The Cypherpunks are actively engaged in making the networks safer for
+privacy. Let us proceed together apace.
+
+Onward.
+
+Eric Hughes <hughes@soda.berkeley.edu>
+
+9 March 1993
diff --git a/openpgp/tests/data/messages/compressed-data-algo-1.gpg b/openpgp/tests/data/messages/compressed-data-algo-1.gpg
new file mode 100644
index 00000000..93a51f8c
--- /dev/null
+++ b/openpgp/tests/data/messages/compressed-data-algo-1.gpg
Binary files differ
diff --git a/openpgp/tests/data/messages/compressed-data-algo-2.gpg b/openpgp/tests/data/messages/compressed-data-algo-2.gpg
new file mode 100644
index 00000000..2644f914
--- /dev/null
+++ b/openpgp/tests/data/messages/compressed-data-algo-2.gpg
Binary files differ
diff --git a/openpgp/tests/data/messages/compressed-data-algo-3.gpg b/openpgp/tests/data/messages/compressed-data-algo-3.gpg
new file mode 100644
index 00000000..0c7e84f2
--- /dev/null
+++ b/openpgp/tests/data/messages/compressed-data-algo-3.gpg
Binary files differ
diff --git a/openpgp/tests/data/messages/compression-quine.gpg b/openpgp/tests/data/messages/compression-quine.gpg
new file mode 100644
index 00000000..4c1ff293
--- /dev/null
+++ b/openpgp/tests/data/messages/compression-quine.gpg
Binary files differ
diff --git a/openpgp/tests/data/messages/compression-quine.txt b/openpgp/tests/data/messages/compression-quine.txt
new file mode 100644
index 00000000..e48491f9
--- /dev/null
+++ b/openpgp/tests/data/messages/compression-quine.txt
@@ -0,0 +1,3 @@
+The compression quine is from:
+
+ http://mumble.net/~campbell/misc/pgp-quine/
diff --git a/openpgp/tests/data/messages/literal-mode-b.gpg b/openpgp/tests/data/messages/literal-mode-b.gpg
new file mode 100644
index 00000000..61609bfd
--- /dev/null
+++ b/openpgp/tests/data/messages/literal-mode-b.gpg
@@ -0,0 +1 @@
+ËbfoobarYÙþ¸FOOBAR \ No newline at end of file
diff --git a/openpgp/tests/data/messages/literal-mode-t-partial-body.gpg b/openpgp/tests/data/messages/literal-mode-t-partial-body.gpg
new file mode 100644
index 00000000..8e43cdec
--- /dev/null
+++ b/openpgp/tests/data/messages/literal-mode-t-partial-body.gpg
@@ -0,0 +1,99 @@
+Ëìt manifesto.txtYâC‰A Cypherpunk's Manifesto
+by Eric Hughes
+
+Privacy is necessary for an open society in the electronic
+age. Privacy is not secrecy. A private matter is something one doesn't
+want the whole world to know, but a secret matter is something one
+doesn't want anybody to know. Privacy is the power to selectively
+reveal oneself to the world.
+
+If two parties have some sort of dealings, then each has a memory of
+their interaction. Each party can speak about their own memory of
+this; how could anyone prevent it? One could pass laws against it, but
+the freedom of speech, even more than privacy, is fundamental to an
+open society; we seek not to restrict any speech at all. If many
+parties speak together in the same forum, each can speak to all the
+others and aggregate together knowledge about individuals and other
+parties. The power of electronic communications has enabled such group
+speech, and it will not go away merely because we might want it to.
+
+Since we desire privacy, we must ensure that each party to a
+transaction have knowledge only of that which is directly necessary
+for that transaction. Since any information can be spoken of, we must
+ensure that we reveal as little as possible. In most cases personal
+identity is not salient. When I purchase a magazine at a store and
+hand cash to the clerk, there is no need to know who I am. When I ask
+my electronic mail provider to send and receive messages, my provider
+need not know to whom I am speaking or what I am saying or what others
+are saying to me; my provider only need know how to get the message
+there and how much I owe them in fees. When my identity is revealed by
+the underlying mechanism of the transaction, I have no privacy. I
+cannot here selectively reveal myself; I must always reveal myself.
+
+Therefore, privacy in an open society requires anonymous transaction
+systems. Until now, cash has been the primary such system. An
+anonymous transaction system is not a secret transaction system. An
+anonymous system empowers individuals to reveal their identity when
+desired and only when desired; this is the essence of privacy.
+
+Privacy in an open society also requires cryptography. If I say
+something, I want it heard only by those for whom I intend it. If the
+content of my speech is available to the world, I have no privacy. To
+encrypt is to indicate the desire for privacy, and to encrypt with
+weak cryptography is to indicate not too much desire for
+privacy. Furthermore, to reveal one's identity with assurance when the
+default is anonymity requires the cryptographic signature.
+
+We cannot expect governments, corporations, or other large, faceless
+organizations to grant us privacy out of their beneficence. It is to
+their advantage to speak of us, and we should expect that they will
+speak. To try to prevent their speech is to fight against the
+realities of information. Information does not just want to be free,
+it longs to be free. Information expands to fill the available storage
+space. Information is Rumor's younger, stronger cousin; Information is
+fleeter of foot, has more eyes, knows more, and understands less than
+Rumor.
+
+We must defend our own privacy if we expect to have any. We must come
+together and create systems which allow anonymous transactions to take
+place. People have been defending their own privacy for centuries with
+whispers, darkness, envelopes, closed doors, secret handshakes, and
+couriers. The technologies of the past did not allow for strong
+privacy, but electronic technologies do.
+
+We the Cypherpunks are dedicated to building anonymous systems. We are
+defending our privacy with cryptography, with anonymous mail
+forwarding systems, with digital signatures, and with electronic
+money.
+
+Cypherpunks write code. We know that someone has to write software to
+defend privacy, and since we can't get privacy unless we all do, we're
+going to write it. We publish our code so that our fellow Cypherpunks
+may practice and play with it. Our code is free for all to use,
+worldwide. We don't much care if you don't approve of the software we
+write. We know that softwaêre can't be destroyed and that a widely
+dispersed system can't be shut down.
+
+Cypherpunks deplore regulations on cryptography, for encryption is
+fundamentally a private act. The act of encryption, in fact, removes
+information from the public realm. Even laws against cryptography
+reach only so far as a nation's border and the arm of its
+violence. Cryptography will ineluctably spread over the whole globe,
+and with it the anonymous transactions systems that it makes possible.
+
+For privacy to be widespread it must be part of a social
+contract. People must come and together deploy these systems for the
+common good. Privacy only extends so far as the cooperation of one's
+fellows in society. We the Cypherpunks seek your questions and your
+concerns and hope we may engage you so that we do not deceive
+ourselves. We will not, however, be moved out of our course because
+some may disagree with our goals.
+
+The Cypherpunks are actively engaged in making the networks safer for
+privacy. Let us proceed together apace.
+
+Onward9.
+
+Eric Hughes <hughes@soda.berkeley.edu>
+
+9 March 1993
diff --git a/openpgp/tests/data/messages/public-key.gpg b/openpgp/tests/data/messages/public-key.gpg
new file mode 100644
index 00000000..1a2b65fc
--- /dev/null
+++ b/openpgp/tests/data/messages/public-key.gpg
Binary files differ
diff --git a/openpgp/tests/data/messages/sig.gpg b/openpgp/tests/data/messages/sig.gpg
new file mode 100644
index 00000000..c6a5f4c3
--- /dev/null
+++ b/openpgp/tests/data/messages/sig.gpg
Binary files differ
diff --git a/openpgp/tests/data/messages/signed.gpg b/openpgp/tests/data/messages/signed.gpg
new file mode 100644
index 00000000..ad6ee9bd
--- /dev/null
+++ b/openpgp/tests/data/messages/signed.gpg
Binary files differ