benburkert-gpgme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/COPYING +340 -0
- data/COPYING.LESSER +510 -0
- data/Gemfile +6 -0
- data/History.txt +15 -0
- data/Manifest.txt +18 -0
- data/README.rdoc +162 -0
- data/Rakefile +37 -0
- data/THANKS +15 -0
- data/benburkert-gpgme.gemspec +30 -0
- data/examples/edit.rb +77 -0
- data/examples/genkey.rb +55 -0
- data/examples/keylist.rb +6 -0
- data/examples/roundtrip.rb +39 -0
- data/examples/sign.rb +29 -0
- data/examples/verify.rb +6 -0
- data/ext/gpgme/extconf.rb +26 -0
- data/ext/gpgme/gpgme_n.c +2622 -0
- data/lib/gpgme/compat.rb +48 -0
- data/lib/gpgme/constants.rb +187 -0
- data/lib/gpgme/crypto.rb +357 -0
- data/lib/gpgme/ctx.rb +462 -0
- data/lib/gpgme/data.rb +177 -0
- data/lib/gpgme/engine.rb +76 -0
- data/lib/gpgme/error.rb +66 -0
- data/lib/gpgme/io_callbacks.rb +21 -0
- data/lib/gpgme/key.rb +242 -0
- data/lib/gpgme/key_common.rb +43 -0
- data/lib/gpgme/key_sig.rb +35 -0
- data/lib/gpgme/misc.rb +66 -0
- data/lib/gpgme/signature.rb +85 -0
- data/lib/gpgme/sub_key.rb +58 -0
- data/lib/gpgme/user_id.rb +20 -0
- data/lib/gpgme/version.rb +3 -0
- data/lib/gpgme.rb +108 -0
- data/test/crypto_test.rb +242 -0
- data/test/ctx_test.rb +426 -0
- data/test/data_test.rb +116 -0
- data/test/files/testkey_pub.gpg +52 -0
- data/test/files/testkey_sec.gpg +54 -0
- data/test/gpgme_test.rb +12 -0
- data/test/key_test.rb +201 -0
- data/test/signature_test.rb +48 -0
- data/test/sub_key_test.rb +45 -0
- data/test/support/resources.rb +516 -0
- data/test/test_helper.rb +79 -0
- metadata +196 -0
@@ -0,0 +1,516 @@
|
|
1
|
+
key1_public = <<-RUBY
|
2
|
+
-----BEGIN PGP PUBLIC KEY BLOCK-----
|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OMWrTImk0CXFGIS/sm7cODu
|
75
|
+
zLJNS32muxaHisbIDVcK/vac3wksa0DjgiIQa08yI40F7V9y6FsS/PxvPO8Hi9AX
|
76
|
+
AjUk9I7RWu3E2loIHgYeTBwXyKLmWr5ZVfpX6KvIa4Y3MTRnE0x6+woeT90=
|
77
|
+
=DclA
|
78
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
79
|
+
RUBY
|
80
|
+
|
81
|
+
key2_secret = <<-RUBY
|
82
|
+
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
83
|
+
Version: GnuPG v1.4.11 (Darwin)
|
84
|
+
|
85
|
+
lQHYBE2y7N4BBACvmNc9DIJsD9zOXfrRk1RygXKIuSkSSmEm1l9irrPr1Qi76IW7
|
86
|
+
n2+NaTXEId0FmPQ7Z7xMhR6FZ62+n5LRY24lNMvPar+77G5XkfDuTLfNrq45bFQq
|
87
|
+
qZCN2uJePk+mtYi0dkEhdOL9ntDyhAiBaUi5p4wImVMmD2rHk/4fq/OLmQARAQAB
|
88
|
+
AAP8D1bzoZeGyrQhis0asMV1NHoStHcxa3HANi12wHcIzG6sMEcmLJ9nVjQFUISR
|
89
|
+
S3CC0HA12rzrz0VhABSuVZihKd2dEVFQiY2BfpZ0j6XVoUF/w+wB1KJ73et6AsyY
|
90
|
+
f3iLtu/OTQeOC68EKi08yogRu/EFo25vVOhyIhQF5rDMkxECANKDcGkmJsZZr7+V
|
91
|
+
GqJS5mHLHy7aI7aN8f4uEQx/QXK3MW5PA12KgNc91kT8MbTYueI8/yNZe/DtBpji
|
92
|
+
yUelpZECANWJ/9L2gEgXDggcYe5+f7kYzxhkEjypX3Ewkza7CRWUqS2Bz8GzmFls
|
93
|
+
8s+UhiyWJAMZ/uNUy6YPawUoTnZyYYkCANCoKZfKw0zHypZ7HhH1znmdQkte+sJc
|
94
|
+
G9604Os1RGVO6Tu30fCd7AaStPc4qfAPwJDDaSCLzMN9U6VGROaW9Iyff7QhVGVz
|
95
|
+
dCBudW1i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eAhsMAAoJEDkr4sp31mVm
|
110
|
+
SeID/iiPXvX46QlS11QN5h+OffpFsDTjFq0yJpNAlxRiEv7Ju3Dg7syyTUt9prsW
|
111
|
+
h4rGyA1XCv72nN8JLGtA44IiEGtPMiONBe1fcuhbEvz8bzzvB4vQFwI1JPSO0Vrt
|
112
|
+
xNpaCB4GHkwcF8ii5lq+WVX6V+iryGuGNzE0ZxNMevsKHk/d
|
113
|
+
=KmYO
|
114
|
+
-----END PGP PRIVATE KEY BLOCK-----
|
115
|
+
RUBY
|
116
|
+
|
117
|
+
key3_public = <<-RUBY
|
118
|
+
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
119
|
+
Version: GnuPG v1.4.11 (Darwin)
|
120
|
+
|
121
|
+
mI0ETbLs+QEEALBpfCzDVNDWw2jWBpmNAScCmdX92voNSp+Jd0GFhabDbmfasAwO
|
122
|
+
rEKAn/PgQCOdHNT8m7EHUCTDOB2vBe360IE8+q9OylF10I6PSMvyoXHnwL/UQ4BO
|
123
|
+
dcgYYE54AmensPWlYxLlLu34gnKgSEnNULee9x4KnVfeidNj1gpQTenlABEBAAG0
|
124
|
+
IVRlc3QgbnVtYmVyIDMgPHRlc3QzQGV4YW1wbGUuY29tPoi4BBMBAgAiBQJNsuz5
|
125
|
+
AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRA0d6XcPemRge3TA/9jNcgZ
|
126
|
+
ad7j6R7yUL2lYw5jeSuyiIiRzwxb8PzEOzEAUBaLBWGsLunwDjU6ZTSckNUxjmf9
|
127
|
+
sHkeAb1WmYSidsHpLaljLp/dtsYgUQg6wUNjv3VEyeT9oViEVxr6RIYyd6kTQAUK
|
128
|
+
kHjiaRXftqcgDfhgI/+Nzd8gYZxGeMudnsavcLiNBE2y7PkBBACwoV1uFEtxoufH
|
129
|
+
KMqBWMdCY8B/0D4ytgjjXBqwRN1k6QFEqUe/A+Nf8ZVE8lNyb8BHwMVoS4auOKLs
|
130
|
+
g4JeIlwvEeFAlsdABlUtkEKJEcxns3nxmCw8koiWkk9KDY9rk3ZU0UweLDFshYq/
|
131
|
+
1z/+QueKdx6uJZAHKM3DoBqpEqomhwARAQABiJ8EGAECAAkFAk2y7PkCGwwACgkQ
|
132
|
+
NHel3D3pkYFGagP/YvAIsOb5ve9441FXwlkjiGCiUugfC/8Mw7U+ufGjbDkjSgOH
|
133
|
+
+WE+Rx+iUMT55JoQX8G/bephtYq0YSa1kyKOebOc08ZBPWH/4sK/UFjnVBdCuglj
|
134
|
+
tsU3JEa9ma0EN5Iwj8cHpvzATsxS5zCIEfDYHIHNhGhnpFp4GKgN6cXD2QY=
|
135
|
+
=T5Nu
|
136
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
137
|
+
RUBY
|
138
|
+
|
139
|
+
key3_secret = <<-RUBY
|
140
|
+
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
141
|
+
Version: GnuPG v1.4.11 (Darwin)
|
142
|
+
|
143
|
+
lQHXBE2y7PkBBACwaXwsw1TQ1sNo1gaZjQEnApnV/dr6DUqfiXdBhYWmw25n2rAM
|
144
|
+
DqxCgJ/z4EAjnRzU/JuxB1AkwzgdrwXt+tCBPPqvTspRddCOj0jL8qFx58C/1EOA
|
145
|
+
TnXIGGBOeAJnp7D1pWMS5S7t+IJyoEhJzVC3nvceCp1X3onTY9YKUE3p5QARAQAB
|
146
|
+
AAP4+Ayv6LVxlrhj8HtdyG+Ja2YX/GYaxR161dxPyZ0h4cVLDec1QhwCe/Q9Mrad
|
147
|
+
DG7I0+DhX4CCIpPZD+PwmzjIuIrw+CeCVFyYwnKzbjSQMCHbQaiZhCmiqItoe/P/
|
148
|
+
mf3rTX7hh6H02VtRhMcSPfFv7ckWiHz3Zc5PEUvS5E+B4QIA0b6ddoIyeEdvlrmj
|
149
|
+
IZs2gMvpj5p7ksuRX+Wo04Dw2v5qoYFamgq+junLwjo2hKP2WzE6ocAYiFycE8/i
|
150
|
+
NzG5xQIA11EKhP8nuAbLzkbz45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apy/JFpN+hJ5FeIVPWCP8/HlHdtq32X7hbNuQ4r02QIA
|
166
|
+
ytqWvM//YeZcoUfckrxumMpEW613YYMCbIDW51EauKFrAxK1hqHl1I8VwXs8H+6v
|
167
|
+
JvDNxSddjC/bMZ/QivwJyaDfiJ8EGAECAAkFAk2y7PkCGwwACgkQNHel3D3pkYFG
|
168
|
+
agP/YvAIsOb5ve9441FXwlkjiGCiUugfC/8Mw7U+ufGjbDkjSgOH+WE+Rx+iUMT5
|
169
|
+
5JoQX8G/bephtYq0YSa1kyKOebOc08ZBPWH/4sK/UFjnVBdCugljtsU3JEa9ma0E
|
170
|
+
N5Iwj8cHpvzATsxS5zCIEfDYHIHNhGhnpFp4GKgN6cXD2QY=
|
171
|
+
=QWZy
|
172
|
+
-----END PGP PRIVATE KEY BLOCK-----
|
173
|
+
RUBY
|
174
|
+
|
175
|
+
key4_public = <<-RUBY
|
176
|
+
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
177
|
+
Version: GnuPG v1.4.11 (Darwin)
|
178
|
+
|
179
|
+
mI0ETbLtDQEEAKBGC+ZlPZitUGQ76XxF8xm3qCAwm30xitHq4jAItbQ6GfsVZb1r
|
180
|
+
jKjOcupf2LPDrnhCZ5eTXvFCc4mqvv3fJAeoAD6nEIQmG7DYeYoGwVztFTRajLFG
|
181
|
+
krgchcYpopi5Xq5IUe57UaFMt6SEqzajAJWSD6303rHIJJ/2SaQA0wEZABEBAAG0
|
182
|
+
IVRlc3QgbnVtYmVyIDQgPHRlc3Q0QGV4YW1wbGUuY29tPoi4BBMBAgAiBQJNsu0N
|
183
|
+
AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRAKfJF4Vk6CPfZcA/0b7FZE
|
184
|
+
zvsNdxESao+UO0ReXIVKT3vl+7NdauiSsQQsg0/zxxXxctmAq6oalHg1pbQLWxgI
|
185
|
+
uKPH1sxgSOZ1LGWEPENRwi9oVv6ENJVKcX87OUdCPu3gryr6os0oSSpXzYTEFBgJ
|
186
|
+
RNJdqL7+Y73P9glMhzDb1eZM0TFHI2nr2fzfe7iNBE2y7Q0BBADY38LZ3YAIgq3r
|
187
|
+
k54Y6x3mN5TyMTex994jC91UCYqHFwhIM2v0UlsA/QkqbS8nbqOH2zDzEFs29Wcv
|
188
|
+
cUeHWBQaAtiHr/izNy4Qo9pXW3eI5vDfeXEB0MGk21JqabPLWTd5zcNlXXfr6TxK
|
189
|
+
0+h9Ivbk0mPSP/E3XcUrJtJyml6ilQARAQABiJ8EGAECAAkFAk2y7Q0CGwwACgkQ
|
190
|
+
CnyReFZOgj1NWwP9FKrmuEN+RfsPsVHEv0liGFyKbcyteB+12Zp+aNzMddCOLYXA
|
191
|
+
jvoMv2F+WfrAvzdwUeYWq93An6w44TV7GfsVky8IDHXZ4wAnUrE2tuCvCPqUToVV
|
192
|
+
OBjCYD0To97vULkS/+bU1+jAE3IYtedYNFdGhd0cm4kLzFVlAzc9xDLTp08=
|
193
|
+
=Emj0
|
194
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
195
|
+
RUBY
|
196
|
+
|
197
|
+
key4_secret = <<-RUBY
|
198
|
+
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
199
|
+
Version: GnuPG v1.4.11 (Darwin)
|
200
|
+
|
201
|
+
lQHYBE2y7Q0BBACgRgvmZT2YrVBkO+l8RfMZt6ggMJt9MYrR6uIwCLW0Ohn7FWW9
|
202
|
+
a4yoznLqX9izw654QmeXk17xQnOJqr793yQHqAA+pxCEJhuw2HmKBsFc7RU0Woyx
|
203
|
+
RpK4HIXGKaKYuV6uSFHue1GhTLekhKs2owCVkg+t9N6xyCSf9kmkANMBGQARAQAB
|
204
|
+
AAP9EKVFvh98prs1UruwM7J2HZEn+nPh6j43ezbIWBHHgVjZcuzVfLdLTAro/3OF
|
205
|
+
56GmoKHQ7XqmTStIIZ+kp2xB6wmQnQ8bxjOwWZ40/hH/r57Ednz5nflJQeknXvlV
|
206
|
+
j6sxJKJppyfu5bk9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UGkf
|
221
|
+
EUjquOZrCLTc0skCAN87u9Ezy9x9z55KtiCjoMCCod98elSX9mG+tbfOAmRsmBkV
|
222
|
+
RU0Bzvz/465EQPcv3EthgBaH1ri3dnP1KUorOl0CAPi1Efg1+tE7SOm7MVt9maC9
|
223
|
+
zh4LAnD4tNhYr93CmnQw85NQmggtRW0/qnk6MF0TM/nS9tVWIFINcqYrDb0JtZkC
|
224
|
+
AOWgGo5NFrrYnSpE2afTkuQZjKzxED98MmgjCKdEV4eRE8j8IWGsgD+l4kp/+fL+
|
225
|
+
wPMzfTjcV/XVdhEMPTPPFE6hmIifBBgBAgAJBQJNsu0NAhsMAAoJEAp8kXhWToI9
|
226
|
+
TVsD/RSq5rhDfkX7D7FRxL9JYhhcim3MrXgftdmafmjczHXQji2FwI76DL9hfln6
|
227
|
+
wL83cFHmFqvdwJ+sOOE1exn7FZMvCAx12eMAJ1KxNrbgrwj6lE6FVTgYwmA9E6Pe
|
228
|
+
71C5Ev/m1NfowBNyGLXnWDRXRoXdHJuJC8xVZQM3PcQy06dP
|
229
|
+
=SMnt
|
230
|
+
-----END PGP PRIVATE KEY BLOCK-----
|
231
|
+
RUBY
|
232
|
+
|
233
|
+
password_key_public = <<-RUBY
|
234
|
+
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
235
|
+
Version: GnuPG v1.4.11 (Darwin)
|
236
|
+
|
237
|
+
mQENBE20i3MBCACuRmguvjHCkZaJGu9mD/vMa4ytavXYLqQ0HBQe6RAqVarAidFf
|
238
|
+
bKfIAuaqg9xRpnNpDL+hPqbOiYcxy6USw0hvEhLUem83KHIwU8t6+Fu5vRYOxgch
|
239
|
+
R/t66N9+B5TfxXg5fAKl7dKesXXw1VwS6jnmjWB1NaWwfmhRkbSQbCRKW38JNQ6t
|
240
|
+
xysZnFDtqmp1Y/vb4LZ8Q87ITfHkxLAfPKEFh25qMfXB/iXgP4NnFOFH1bZ9sz4E
|
241
|
+
cX0sXEAXKtrpHFOg78qTQaucKu7fBJ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
+
iQEfBBgBAgAJBQJNtItzAhsMAAoJEPEJhDO4S3JJS7EH/Rl8NOMaLFs7wpghmoqo
|
257
|
+
PHQhzkcV8zXJ8gwT+2qAz1Et9oyU1pHBT/1E+8XqrMlXQhcCevhmwlQdIIQpfzXZ
|
258
|
+
eserXabPKrwPDkwPoajVFLVc1WPHzBbmuBP/7XSgEXxfKXE8qA3nAkiidnfdA7ww
|
259
|
+
WB+4iMYnsimKAQxTLQvwZE3twnt+5hPbtg89BSaYSv2WuBkh/qAb8DxoffjenTko
|
260
|
+
RPX4fQDveZa4UswstJNM1s1hq/idQtCzgrRw0/ZD2g/hupBbXlM7dm+Iiuy+hMFM
|
261
|
+
G4bNiySxInxh/nfvsvlz9xgePjqxptjVggEVVkKHvkb8Z+MX+/N632WOVkIw2HFB
|
262
|
+
tck=
|
263
|
+
=hRl0
|
264
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
265
|
+
RUBY
|
266
|
+
|
267
|
+
password_key_secret = <<-RUBY
|
268
|
+
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
269
|
+
Version: GnuPG v1.4.11 (Darwin)
|
270
|
+
|
271
|
+
lQO+BE20i3MBCACuRmguvjHCkZaJGu9mD/vMa4ytavXYLqQ0HBQe6RAqVarAidFf
|
272
|
+
bKfIAuaqg9xRpnNpDL+hPqbOiYcxy6USw0hvEhLUem83KHIwU8t6+Fu5vRYOxgch
|
273
|
+
R/t66N9+B5TfxXg5fAKl7dKesXXw1VwS6jnmjWB1NaWwfmhRkbSQbCRKW38JNQ6t
|
274
|
+
xysZnFDtqmp1Y/vb4LZ8Q87ITfHkxLAfPKEFh25qMfXB/iXgP4NnFOFH1bZ9sz4E
|
275
|
+
cX0sXEAXKtrpHFOg78qTQaucKu7fBJo+r/crAK7SWutGCv5R5kE+sLNWsOdgFz4k
|
276
|
+
CdwgxQeK0URwMF9kNHb/HHwfiWUZZrkAu0sxABEBAAH+AwMCZHky5xgtPjJg6t8w
|
277
|
+
d5qqyiW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Go
|
321
|
+
1RS1XNVjx8wW5rgT/+10oBF8XylxPKgN5wJIonZ33QO8MFgfuIjGJ7IpigEMUy0L
|
322
|
+
8GRN7cJ7fuYT27YPPQUmmEr9lrgZIf6gG/A8aH343p05KET1+H0A73mWuFLMLLST
|
323
|
+
TNbNYav4nULQs4K0cNP2Q9oP4bqQW15TO3ZviIrsvoTBTBuGzYsksSJ8Yf5377L5
|
324
|
+
c/cYHj46sabY1YIBFVZCh75G/GfjF/vzet9ljlZCMNhxQbXJ
|
325
|
+
=9u2Q
|
326
|
+
-----END PGP PRIVATE KEY BLOCK-----
|
327
|
+
RUBY
|
328
|
+
|
329
|
+
expired_key_public = <<-RUBY
|
330
|
+
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
331
|
+
Version: GnuPG v1.4.11 (Darwin)
|
332
|
+
|
333
|
+
mI0ETb8S8gEEAK2m1FMu8mAWS+WwnQIXLikRegUC5faHFpNNwqp9SgH4GuWxq2iQ
|
334
|
+
PfnSHRhE6qtcK6DVqJv4R6h1AfCCd1Vdgp8FtWyCA6dgxflH206VY+GgfwbK6nDs
|
335
|
+
eiCX9wFNKZjXrmesOete1oxIrqDKpNQbJ1zwGSQ+GW3KQFq4gImTiA17ABEBAAG0
|
336
|
+
JkV4cGlyZWQgS2V5IDx0ZXN0X2V4cGlyZWRAZXhhbXBsZS5jb20+iL4EEwECACgF
|
337
|
+
Ak2/EvICGwMFCQABUYAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEDY/0HHE
|
338
|
+
tnipp88D/RSAytabxU9uGCba4mEla/6PJavnqA1y+Pfuvqq6mlAOPTsL/Y5TXyp7
|
339
|
+
USEgqmigdga+FHVJfZu3C+uxkIkzGjhi4iuL7nI3gGwGNd82HJL0j1WnM47brPjo
|
340
|
+
F85SxAyn0LXk77piMVlK96TfQFX0Zk+Zz8QEaW3B59O705US6Q8puI0ETb8S8gEE
|
341
|
+
ANBET93bCi3SalKuNtT5D7L7+zNgiP9xEpCIhoUbW0OVJ3Nz1iSWRLYeQsPyKnhZ
|
342
|
+
Ws1Gv9Bp7MC5iOP1jtPd81elrwN71o+4xT7nv3Hvz1JzuhrYFC/wKcz1DG/Diset
|
343
|
+
jKPJu/W8ip0K5jYvDIUrDO8g9jCc8m80wMhxMzpsVNhnABEBAAGIpQQYAQIADwUC
|
344
|
+
Tb8S8gIbDAUJAAFRgAAKCRA2P9BxxLZ4qbMOA/9XY586CtP1QCVvIdlJVVuLc/mu
|
345
|
+
I7IVAp03q4hqA6ykooLFu3FzYFTCENcyvemEB4TJhfG6XYmrq5N0jOrl6BB/ONLc
|
346
|
+
37OBnsxWQBKVbn7yzDb6WzsMtAlQ8Q8S5oYbIWSt+nUoE5slZ+tx9ngzLG20IpUH
|
347
|
+
sunYPhvnuBAfIRuA0A==
|
348
|
+
=tKG5
|
349
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
350
|
+
RUBY
|
351
|
+
|
352
|
+
expired_key_secret = <<-RUBY
|
353
|
+
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
354
|
+
Version: GnuPG v1.4.11 (Darwin)
|
355
|
+
|
356
|
+
lQHYBE2/EvIBBACtptRTLvJgFkvlsJ0CFy4pEXoFAuX2hxaTTcKqfUoB+Brlsato
|
357
|
+
kD350h0YROqrXCug1aib+EeodQHwgndVXYKfBbVsggOnYMX5R9tOlWPhoH8Gyupw
|
358
|
+
7Hogl/cBTSmY165nrDnrXtaMSK6gyqTUGydc8BkkPhltykBauICJk4gNewARAQAB
|
359
|
+
AAP8DWaEl6kiZRqmkrwO8bYn05CyS0HoMx6rnFE+ed+fRW86/1ZQzvBKoaux0q/T
|
360
|
+
mC1NsWSriHwfzR0loCsnprvHmsaX7O7W4PHZRN+xB9clpRGfEnHiyljWuaP8bxWg
|
361
|
+
r57fmnJ+bFoWanyxZsHoYZrVOlMa6JpQiQ+y0QUsbykTCPECAMt6Z3qc54JtU3Rt
|
362
|
+
lNzHNE7zRYt1z2fRGnOmrh0ch5T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emCNIfGmE5i9JU0VRU7xPJXlEWxKmFPKdlGOAT8V4QSgLVvp7H+3OwIA60+9rWrB
|
378
|
+
i3mQgjETNM2mT0wDrXNCyuR2MdeOfCyEYY+4xBLdPs7aSsVakQrx/1B8WZkWZUNU
|
379
|
+
d7iuHlKaickIxQIA50UW9VuaMxyImLIdt2RzcLacOC98oMvZ8R/5ShkWunGOkUka
|
380
|
+
0YHOGCUAqhjwh5SFKjp3VYfy22P3YR1Usj8ETpmRiKUEGAECAA8FAk2/EvICGwwF
|
381
|
+
CQABUYAACgkQNj/QccS2eKmzDgP/V2OfOgrT9UAlbyHZSVVbi3P5riOyFQKdN6uI
|
382
|
+
agOspKKCxbtxc2BUwhDXMr3phAeEyYXxul2Jq6uTdIzq5egQfzjS3N+zgZ7MVkAS
|
383
|
+
lW5+8sw2+ls7DLQJUPEPEuaGGyFkrfp1KBObJWfrcfZ4MyxttCKVB7Lp2D4b57gQ
|
384
|
+
HyEbgNA=
|
385
|
+
=NliS
|
386
|
+
-----END PGP PRIVATE KEY BLOCK-----
|
387
|
+
RUBY
|
388
|
+
|
389
|
+
encrypted_text = <<-RUBY
|
390
|
+
-----BEGIN PGP MESSAGE-----
|
391
|
+
Version: GnuPG v1.4.11 (Darwin)
|
392
|
+
|
393
|
+
hIwDbJ4P+uQnvtQBA/9OXytdl9XAnzDZau1nTDkqpYKUp4ZoBvwASwxexj4VWX8i
|
394
|
+
jo1AuJi7pzSrBssjDsMAXcnfzHsEKh6g3xu15Gttn1oR7oB8/Q8AlC8nX8Wwsg+n
|
395
|
+
EpS/TNE/oPae8EbPCNAYuWHaGOzkH1LNQ4fpYy1q2t6+Er3uyzq0LhXTJZTM3oSM
|
396
|
+
A2c0CKWdjRgiAQQAkRQ0VPk7emnx/1FeUIlOaGgQa4KnNUw/FIZYdQNh/FJm2oTp
|
397
|
+
wunScJXvxVTZjk4eE6QAcuBH/lV1mrRF37o+7XMDuzafhT+qxqoUF8SUkCw79jrm
|
398
|
+
NBaDYW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j
|
419
|
+
KlRljCX85rXHWXU2JW/BdQxBoF1ANuE3+HwZoDbwtOKFhRTuBKUN/YpphluUMmJ/
|
420
|
+
W0Wq6QL8v4+awwQX7eLE0T3FxQko57kLw//XqYsuv2RVCOYVbfQUmKHo0z2EjAOk
|
421
|
+
LkSJkASuIQED/iz3m6dONzuxuMesy6AY7gxa+Okgb7H2Is2ARGy1riNaLNhf5WZN
|
422
|
+
tsDd6QBod1i/tSwsMrbBjePPSyCyjD17QjdpieXtAqWfqwhxq0/KJtLmCwctHPnJ
|
423
|
+
1fhPp8oy+n/et0UyQgiH/yI3bxVT/39ZURIf1QstD/HGPnI5upnIn4S2hIwDwk/m
|
424
|
+
ZyOifKABA/4qTB94c2bVir7Pg1uvO6cvQwb2Pj8UUAFysZt7WHVTcvpm33lj5wkP
|
425
|
+
QyY7o2rMKSS8qAmmBWOsfAPF5gCvgp4D2Kr5FB5kYWzmFOFxuIN8ayz25BJ+4YGQ
|
426
|
+
GdWwjSPU69/eet6q7p+XydGY8jv4e6u/2tAi3b2O5Kt0th1rftOJENLAMgFgGMNE
|
427
|
+
M2S5q+RE1apf28qfqbMzSQ2Nccx+kaIkGDjieYIBhG2f3Yuh8GBdQHpyaNH0x/eY
|
428
|
+
XnHuRow0gy1jagiIDGK96N4tBOOhacR+Nf15gYMyvfZUszgwudiZP8uwUluA1w/v
|
429
|
+
+yjqnb2CVGx0iW7Yv71dxdojx7vpJ+WePHe+zJMHb260tAOmBDhjDjJ4eDqcP6Yk
|
430
|
+
d8NEvpzk2zUiB6Hb6SXPBYp+0cUQG5sYCEZQLunQJ1CeXzAfRxoyv5k7gYG/wZ5L
|
431
|
+
jVRh9AFdOceUv5zZJpiSYXYXyntWqSy4Q5zguQmzhE5Wu3mY9HYPcpAUHxbn
|
432
|
+
=rt/Y
|
433
|
+
-----END PGP MESSAGE-----
|
434
|
+
RUBY
|
435
|
+
|
436
|
+
signed_with_expired_key_text = <<-RUBY
|
437
|
+
-----BEGIN PGP MESSAGE-----
|
438
|
+
Version: GnuPG v1.4.11 (Darwin)
|
439
|
+
|
440
|
+
owGbwMvMwMRoZn+h8Mi2ipWMpwWTmHXVzH33C7d6ZCqUZKQWpXbMYWFgZGJgY2UC
|
441
|
+
iTJwcQrAVDsoMv9mvx954X+W9uzfGSVVvlE5n3yFrdn2CB/q0jr4Um5C/Notby0t
|
442
|
+
YxibhPfqpC4Sy3UMfHd/76qvBp8cZv3749/xJ2LZGT9O39nsM7yvfXsjttm1Kyv1
|
443
|
+
unDJJQnpxHlOubtKPuTkLU+aZOQtf1/zsRKTz5zv37XLTY6qWdy18fr0t1fbf8o9
|
444
|
+
jxAA
|
445
|
+
=Vta9
|
446
|
+
-----END PGP MESSAGE-----
|
447
|
+
RUBY
|
448
|
+
|
449
|
+
unavailable = <<-RUBY
|
450
|
+
-----BEGIN PGP MESSAGE-----
|
451
|
+
Version: GnuPG v1.4.11 (Darwin)
|
452
|
+
|
453
|
+
hIwDlCBoTwSpYjABA/9pn3d5xYasfQYquQzLwI0ASVuvuofjJZrYyKEYLEPHPaFn
|
454
|
+
SJOMJRFJh4lC6UfGs7xktX0bONwsdGo0EaIP6H5W+WFW0W2VCxyqLLorCWa/XFi8
|
455
|
+
Nr/2iVyj5s3QSfXGXDmnlRCf9PiAiBPPy2DzYgD3KLXMZH2hAxUtJmouuIgVWdJG
|
456
|
+
AYKArJ8pJFbrtrIiPuNIjj0yhiNGx65GIfnF32fulpgzLbyWymlpkrzRRO6sz2wl
|
457
|
+
EEdpZ6VKsLuoOb9Ou+hD6CLC3Izzmw==
|
458
|
+
=bsMi
|
459
|
+
-----END PGP MESSAGE-----
|
460
|
+
RUBY
|
461
|
+
|
462
|
+
sign = <<-RUBY
|
463
|
+
-----BEGIN PGP MESSAGE-----
|
464
|
+
Version: GnuPG v1.4.11 (Darwin)
|
465
|
+
|
466
|
+
owGbwMvMwCQo65qZfvagZjzjacEkZl01c98VK/96ZCqUZKQWpXa4sTAIMjGwsTKB
|
467
|
+
RBm4OAVgqt3PMSxYZXVcSzq4uZvry7RCp9vN31o+LTnBML+wgKFg6aJPKysdX2fc
|
468
|
+
+rtEd/85jh4A
|
469
|
+
=aECe
|
470
|
+
-----END PGP MESSAGE-----
|
471
|
+
RUBY
|
472
|
+
|
473
|
+
passwored = <<-RUBY
|
474
|
+
-----BEGIN PGP MESSAGE-----
|
475
|
+
Version: GnuPG v1.4.11 (Darwin)
|
476
|
+
|
477
|
+
hQEMAykL9/bExDNQAQf/ZXL4iUQEzoE0XfBLakpLTV5euOvdGFVPxrFS481i/Ldi
|
478
|
+
Yfpoo/gbB0yEwKnm0faCRSz2AiOQ4f3iIWRwdwoEYTbCW/o1/iXKH8fp6GXd4hQG
|
479
|
+
JdRIwr7GoGQFuOb96kZL3TbO4VapC6ubx5evxyhCIRLZPL415YXdGAcqnVvYew92
|
480
|
+
pzZn0RWe2dXDlE1HTENVvHoABnBgOOLSE/37kJJYWgsk1QJCSbaxsS6sZdJXcINQ
|
481
|
+
uqeKQKagF15DVYRA27viX0IZ9J2x9ytPQWLdf0wc8dE0h4NJiEwL6myU2WPR27xx
|
482
|
+
Lrrp3kD2wewwUSljOW/SbXS6TNLSEiLILUZkTr5+F9JIAWF1YLZTxjN9HxABuboy
|
483
|
+
wYhnVMaM+gQKDMgbIXdxim0ssq2ICHROYkbC/JTEIVXqnJbKLivfNP6J0ROHcczO
|
484
|
+
w/3/C0MallvG
|
485
|
+
=hrCw
|
486
|
+
-----END PGP MESSAGE-----
|
487
|
+
RUBY
|
488
|
+
|
489
|
+
KEYS = []
|
490
|
+
KEYS << { :sha => 'test1@example.com', :public => key1_public, :secret => key1_secret}
|
491
|
+
KEYS << { :sha => 'test2@example.com', :public => key2_public, :secret => key2_secret}
|
492
|
+
KEYS << { :sha => 'test3@example.com', :public => key3_public, :secret => key3_secret}
|
493
|
+
KEYS << { :sha => 'test4@example.com', :public => key4_public, :secret => key4_secret}
|
494
|
+
|
495
|
+
PASSWORD_KEY = {
|
496
|
+
:sha => 'test_with_password@example.com',
|
497
|
+
:public => password_key_public,
|
498
|
+
:secret => password_key_secret
|
499
|
+
}
|
500
|
+
|
501
|
+
EXPIRED_KEY = {
|
502
|
+
:sha => "test_expired@example.com",
|
503
|
+
:public => expired_key_public,
|
504
|
+
:secret => expired_key_secret
|
505
|
+
}
|
506
|
+
|
507
|
+
TEXT = {
|
508
|
+
:plain => "Hi there",
|
509
|
+
:encrypted => encrypted_text.chomp,
|
510
|
+
# Created with a temporary key that's been removed.
|
511
|
+
:unavailable => unavailable.chomp,
|
512
|
+
:signed => signed_text.chomp,
|
513
|
+
:sign => sign.chomp,
|
514
|
+
:passwored => passwored.chomp,
|
515
|
+
:expired_key_sign => signed_with_expired_key_text.chomp
|
516
|
+
}
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
# include compiled gpgme_n.bundle
|
4
|
+
tmp_dir = File.join(File.dirname(__FILE__), '..', 'tmp')
|
5
|
+
$:.unshift(tmp_dir) if File.directory?(tmp_dir)
|
6
|
+
|
7
|
+
require 'rubygems'
|
8
|
+
require 'bundler/setup'
|
9
|
+
require 'minitest/autorun'
|
10
|
+
require 'minitest/spec'
|
11
|
+
require 'minitest/pride'
|
12
|
+
require 'mocha'
|
13
|
+
require 'ruby-debug'
|
14
|
+
require 'gpgme'
|
15
|
+
|
16
|
+
require File.dirname(__FILE__) + "/support/resources"
|
17
|
+
|
18
|
+
def import_keys
|
19
|
+
KEYS.each do |key|
|
20
|
+
import_key(key)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def import_key(key, only = :all)
|
25
|
+
GPGME::Key.import(key[:public]) unless only == :secret
|
26
|
+
GPGME::Key.import(key[:secret]) unless only == :public
|
27
|
+
end
|
28
|
+
|
29
|
+
def remove_keys
|
30
|
+
KEYS.each do |key|
|
31
|
+
remove_key(key)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def remove_all_keys
|
36
|
+
GPGME::Key.find(:public).each do |k|
|
37
|
+
k.delete!(true)
|
38
|
+
end
|
39
|
+
GPGME::Key.find(:secret).each do |k|
|
40
|
+
k.delete!(true)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def remove_key(key)
|
45
|
+
GPGME::Key.find(:public, key[:sha]).each do |k|
|
46
|
+
k.delete!(true)
|
47
|
+
end
|
48
|
+
GPGME::Key.find(:secret, key[:sha]).each do |k|
|
49
|
+
k.delete!(true)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def with_key(key, only = :all, &block)
|
54
|
+
import_key key, only
|
55
|
+
|
56
|
+
begin
|
57
|
+
yield
|
58
|
+
ensure
|
59
|
+
remove_key key
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def without_key(key, &block)
|
64
|
+
remove_key key
|
65
|
+
|
66
|
+
begin
|
67
|
+
yield
|
68
|
+
ensure
|
69
|
+
import_key key
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# We use a different home directory for the keys to not disturb current
|
74
|
+
# installation
|
75
|
+
|
76
|
+
require 'tmpdir'
|
77
|
+
GPGME::Engine.home_dir = Dir.tmpdir
|
78
|
+
remove_all_keys
|
79
|
+
import_keys
|