aesni: Remove useless algorithm assignments
This commit is contained in:
parent
0ce2e00d94
commit
3f8eb2ebdf
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue