Commit Graph

1326 Commits

Author SHA1 Message Date
Paul Schaub dd3ef89a5c
Add (failing) test for extracting certificate from key with unknown secret key encryption method 2024-04-10 10:47:13 +02:00
Paul Schaub a6f3a223b1
Reject data signatures made by non-signing primary key 2024-04-10 10:38:50 +02: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 337b5d68b6
Add Automatic-Module-Name to pgpainless-core and pgpainless-sop 2024-03-19 15:56:49 +01:00
Paul Schaub cbbd980554
Spotless apply 2024-03-05 21:30:28 +01:00
Paul Schaub c2abc89d5e
Add tests for PGPKeyRingExtensions 2024-03-05 21:29:47 +01:00
Paul Schaub c89c47c491
Add tests for PGPPublicKeyExtensions 2024-03-05 21:17:03 +01:00
Paul Schaub e561d58562
Add tests for PGPSecretKeyExtensions 2024-03-05 21:05:34 +01:00
Paul Schaub dfbc56fe24
Add tests for PGPSecretKeyRingExtensions 2024-03-05 20:54:15 +01:00
Paul Schaub 020d411417
Move CachingBcPublicKeyDataDecryptorFactory to org.pgpainless.decryption_verification package 2024-02-21 15:12:29 +01:00
Paul Schaub 252c520ca2
Move org.bouncycastle classes to org.pgpainless.bouncycastle in order to avoid split package
See https://github.com/pgpainless/pgpainless/issues/428 for more background information
2024-02-21 14:43:38 +01:00
Paul Schaub bd26268533
Add syntactic sugar for SignatureSubpacketCallback factory methods 2024-01-24 18:59:35 +01:00
Paul Schaub acd7f15744
Rename LibrePGP features 2024-01-24 11:30:20 +01:00
Paul Schaub ce51f4b8cc
Add documentation to AEAD Algorithms 2024-01-24 11:28:35 +01:00
Paul Schaub de9a161252
Accept certification signatures using SHA-1 before 2023-02-01
This commit introduces a dedicated SignatureHashAlgorithmPolicy for certification signatures.
The default configuration will accept SHA-1 on sigs created before 2023-02-01.
2024-01-04 18:20:09 +01:00
Paul Schaub 69f1028fd9
Add method to change expiration time of subkeys
Port of e06f60f62c to kotlin
2023-12-15 18:20:51 +01:00
Paul Schaub 97455aa256
Add test for handling key with unknown signature subpacket 2023-11-30 19:36:44 +01:00
Paul Schaub 74c7b025a0
Do not choke on unknown signature subpackets
Fixes #418
2023-11-30 19:36:01 +01:00
Paul Schaub f39d2c5566
Prevent subkey binding signature from predating subkey
Fixes #419
2023-11-30 17:58:10 +01:00
Paul Schaub b0caa95378
Properly feed an EOS token to the push down automata in OpenPgpMessageInputStream.read() 2023-11-27 13:27:23 +01:00
Paul Schaub 1e33408098
Please the checkstyle checker 2023-11-27 13:26:41 +01:00
Daniel Gultsch 9ab0c35b78 add unit test to read decryption stream beyond end 2023-11-26 10:55:47 +01:00
Paul Schaub 481dfac455
Revert PassphraseProvider API change 2023-11-15 19:23:52 +01:00
Paul Schaub f07063d55f
Kotlin conversion: SignatureBuilder classes 2023-11-13 16:21:08 +01:00
Paul Schaub 3bb25a62a2
Remove unused CRCingArmoredInputStreamWrapper class 2023-11-13 14:09:42 +01:00
Paul Schaub 620c1fc96a
Ensure proper compatibility with keys with missing direct-key or certification self-sigs 2023-11-08 15:16:41 +01:00
Paul Schaub f4bfb9dc04
Remove test with expired key 2023-10-26 12:52:21 +02:00
Paul Schaub 19b45644ae
Kotlin conversion: SignatureVerifier 2023-10-26 12:52:04 +02:00
Paul Schaub e9d8ddc57b
Kotlin conversion: SignatureValidator 2023-10-25 19:07:52 +02:00
Paul Schaub 51e9bfc67f
Apply new formatting from 'gradle spotlessApply' 2023-10-23 14:24:31 +02:00
Paul Schaub b72f95b46c
Kotlin conversion: SignatureSubpacketsHelper 2023-10-20 14:55:51 +02:00
Paul Schaub 0effc84fac
Kotlin conversion: SignatureSubpackets + subclasses 2023-10-20 14:10:37 +02:00
Paul Schaub 4fc513fa25
Kotlin conversion: SignatureCreationDateComparator, SignatureValidityComparator 2023-10-17 18:58:37 +02:00
Paul Schaub 70e1b40cd2
Fix ArmorUtil header 2023-10-13 13:41:50 +02:00
Paul Schaub efae652a66
Kotlin conversion: CertificateValidator 2023-10-13 13:38:45 +02:00
Paul Schaub 853e3de472
Clean up unused casts from EncryptionOptions 2023-10-10 13:00:01 +02:00
Paul Schaub 11c1c54111
Kotlin conversion: ProviderFactory 2023-10-09 12:49:17 +02:00
Paul Schaub 8351223614
Kotlin conversion: PublicKeyParameterValidationUtil 2023-10-09 12:49:17 +02:00
Paul Schaub 1cdce5c93a
Kotlin conversion: ImplementationFactory classes 2023-10-09 12:49:17 +02:00
Paul Schaub d707dcf74a
Move now unused utility classes to test directory 2023-10-09 12:49:17 +02:00
Paul Schaub 8382da923d
Add TODO to CRCinArmoredInputStreamWrapper 2023-10-09 12:49:17 +02:00
Paul Schaub aca884e936
Kotlin conversion: ArmoredOutputStreamFactory
Also allow configuration of CRC calculation for both input and output streams
2023-10-09 12:49:16 +02:00
Paul Schaub e16376ca68
Kotlin conversion: ArmoredInputStreamFactory 2023-10-09 12:49:16 +02:00
Paul Schaub 6b397a0d56
Kotlin conversion: SignaturePicker 2023-10-09 12:49:16 +02:00
Paul Schaub 841b386226
Kotlin conversion: MultiMap
Warning: This commit changes the semantics of MultiMap.put()
put() now replaces values, while plus() adds them.
2023-10-09 12:49:16 +02:00
Paul Schaub b324742a62
Kotlin conversion: ArmorUtils 2023-10-09 12:49:16 +02:00
Paul Schaub 9a917f7fdb
Kotlin conversion: DateUtil 2023-10-09 12:49:15 +02:00
Paul Schaub 4c237d55ed
Add note about deprecation to BaseSignatureSubpackets 2023-10-09 12:49:15 +02:00
Paul Schaub c9f988b2d1
Kotlin conversion: SelectUserId 2023-10-09 12:49:15 +02:00
Paul Schaub 33037b9743
Kotlin conversion: Passphrase 2023-10-09 12:49:15 +02:00