Create a policy trait that can be passed to streaming decryptor/verifier, TPK accessors.
The policy object should allow the application to easily filter signatures and keys based on:
-
Hash algorithms -
Keys (when converting a KeyAmalgamation to a ValidKeyAmalgamation) -
Subpacket critical bits -
Notation critical bits -
Packet type (sed / seip / aead) -
Symmetric algorithms (after decrypting a PKESK)
Edited by Justus Winter