Commit Graph

171 Commits

Author SHA1 Message Date
Paul Schaub 741d72eadc
Document nature of tests in pgpainless-sop 2024-03-30 19:20:12 +01:00
Paul Schaub 0b7511a223
Remove tests for armor --label 2024-03-30 19:07:12 +01:00
Paul Schaub b96f22d0a9
Add EncryptionBuilder.discardOutput()
Also move NullOutputStream from pgpainless-sop to pgpainless-core
2024-03-29 20:37:24 +01:00
Paul Schaub b393a90da4
Port pgpainless-sop to Kotlin 2024-03-24 16:16:29 +01:00
Paul Schaub 8066650584
Add comments 2024-03-24 11:00:16 +01:00
Paul Schaub 44be5aa981
Delegate verification operations to SOPVImpl 2024-03-24 10:52:15 +01:00
Paul Schaub 3ac273757a
Bump sop-java to 10.0.0-SNAPSHOT and implement sopv interface subset 2024-03-24 10:52:15 +01:00
Paul Schaub fa5bdfcd82
Throw BadData if KEYS are passed where CERTS are expected 2024-03-24 10:52:14 +01:00
Paul Schaub 265f72d99f
Fix OOM when detached signing large files
Fixes #432
2024-03-17 17:29:01 +01:00
Paul Schaub cf638da130
Bump sop spec to 8 2023-11-15 19:09:15 +01:00
Paul Schaub 1c10dd5bce
Adapt changes from sop-java 8.0.0 2023-11-15 13:40:22 +01:00
Paul Schaub 608ec0b7b0
Annotate methods with @Nonnull 2023-11-15 13:39:26 +01:00
Paul Schaub 5fce443ad9
Kotlin conversion: SecretKeyRingProtector and subclasses 2023-10-09 12:44:19 +02:00
Paul Schaub 48af91efbf
Kotlin conversion: Cleartext Signature Framework 2023-10-09 12:29:34 +02:00
Paul Schaub 8bc2338463
Bump BC to 1.76 2023-08-01 14:27:49 +02:00
Paul Schaub 22b4b93be8
Replace jetbrains annotations package with jsr305 2023-07-19 12:43:23 +02:00
Paul Schaub f3980304ed
SOP-Java now produces hard-revocations 2023-07-12 15:36:09 +02:00
Paul Schaub c69af33588
revoke-key: Generate hard instead of soft revocation 2023-07-12 15:27:36 +02:00
Paul Schaub 6e9d276309
Add complex change-key-password test 2023-07-12 15:25:12 +02:00
Paul Schaub e5539a810d
Use KeyReader class when reading public or secret keys 2023-07-12 15:25:03 +02:00
Paul Schaub 744c679e0c
Bump SOP_VERSION to 7 2023-07-12 01:37:19 +02:00
Paul Schaub 9c216e1ff4
Implement '--signing-only' option for 'generate-key' subcommand 2023-07-12 01:07:29 +02:00
Paul Schaub d3fe850c95
Initial implementation of 'change-key-password' command of SOP-07 2023-07-12 00:40:59 +02:00
Paul Schaub 37bbe8bb39
Initial implementation of the new revoke-key command from SOP-07 2023-07-11 23:15:22 +02:00
Paul Schaub 1b7157a548
When testing support for RFC4880 profile, use RSA keys 2023-06-12 14:41:32 +02:00
Paul Schaub ea9b0d68fb
SOP: Test profile support of encrypt subcommand 2023-06-12 14:37:33 +02:00
Paul Schaub 08ce7c099c
Test list-profiles of encrypt subcommand 2023-06-12 14:28:53 +02:00
Paul Schaub 2367674151
SOP: List profiles of null command throws 2023-06-12 14:27:08 +02:00
Paul Schaub e1038a8bb3
Replace more occurrences of new Date().getTime() with System.currentTimeMillis() 2023-06-02 00:03:55 +02:00
Paul Schaub 5cdd68c4cc
Add documentation to ListProfilesImpl 2023-05-16 16:49:50 +02:00
Paul Schaub 7d049d0ac4
Simplify KeyReader 2023-05-16 16:48:21 +02:00
Paul Schaub a369f1c103
Fix checkstyle 2023-05-09 19:07:07 +02:00
Paul Schaub 8fe3a7159d
Report PGPainless version in sop version --backend 2023-05-08 16:01:59 +02:00
Paul Schaub 005b9d477a
KeyRingReader: Remove unused @throws IOException 2023-05-03 17:23:13 +02:00
Paul Schaub a8ab93a49a
SOP: GenerateKey with --profile=rfc4880 now generates RSA key with subkeys 2023-05-03 14:07:33 +02:00
Paul Schaub eb1ff27a90
Bump sop-java to 6.1.0 2023-04-27 15:15:42 +02:00
Paul Schaub e3bacdbe35
Introduce VerificationHelper class and export signature mode in decrypt operation 2023-04-18 18:53:50 +02:00
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 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