diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-11-24 15:29:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-12-17 19:58:26 +0100 |
commit | d041e4fc4a69df0b8992c07c9c42b0f369fdb9d8 (patch) | |
tree | 5963356fc94473d76a8e807192669a9fd43f3aa0 /src/shared/openssl-util.h | |
parent | 2289a78473282902db1108168df6414ae7d91b2f (diff) | |
download | systemd-d041e4fc4a69df0b8992c07c9c42b0f369fdb9d8.tar.gz |
homed: split out code that determines suitable LUKS passphrase size from RSA key
We can use this in cryptenroll later on, hence let's make this generic.
Diffstat (limited to 'src/shared/openssl-util.h')
-rw-r--r-- | src/shared/openssl-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/openssl-util.h b/src/shared/openssl-util.h index a669b0926f..b753a690ba 100644 --- a/src/shared/openssl-util.h +++ b/src/shared/openssl-util.h @@ -13,4 +13,6 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(EVP_CIPHER_CTX*, EVP_CIPHER_CTX_free); int rsa_encrypt_bytes(EVP_PKEY *pkey, const void *decrypted_key, size_t decrypted_key_size, void **ret_encrypt_key, size_t *ret_encrypt_key_size); +int rsa_pkey_to_suitable_key_size(EVP_PKEY *pkey, size_t *ret_suitable_key_size); + #endif |