From eda2e625892dc64cf47fc77c44b7cd322d7a45d2 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sat, 9 Nov 2019 22:34:02 +0100 Subject: [PATCH] Add other backends (Nettle, NSS) for Bitlk decryption (through kernel wrapper). --- lib/crypto_backend/crypto_nettle.c | 3 ++- lib/crypto_backend/crypto_nss.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/crypto_backend/crypto_nettle.c b/lib/crypto_backend/crypto_nettle.c index 9e75a907..e4f91c55 100644 --- a/lib/crypto_backend/crypto_nettle.c +++ b/lib/crypto_backend/crypto_nettle.c @@ -439,5 +439,6 @@ int crypt_bitlk_decrypt_key(const void *key, size_t key_length, const char *iv, size_t iv_length, const char *tag, size_t tag_length) { - return -ENOTSUP; + return crypt_bitlk_decrypt_key_kernel(key, key_length, in, out, length, + iv, iv_length, tag, tag_length); } diff --git a/lib/crypto_backend/crypto_nss.c b/lib/crypto_backend/crypto_nss.c index 24aa1d02..428621a0 100644 --- a/lib/crypto_backend/crypto_nss.c +++ b/lib/crypto_backend/crypto_nss.c @@ -387,5 +387,6 @@ int crypt_bitlk_decrypt_key(const void *key, size_t key_length, const char *iv, size_t iv_length, const char *tag, size_t tag_length) { - return -ENOTSUP; + return crypt_bitlk_decrypt_key_kernel(key, key_length, in, out, length, + iv, iv_length, tag, tag_length); }