Commit Graph

233 Commits

Author SHA1 Message Date
Paul Schaub 06c924d41d
Add tests for mode to DetachedSignTest 2023-04-18 18:43:56 +02:00
Paul Schaub b0974c6ade
Add more tests for inline-sign-verify roundtrips 2023-04-18 18:40:25 +02:00
Paul Schaub 2ec176e938
DetachedVerifyImpl: Export signature mode in Verification result 2023-04-18 18:39:52 +02:00
Paul Schaub 05968533a5
InlineVerifyImpl: Export signature mode in Verification result 2023-04-18 18:35:47 +02:00
Paul Schaub 94a609127e
PGPainless 1.5.0 2023-04-17 16:35:17 +02:00
Paul Schaub e465ae60a7
VersionImpl: Fix outdated method names 2023-04-17 16:22:54 +02:00
Paul Schaub 676e7d166a
EncryptImpl: Rename default profile, add documentation 2023-04-17 16:06:45 +02:00
Paul Schaub 926e540016
Test fine-grained SOP spec version 2023-04-17 16:01:17 +02:00
Paul Schaub 3b1edb076c
Basic support for sop encrypt --profile=XXX 2023-04-17 16:01:17 +02:00
Paul Schaub 5b363de6e4
Implement VersionImpl.getSopSpecVersion() 2023-04-17 16:01:17 +02:00
Paul Schaub 446d121777
Bump SOP version in VersionImpl to 06 2023-04-17 16:01:17 +02:00
Paul Schaub 6371485929
Add some clarifying comments to GenerateKeyImpl 2023-04-17 14:51:50 +02:00
Paul Schaub 702fdf085c
Thin out and rename profiles of generate-key 2023-04-17 12:49:23 +02:00
Paul Schaub f3a4a01d19
Add basic tests for new functionality 2023-04-14 16:18:15 +02:00
Paul Schaub b79e706d65
Bump SOP version in VersionImpl to 05 2023-04-14 16:18:15 +02:00
Paul Schaub e35287a666
Add support for SOP05 features 2023-04-14 16:18:15 +02:00
Paul Schaub afc7d49144
PGPainless 1.4.4 2023-02-09 21:55:10 +01:00
Paul Schaub 1257c52ede
PGPainless 1.4.3 2023-01-31 19:12:45 +01:00
Paul Schaub d53cd6d0bd
pgpainless-sop: reuse shared sop-java test suite 2023-01-31 19:03:11 +01:00
Paul Schaub 83ef9cfe80
SOP encrypt: Throw MissingArg if no encryption method was provided. 2023-01-31 18:20:03 +01:00
Paul Schaub b58861635d
Add some missing javadoc 2023-01-16 19:38:52 +01:00
Paul Schaub 2d33a7e5d3
PGPainless 1.4.2 2023-01-13 19:33:26 +01:00
Paul Schaub ab6b6ca2e7 Add regression test for #351 2023-01-09 16:56:05 +01:00
Paul Schaub 3b2d0795f7 Fix NPE when sop generate-key --with-key-password is used with multiple uids
Fixes #351
2023-01-09 16:54:58 +01:00
Paul Schaub 77c476dff2
PGPainless 1.4.1 2022-12-22 15:31:32 +01:00
Paul Schaub 7a326ddef0
PGPainless 1.4.0 2022-12-15 18:19:13 +01:00
Paul Schaub 2d46fb18f7 SOP: Allow generation of keys without user-ids 2022-12-15 18:04:59 +01:00
Paul Schaub 66abd5f65f Cleartext-signatures MUST use TEXT mode 2022-12-15 18:04:53 +01:00
Paul Schaub 4f435a0fa0 Fix parameter check for DSA keys
Fixes #345
2022-12-15 18:04:34 +01:00
Paul Schaub ce049bf9a4
PGPainless 1.4.0-rc2 2022-11-24 22:25:27 +01:00
Paul Schaub 68886613a6
SOP KeyReader: wrap IOException in BadData 2022-11-24 22:14:06 +01:00
Paul Schaub 25190fc5df SOP: Use new MessageMetadata class 2022-11-23 20:42:54 +01:00
Paul Schaub 2c7801b759 Add MatchMakingSecretKeyRingProtectorTest 2022-11-23 20:42:54 +01:00
Paul Schaub 6926cedf61 Fix compilation errors and simplify LayerIterator by introducing Packet interface 2022-11-23 20:42:54 +01:00
Paul Schaub 4594b494a9 Implement signature verification with certificate stores as cert source 2022-11-23 20:42:17 +01:00
Paul Schaub 6dcc1e68cd Fix expected exception in roundtrip test 2022-11-23 20:42:17 +01:00
Paul Schaub 256920bfae PGPainless 1.4.0-rc1 2022-11-23 20:42:16 +01:00
Paul Schaub a013ab4ebb Wrap MalformedOpenPgpMessageException in BadData 2022-11-23 20:40:40 +01:00
Paul Schaub 09f94944b3 Remove unnecessary throws declarations 2022-11-23 20:40:03 +01:00
Paul Schaub aacfc0f995
PGPainless 1.3.13 2022-11-23 20:33:04 +01:00
Paul Schaub 678dac902f
PGPainless 1.3.12 2022-11-11 13:57:28 +01:00
Paul Schaub 243d64fcb4 Bump sop-java to 4.0.5 and adopt changes (--as=clearsigned) 2022-11-11 13:46:43 +01:00
Paul Schaub 86b06ee5e3 SOP: Hide armor version header by default 2022-11-11 13:46:43 +01:00
Paul Schaub 48005da7f3 SOP : Do not armor already-armored data. 2022-11-11 13:46:40 +01:00
Paul Schaub c35deaed16
PGPainless 1.3.11 2022-11-09 22:12:23 +01:00
Paul Schaub fd55ce3657
Fix key/password matching in SOPs detached sign command 2022-11-09 22:01:52 +01:00
Paul Schaub e15dd70b85
SOP: Unify key/certificate reading code 2022-11-09 22:01:20 +01:00
Paul Schaub c77c96f849 SOP verify: force data to be non-openpgp data 2022-11-09 15:44:34 +01:00
Paul Schaub 4143ad3165
PGPainless 1.3.10 2022-11-07 16:55:00 +01:00
Paul Schaub 78de682a14
PGPainless 1.3.9 2022-11-06 15:16:28 +01:00
Paul Schaub e67c43a6f7
Bump sop-java to 4.0.2 and improve exception handling 2022-11-06 15:03:35 +01:00
Paul Schaub df258b46c1
PGPainless 1.3.8 2022-11-03 11:46:07 +01:00
Paul Schaub 19ee2ebacf
PGPainless 1.3.7 2022-10-05 12:27:38 +02:00
Paul Schaub 7bff3128cb
Update READMEs 2022-09-03 18:07:32 +02:00
Paul Schaub a2bfb55d87
Use *Options.get() factory methods in SOP module 2022-08-29 13:22:44 +02:00
Paul Schaub c361fecdd9
PGPainless 1.3.5 2022-08-11 15:56:32 +02:00
Paul Schaub 6c936a2570
PGPainless 1.3.4 2022-08-04 14:55:08 +02:00
Paul Schaub bd10630fb4
PGPainless 1.3.3 2022-07-24 12:42:16 +02:00
Paul Schaub 93e50b75fe
PGPainless 1.3.2 2022-07-16 13:02:55 +02:00
Paul Schaub 9654af15e6
PGPainless 1.3.1 2022-06-23 12:09:01 +02:00
Paul Schaub 14531f0050
Make sop decrypt throw for unencrypted data 2022-06-23 11:47:48 +02:00
Paul Schaub efc0cb357b
EncryptDecryptRoundTripTest: make passphrase constant 2022-06-23 11:47:20 +02:00
Paul Schaub 07f9c3ceef
Fix decrypt no signatures test 2022-06-23 10:30:16 +02:00
Paul Schaub bca359805b
SOP decrypt: Do not throw if no signatures found 2022-06-22 22:14:22 +02:00
Paul Schaub 749a623d88
Bump SOP version 2022-06-19 17:56:26 +02:00
Paul Schaub d64e749f22
Fix sop encrypt --sign-with allowing for protected keys 2022-06-19 17:50:31 +02:00
Paul Schaub 75455f1a3c
Add OpenPgpMetadata.isCleartextSigned and use it in sop to determine if message was cleartext signed 2022-06-19 17:31:48 +02:00
Paul Schaub 5375cd454f Implement inline-detach for 3 different types of input 2022-06-19 16:59:42 +02:00
Paul Schaub 2d60650cc6 Progress on SOP04 support 2022-06-19 16:59:42 +02:00
Paul Schaub 53df487e59 Adopt changes from SOP-Java and add test for using incapable keys 2022-06-19 16:59:42 +02:00
Paul Schaub 0b69e18715 Experimental support for inline-sign, inline-verify 2022-06-19 16:59:42 +02:00
Paul Schaub 9a545a2936 Wip: SOP 4 2022-06-19 16:59:42 +02:00
Paul Schaub 9cdea63ec4 Fix performance issues of sop armor and dearmor operations 2022-06-16 11:22:35 +02:00
Paul Schaub c967cbb9f0 SOP: Properly throw CannotDecrypt 2022-06-16 11:22:21 +02:00
Paul Schaub be6c16079e
Switch to version agnostic SOP spec URL 2022-05-07 22:15:13 +02:00
Paul Schaub ae3004a221
PGPainless 1.2.2 2022-05-05 11:22:59 +02:00
Paul Schaub c3f6ca2ab8
PGPainless 1.2.1 2022-04-29 17:02:11 +02:00
Paul Schaub 9f50946dd7
PGPainless 1.2.0 2022-04-07 21:20:46 +02:00
Paul Schaub a22336a795 Create dedicated KeyException class for key-related exceptions. 2022-04-07 19:42:58 +02:00
Paul Schaub a7d56e3461
PGPainless 1.1.5 2022-04-05 14:48:44 +02:00
Paul Schaub c31fd7d5e0
SOP: Fix mapping of encryption format 2022-03-30 13:14:36 +02:00
Paul Schaub 4782868bc1
SOP encrypt: match signature type when using --as= option 2022-03-30 12:49:26 +02:00
Paul Schaub ccee24dd93
PGPainless 1.1.4 2022-03-30 12:26:50 +02:00
Paul Schaub e8b03834cb
Annotate fromId(code) methods with Nullable and add Nonnull requireFromId(code) methods 2022-03-22 15:09:09 +01:00
Paul Schaub 16b0d0730e
Annotate and document ArmorUtils class 2022-03-22 14:17:35 +01:00
Paul Schaub 655f4ae09a
PGPainless 1.1.3 2022-03-15 15:41:30 +01:00
Paul Schaub d876f770a6
Bump version in sop readme 2022-02-25 16:12:56 +01:00
Paul Schaub 69c0a1bfa4
PGPainless 1.1.1 2022-02-25 16:06:01 +01:00
Paul Schaub 36c5ec8a28 Host javadoc on javadoc.io 2022-02-15 14:29:07 +01:00
Paul Schaub 132981abfa
PGPainless 1.0.2 2022-02-05 14:55:38 +01:00
Paul Schaub 593a6cdb65
Document how to include pgpainless-sop in build scripts 2022-01-15 14:38:36 +01:00
Paul Schaub e55fad6078 Switch pgpainless-sop over to java-library plugin and api-depend on sop-java 2022-01-15 02:46:42 +01:00
Paul Schaub c6bc8f9774 Moved sop-java and sop-java-picocli to its own repositories
See https://github.com/pgpainless/sop-java
See https://codeberg.org/PGPainless/sop-java
2022-01-15 02:46:42 +01:00
Paul Schaub 19b6c8b1e3 SOP-CLI: Implement additional version flags 2022-01-15 02:46:42 +01:00
Paul Schaub fc432901ed Add information to SOP READMEs 2022-01-15 02:46:42 +01:00
Paul Schaub 1b1a13e7d0 Fix spelling of Bouncy Castle 2022-01-15 02:46:41 +01:00
Paul Schaub f2d88d8a86 Introduce SigningResult class to allow for additional signing information to be returned 2022-01-15 02:46:41 +01:00
Paul Schaub 1cb49f4b12 Update SOP implementation to the latest spec version
See https://datatracker.ietf.org/doc/html/draft-dkg-openpgp-stateless-cli-03
2022-01-15 02:46:41 +01:00
Paul Schaub ce7b69269b
Various code cleanup 2021-12-28 13:32:50 +01:00
Paul Schaub 59f1a85887
Fix more code issues 2021-12-28 12:30:52 +01:00