diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 17:46:56 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 18:01:33 +0100 |
commit | 6953b4f9902f5f524e92a15518d0132fb662704a (patch) | |
tree | a02b4e656196a674146709ad42f32f4b295dcac3 /autocrypt/tests/data | |
parent | 2bd001a81fa53e4f3cbc972f6354c8e3e510d1c7 (diff) |
autocrypt: New crate.
- Move the autocrypt-related functionality to a new crate.
- Fixes #424.
Diffstat (limited to 'autocrypt/tests/data')
-rw-r--r-- | autocrypt/tests/data/README.txt | 2 | ||||
-rw-r--r-- | autocrypt/tests/data/setup-message.txt | 135 | ||||
-rw-r--r-- | autocrypt/tests/data/testy-private.pgp | bin | 0 -> 2540 bytes | |||
-rw-r--r-- | autocrypt/tests/data/testy.pgp | bin | 0 -> 1238 bytes |
4 files changed, 137 insertions, 0 deletions
diff --git a/autocrypt/tests/data/README.txt b/autocrypt/tests/data/README.txt new file mode 100644 index 00000000..b2c96bc8 --- /dev/null +++ b/autocrypt/tests/data/README.txt @@ -0,0 +1,2 @@ +setup-message.txt: Taken from the autocrypt v1.0 specification. + https://autocrypt.org/level1.html#setup-message-example diff --git a/autocrypt/tests/data/setup-message.txt b/autocrypt/tests/data/setup-message.txt new file mode 100644 index 00000000..0a78d985 --- /dev/null +++ b/autocrypt/tests/data/setup-message.txt @@ -0,0 +1,135 @@ +<html><body> +<p> +This is the Autocrypt setup file used to transfer settings and +keys between clients. You can decrypt it using the Setup Code +presented on your old device, and then import the contained key +into your keyring. +</p> + +<pre> +-----BEGIN PGP MESSAGE----- +Passphrase-Format: numeric9x4 +Passphrase-Begin: 17 + +wy4ECQMI0jNRBQfVKHVg1+a2Yihd6JAjR9H0kk3oDVeX7nc4Oi+IjEtonUJt +PQpO0tPWASWYuYvjZSuTz9r1yZYV+y4mu9bu9NEQoRlWg2wnbjoUoKk4emFF +FweUj84iI6VWTCSRyMu5d5JS1RfOdX4CG/muLAegyIH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q2IsjXBvCl6k2AKWLQOvc/Hin+oYs4d7M9mi0vdoEOAMadU/+Pqn +uZzP941mOUV5UeTCCbjpyfI7qtIi3TH1cQmC2kG2HrvQYuM6Momp//JusH1+ +9eHgFo25HbitcKJ1sAqxsnYIW5/jIVyIJC7tatxmNfFQQ/LUb2cT+Jowwsf4 +bbPinA9S6aQFy9k3vk07V2ouYl+cpMMXmNAUrboFRLxw7QDapWYMKdmnbU5O +HZuDz3iyrm0lMPsRtt/f5WUhZYY4vXT5/dj+8P6Pr5fdc4S84i5qEzf7bX/I +Sc6fpISdYBscfHdv6uXsEVtVPKEuQVYwhyc4kkwVKjZBaqsgjAA7VEhQXzO3 +rC7di4UhabWQCQTG1GYZyrj4bm6dg/32uVxMoLS5kuSpi3nMz5JmQahLqRxh +argg13K2/MJ7w2AI23gCvO5bEmD1ZXIi1aGYdZfu7+KqrTumYxj0KgIesgU0 +6ekmPh4Zu5lIyKopa89nfQVj3uKbwr9LLHegfzeMhvI5WQWghKcNcXEvJwSA +vEik5aXm2qSKXT+ijXBy5MuNeICoGaQ5WA0OJ30Oh5dN0XpLtFUWHZKThJvR +mngm1QCMMw2v/j8= +=9sJE +-----END PGP MESSAGE----- +</pre></body></html> diff --git a/autocrypt/tests/data/testy-private.pgp b/autocrypt/tests/data/testy-private.pgp Binary files differnew file mode 100644 index 00000000..ceadd8e7 --- /dev/null +++ b/autocrypt/tests/data/testy-private.pgp diff --git a/autocrypt/tests/data/testy.pgp b/autocrypt/tests/data/testy.pgp Binary files differnew file mode 100644 index 00000000..60a61c82 --- /dev/null +++ b/autocrypt/tests/data/testy.pgp |