-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept preloaded RSA keys in encryptor/rohmufile
Loading a key can be very slow, especially since OpenSSL 3.0 started validating the keys: pyca/cryptography#7236 Even when using the `unsafe_skip_rsa_key_validation` flag, repeatedly loading the keys for each downloaded or uploaded file still takes unnecessary time. Extend the allowed input types to accept already loaded private and public keys, and also allow these types in the key lookup callback of the `rohmufile` helpers. Even though the key format is not always `pem` anymore, I kept the original parameter name to avoid backward compatibility issues.
- Loading branch information
1 parent
66ef7db
commit 2805cc7
Showing
3 changed files
with
74 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters