Auth tag size and iv size can depend on auth cipher.

Some experimental ciphers will use different IV sizes,
add parameter to check it in future (unused for now).
This commit is contained in:
Milan Broz
2018-01-05 16:35:15 +01:00
parent 6f4c15b2b2
commit 3f186c009c
3 changed files with 5 additions and 2 deletions

View File

@@ -130,6 +130,7 @@ int INTEGRITY_key_size(struct crypt_device *cd)
int INTEGRITY_tag_size(struct crypt_device *cd,
const char *integrity,
const char *cipher,
const char *cipher_mode)
{
int iv_tag_size = 0, auth_tag_size = 0;