1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-18 02:12:06 +01:00
Commit graph

143 commits

Author SHA1 Message Date
07f9c3ceef
Fix decrypt no signatures test 2022-06-23 10:30:16 +02:00
bca359805b
SOP decrypt: Do not throw if no signatures found 2022-06-22 22:14:22 +02:00
749a623d88
Bump SOP version 2022-06-19 17:56:26 +02:00
d64e749f22
Fix sop encrypt --sign-with allowing for protected keys 2022-06-19 17:50:31 +02:00
75455f1a3c
Add OpenPgpMetadata.isCleartextSigned and use it in sop to determine if message was cleartext signed 2022-06-19 17:31:48 +02:00
5375cd454f Implement inline-detach for 3 different types of input 2022-06-19 16:59:42 +02:00
2d60650cc6 Progress on SOP04 support 2022-06-19 16:59:42 +02:00
53df487e59 Adopt changes from SOP-Java and add test for using incapable keys 2022-06-19 16:59:42 +02:00
0b69e18715 Experimental support for inline-sign, inline-verify 2022-06-19 16:59:42 +02:00
9a545a2936 Wip: SOP 4 2022-06-19 16:59:42 +02:00
9cdea63ec4 Fix performance issues of sop armor and dearmor operations 2022-06-16 11:22:35 +02:00
c967cbb9f0 SOP: Properly throw CannotDecrypt 2022-06-16 11:22:21 +02:00
a22336a795 Create dedicated KeyException class for key-related exceptions. 2022-04-07 19:42:58 +02:00
c31fd7d5e0
SOP: Fix mapping of encryption format 2022-03-30 13:14:36 +02:00
4782868bc1
SOP encrypt: match signature type when using --as= option 2022-03-30 12:49:26 +02:00
e8b03834cb
Annotate fromId(code) methods with Nullable and add Nonnull requireFromId(code) methods 2022-03-22 15:09:09 +01:00
16b0d0730e
Annotate and document ArmorUtils class 2022-03-22 14:17:35 +01:00
19b6c8b1e3 SOP-CLI: Implement additional version flags 2022-01-15 02:46:42 +01:00
1b1a13e7d0 Fix spelling of Bouncy Castle 2022-01-15 02:46:41 +01:00
f2d88d8a86 Introduce SigningResult class to allow for additional signing information to be returned 2022-01-15 02:46:41 +01:00
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
ce7b69269b
Various code cleanup 2021-12-28 13:32:50 +01:00
59f1a85887
Fix more code issues 2021-12-28 12:30:52 +01:00
c55fd2e552 Implement decryption with - and access of session keys 2021-12-02 12:42:02 +01:00
15736586dd
SOP: Add convenience methods to deal with byte arrays 2021-10-10 16:34:17 +02:00
e390389c0a Reuse compliance 2021-10-07 16:28:31 +02:00
722477673d
Fix hen and egg problem with signature detaching in SOP 2021-10-04 16:48:27 +02:00
620959abc6
Some more pgpainless-sop tests 2021-10-04 16:28:56 +02:00
637bd18ca6
Add ArmorTest 2021-10-04 16:03:24 +02:00
c5b576d8d2
ArmorImpl: Write to provided output stream instead of system.out 2021-10-04 16:02:28 +02:00
d170138ea8
Add test for GenerateKeyImpl 2021-10-04 15:02:28 +02:00
f28232893c
Refactoring: Move cleartext signed message processing to decryption_verification 2021-09-13 18:09:53 +02:00
90a00e0541 Move signature verification to dedicated streams 2021-09-07 14:02:07 +02:00
f68779d8a5
Add tests for pgpainless-sop 2021-08-30 17:15:11 +02:00
97c8ff8312
Throw WrongConsumingMethodException when processing Cleartext Signed Messages with Inband Signature verification API and vice versa 2021-08-29 13:35:27 +02:00
e3ff1403a3 sop: Enforce that any secret key argument only contains a single secret key 2021-08-23 14:26:17 +02:00
4e83281213 Wip: Remove allowNested, add FileUtil 2021-08-23 14:26:17 +02:00
772f69788b Refactor CleartextSignatureProcessor to allow reuse in DetachInbandSignatureAndMessage 2021-08-23 14:26:17 +02:00
788c82531e Wip: Adopt changes from the SOP specification version 2 2021-08-23 14:26:17 +02:00
099b160656
Native support for notBefore and notAfter signature creation time constraints 2021-08-17 14:47:07 +02:00
2bd71617bd PGPException is not thrown during secret key reading 2021-08-15 15:46:41 +02:00
311c842196
Revert introduction of StreamUtil 2021-07-31 20:40:31 +02:00
fc311fe781
Workaround for #159: Avoid to prevent swallowing IOExceptions 2021-07-26 16:19:30 +02:00
8cf5347b52 Base PGPainlessCLI on new sop-java module
* Rename pgpainless-sop -> pgpainless-cli
* Introduce sop-java (implementation-independent SOP API)
* Introduce sop-java-picocli (CLI frontend for sop-java)
* Introduce pgpainless-sop (implementation of sop-java using PGPainless)
* Rework pgpainless-cli (plugs pgpainless-sop into sop-java-picocli)
2021-07-15 17:03:56 +02:00
6a90c4303e
OpenPgpMetadat: identify verified sigs by SubkeyIdentifier 2021-07-04 13:08:24 +02:00
bd418299b0
Tests for SOP armor and dearmor commands 2021-07-01 18:45:07 +02:00
b76172f97a
Fix SOP armor command 2021-07-01 18:44:57 +02:00
88891e1337
Remove usage of deprecated decryption/verification API in tests 2021-06-16 15:38:02 +02:00
56ddd5e70f
Prevent NPE in SOP when reading certificates 2021-06-11 14:38:56 +02:00
e587fc46b8
SOP: Ignore marker packets in certificates 2021-06-10 16:56:36 +02:00
8618d1faea
More tests 2021-05-31 13:59:56 +02:00
19ec715461 Revert "Add test for PGPainlessCLI main class"
This reverts commit af6fe0aaf7.
2021-05-29 14:19:32 +02:00
af6fe0aaf7
Add test for PGPainlessCLI main class 2021-05-29 14:03:27 +02:00
82536eaa77
Improve support for PGP[Secret|Public]KeyRingCollections 2021-05-29 13:52:29 +02:00
b38bcf042a
Add SOP sign/verify test 2021-05-28 22:16:52 +02:00
1a1a387a16
Fix checkstyle issues in the sop module 2021-05-25 22:22:35 +02:00
83917f320f
Improvements to SOP 2021-05-25 18:08:04 +02:00
3cd64b61ca
Fix SOP encrypt-decrypt test 2021-05-25 16:25:22 +02:00
6cb9091b2a Work on signaturePicker 2021-05-25 14:24:16 +02:00
a30767eb91 Fix tests 2021-05-25 14:24:10 +02:00
89a0adddd8 Reworking encryption/decryption API. 2021-05-25 14:23:42 +02:00
9358e58fb3
Improve CachingSecretKeyRingProtector 2021-05-14 18:55:26 +02:00
7bd12fe5d4
Improve error handling in sop tests 2021-03-05 14:43:13 +01:00
24c0cd8a96
SOP: Properly return error codes to the caller, error code 37 for invalid input args 2021-03-05 14:15:54 +01:00
fb1c0d6ff3
SOP: Allow for multiple user-ids during key generation 2021-03-05 13:32:04 +01:00
8e3b61b76e
Sop: Sync version with gradle version variable and fix format 2021-03-05 13:04:28 +01:00
108d6cb841
sop: Do not swallow EOFExceptions and return 29 instead
Related to #78
2021-02-19 21:18:08 +01:00
c75a192513
Use ArmoredOutputStreamFactory to hide version string in ascii armor
Partially fixes #82
2021-02-19 19:50:36 +01:00
6b1a740b9e
Add tests for SOP 2021-01-23 01:17:30 +01:00
a43d57445c
Quick'n Dirty implementation of decrypt 2021-01-23 01:10:33 +01:00
bd9a580600
Remove unused BCUtil.publicKeyRingFromSecretKeyRing method
Use KeyRingUtils.publicKeyRingFrom(secertKeys) instead
2021-01-21 14:33:52 +01:00
10f1650d06
Fix dummy test whitespace 2021-01-18 18:43:39 +01:00
48b50b6b3e
Add dummy sop test to fix jacocoRootReport 2021-01-18 18:31:50 +01:00
82014ef6e5
Fix checkstyle issues 2021-01-03 15:52:18 +01:00
1c1f9d49ab
Introduce ImplementationFactory 2020-12-27 01:56:18 +01:00
7d374f10a7
Allow encryption and decryption using symmetric passphrases in the main API 2020-12-26 19:04:27 +01:00
ce4f98423f
Start implementing decrypt command 2020-12-22 23:10:24 +01:00
11b1acf7f6
Improve verify command descriptions 2020-12-22 23:09:41 +01:00
ee474232c8
Remove unnecessary imports 2020-12-22 23:09:17 +01:00
59e0a53c3f
Add missing copyright headers 2020-12-22 23:08:53 +01:00
fb687ee5d1
Improve subcommand descriptions 2020-12-22 23:07:53 +01:00
6382ffb5ae
First implementation of encrypt command 2020-12-22 22:09:42 +01:00
5c11b25212
Verify: set arity of boundary options to 0..1 2020-12-22 22:09:22 +01:00
b733b94b9e
Allow signing with multiple secret keys 2020-12-22 22:08:38 +01:00
7edd6bc86d
Add descriptions to all tasks 2020-12-22 22:07:13 +01:00
1e3721c4e5
Improve --[no-]armor flag implementation 2020-12-22 22:05:47 +01:00
31cfbaa4b2 Fix various checkstyle issues 2020-12-16 20:11:58 +01:00
fe03197f3e Use NullOutputStream in verifier to safe resources 2020-12-16 20:11:58 +01:00
930448b02b SOP: Add documentation and parse not-{before|after} dates in verify 2020-12-16 20:11:58 +01:00
eb9587163d SOP: Implement basic signature verification 2020-12-16 20:11:58 +01:00
e07998f99d SOP: Respect signature type 2020-12-16 20:11:58 +01:00
6f48a1a261 Apply latest changes to master 2020-12-16 20:11:58 +01:00
9d3ad01dfc Wip: Start implementing a SOP client 2020-12-16 20:11:58 +01:00