Try to check if AEAD cipher is available through kernel crypto API.

This commit is contained in:
Milan Broz
2018-11-22 09:23:17 +01:00
parent d7ddcc0768
commit b4dce61918
3 changed files with 95 additions and 15 deletions

View File

@@ -111,6 +111,10 @@ int crypt_cipher_decrypt(struct crypt_cipher *ctx,
const char *in, char *out, size_t length,
const char *iv, size_t iv_length);
/* Check availability of a cipher */
int crypt_cipher_check(const char *name, const char *mode,
const char *integrity, size_t key_length);
/* storage encryption wrappers */
int crypt_storage_init(struct crypt_storage **ctx, uint64_t sector_start,
const char *cipher, const char *cipher_mode,