aesni: Remove useless algorithm assignments

This commit is contained in:
Tobias Brunner 2020-08-18 13:17:24 +02:00
parent 0ce2e00d94
commit 3f8eb2ebdf
2 changed files with 0 additions and 6 deletions

View File

@ -860,15 +860,12 @@ aesni_ccm_t *aesni_ccm_create(encryption_algorithm_t algo,
switch (algo)
{
case ENCR_AES_CCM_ICV8:
algo = ENCR_AES_CBC;
icv_size = 8;
break;
case ENCR_AES_CCM_ICV12:
algo = ENCR_AES_CBC;
icv_size = 12;
break;
case ENCR_AES_CCM_ICV16:
algo = ENCR_AES_CBC;
icv_size = 16;
break;
default:

View File

@ -1393,15 +1393,12 @@ aesni_gcm_t *aesni_gcm_create(encryption_algorithm_t algo,
switch (algo)
{
case ENCR_AES_GCM_ICV8:
algo = ENCR_AES_CBC;
icv_size = 8;
break;
case ENCR_AES_GCM_ICV12:
algo = ENCR_AES_CBC;
icv_size = 12;
break;
case ENCR_AES_GCM_ICV16:
algo = ENCR_AES_CBC;
icv_size = 16;
break;
default: