You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I need to check that decrypted data has been signed by any of two given keys. The current API RequireSpecificSignatureValidationStrategy supports an "AND" verification, but I need an "OR" verification.
I think it would be nice if users had the possibility to provide their own instance of SignatureValidationStrategy. This way they can use custom strategies without having to submit PRs here and wait for a release.
Maybe a new method named andValidateSignatureMatches(SignatureValidationStrategy) in name.neuhalfen.projects.crypto.bouncycastle.openpgp.BuildDecryptionInputStreamAPI.Validation:
I think your point on being able to specify a custom SignatureValidationStrategy is nice and should be further discussed with the author.
In the interim however, you might be able to take care of the issue by using the below function (if the two keys are present in the decryption key ring)
andValidateSomeoneSigned
But it would only validate that one of the keys in the keyring signed this message (not a particular subset)
So, something like
I have a use case where I need to check that decrypted data has been signed by any of two given keys. The current API
RequireSpecificSignatureValidationStrategy
supports an "AND" verification, but I need an "OR" verification.I think it would be nice if users had the possibility to provide their own instance of
SignatureValidationStrategy
. This way they can use custom strategies without having to submit PRs here and wait for a release.Maybe a new method named
andValidateSignatureMatches(SignatureValidationStrategy)
inname.neuhalfen.projects.crypto.bouncycastle.openpgp.BuildDecryptionInputStreamAPI.Validation
:The text was updated successfully, but these errors were encountered: