1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-17 09:04:50 +02:00
Commit graph

1525 commits

Author SHA1 Message Date
Paul Schaub e2fc9ccb9c
Update changelog 2022-11-03 12:29:50 +01:00
Paul Schaub cdef935974
Add comment for ArmorUtils method 2022-11-03 12:07:26 +01:00
Paul Schaub c20e80f716 Implement efficient read(buf,off,len) for DelayedInputStream 2022-11-03 12:04:40 +01:00
Paul Schaub dfb7d068bd Small clean-ups in OpenPgpMessageInputStream 2022-11-03 11:56:38 +01:00
Paul Schaub 3e120fbf7f Properly handle failed decryption caused by removed private keys 2022-11-03 11:56:38 +01:00
Paul Schaub 25fd3fa1d6 Move classes related to GNU dummy keys to gnupg package 2022-11-03 11:56:38 +01:00
Paul Schaub b74e7bcb7c Add test for decryption with removed private key 2022-11-03 11:56:38 +01:00
Paul Schaub 3b9159e632 Rename GnuPGDummyExtension + GnuPGDummyKeyUtil 2022-11-03 11:56:38 +01:00
Paul Schaub b5bd4875ae Use S2K usage SHA1 in GnuDummyKeyUtil 2022-11-03 11:56:38 +01:00
Paul Schaub 54ed7a5387 Add documentation to GnuDummyKeyUtil 2022-11-03 11:56:38 +01:00
Paul Schaub 489419459a Add and test GnuDummyKeyUtil 2022-11-03 11:56:38 +01:00
Paul Schaub 220f186336 Move CachingBcPublicKeyDataDecryptorFactoryTest to correct package 2022-11-03 11:56:38 +01:00
Paul Schaub 4b8367dcca Fix HardwareSecurity.getIdsOfHardwareBackedKeys() 2022-11-03 11:56:38 +01:00
Paul Schaub 09aaa9fa4e Fix CachingBcPublicKeyDataDecryptorFactory 2022-11-03 11:56:38 +01:00
Paul Schaub 1be4d8e5c4 Implement caching PublicKeyDataDecryptorFactory 2022-11-03 11:56:38 +01:00
Paul Schaub d94fa6b74b Add comments 2022-11-03 11:56:38 +01:00
Paul Schaub d5fcb3bc29 Add (commented-out) read(buf, off, len) implementation for DelayedTeeInputStream 2022-11-03 11:56:38 +01:00
Paul Schaub 6716e363c7 Allow injection of different syntax into PDA 2022-11-03 11:56:38 +01:00
Paul Schaub 291f59b9e4 Clean up old unused code 2022-11-03 11:56:38 +01:00
Paul Schaub a0c8de57e9 More cleanup and better error reporting 2022-11-03 11:56:38 +01:00
Paul Schaub 3c94f3677f Rename *Alphabet to *Symbol and add javadoc 2022-11-03 11:56:38 +01:00
Paul Schaub a9f67c508f Separate out syntax logic 2022-11-03 11:56:38 +01:00
Paul Schaub c4e937c0f9 Improve syntax error reporting 2022-11-03 11:56:38 +01:00
Paul Schaub 0feafbf7ed Remove debugging fields 2022-11-03 11:56:38 +01:00
Paul Schaub 4aaecb7df8 Remove superfluous states 2022-11-03 11:56:38 +01:00
Paul Schaub d8ff266406 Handle unknown packet versions gracefully 2022-11-03 11:56:38 +01:00
Paul Schaub 651ca93f90 Add missing REUSE license headers 2022-11-03 11:56:38 +01:00
Paul Schaub 08ceee9243 Wrap MalformedOpenPgpMessageException in BadData 2022-11-03 11:56:38 +01:00
Paul Schaub 160a5fe8ff Fix last two broken tests 2022-11-03 11:56:38 +01:00
Paul Schaub 4c6edc067b Fix more tests 2022-11-03 11:56:38 +01:00
Paul Schaub 2a4bc03555 Only check message integrity once 2022-11-03 11:56:38 +01:00
Paul Schaub 9ec4c47309 Delete old DecryptionStreamFactory 2022-11-03 11:56:38 +01:00
Paul Schaub 09d036f17b Fix CRCing test and fully depend on new stream for decryption 2022-11-03 11:56:38 +01:00
Paul Schaub 7aaeb8ccfd Further increase coverage of PDA class 2022-11-03 11:56:38 +01:00
Paul Schaub bb1b154745 Add more direct PDA tests 2022-11-03 11:56:38 +01:00
Paul Schaub 9dbee67304 Rename automaton package to syntax_check 2022-11-03 11:56:38 +01:00
Paul Schaub f67f1954e7 Add detailled logging to OpenPgpMessageInputStream 2022-11-03 11:56:38 +01:00
Paul Schaub 789a0086c9 Enable logging in tests 2022-11-03 11:56:38 +01:00
Paul Schaub 8fb8aa1a30 Throw UnacceptableAlgEx for unencrypted encData 2022-11-03 11:56:38 +01:00
Paul Schaub 0d62cea8a5 Implement custom decryptor factories in pda 2022-11-03 11:56:38 +01:00
Paul Schaub a60917549d Identify custom decryptor factories by subkey id 2022-11-03 11:56:38 +01:00
Paul Schaub 02c68460a9 Make map final 2022-11-03 11:56:38 +01:00
Paul Schaub 24ed479b87 Change HardwareSecurity DecryptionCallback to emit key-id 2022-11-03 11:56:38 +01:00
Paul Schaub 0f5103577e Implement exploratory support for custom decryption factories
This may enable decryption of messages with hardware-backed keys
2022-11-03 11:56:38 +01:00
Paul Schaub f15040dae0 WIP: Explore Hardware Decryption 2022-11-03 11:56:38 +01:00
Paul Schaub 0f768a7258 Work on postponed keys 2022-11-03 11:56:38 +01:00
Paul Schaub 5c61559647 Reuse *SignatureCheck class 2022-11-03 11:56:38 +01:00
Paul Schaub 0a7c76a2dd Enfore max recursion depth and fix CRC test 2022-11-03 11:56:38 +01:00
Paul Schaub 6324455cf5 Fix NPEs and expose decryption keys 2022-11-03 11:56:38 +01:00
Paul Schaub 513ab0e3ed Fix checkstyle issues 2022-11-03 11:56:38 +01:00