Add support for Adiantum cipher mode.

This commit is contained in:
Milan Broz
2018-11-23 21:03:02 +01:00
parent 96a3dc0a66
commit 018486cea0
7 changed files with 58 additions and 41 deletions

View File

@@ -60,7 +60,7 @@ static int crypt_sector_iv_init(struct crypt_sector_iv *ctx,
{
memset(ctx, 0, sizeof(*ctx));
ctx->iv_size = crypt_cipher_blocksize(cipher_name);
ctx->iv_size = crypt_cipher_ivsize(cipher_name, mode_name);
if (ctx->iv_size < 8)
return -ENOENT;