Get rid of backend parameter whenever possible (#883)

* Get rid of backend parameter whenever possible.

* Always auto-detect if backend choices are 'cryptography' and 'auto', resp. always check cryptography version.

* Improve error message.

* Update documentation.
This commit is contained in:
Felix Fontein
2025-05-03 10:46:53 +02:00
committed by GitHub
parent fbcb89f092
commit 645b7bf9ed
50 changed files with 502 additions and 1093 deletions

View File

@@ -270,10 +270,7 @@ def main():
msg=f"The directory {base_dir} does not exist or the file is not a directory",
)
backend, module_backend = select_backend(
module=module,
backend=module.params["select_crypto_backend"],
)
module_backend = select_backend(module=module)
try:
private_key = PrivateKeyModule(module, module_backend)