Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept preloaded RSA keys in encryptor/rohmufile #172

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

kmichel-aiven
Copy link
Collaborator

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.

About this change - What it does

Resolves: #xxxxx

Why this way

@kmichel-aiven kmichel-aiven requested a review from a team February 29, 2024 20:36
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.
@Khatskevich Khatskevich merged commit 6bef80f into main Feb 29, 2024
8 checks passed
@Khatskevich Khatskevich deleted the kmichel-preloaded-keys branch February 29, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants