ipsec_xvalid: modify PON switch cases
PON supports only key sizes of 0 or 16 bytes,
so 24 and 32 byte cases are removed.
Also, use uint32_t values in switch, to avoid a mix of
types between AES_KEY_SIZE_BYTES and uint32_t.
@@ -855,15 +855,9 @@ prepare_keys(MB_MGR *mb_mgr, struct cipher_auth_keys *keys,
break;
case PON_AES_CNTR:
switch (params->key_size) {
- case AES_128_BYTES:
+ case 16:
IMB_AES_KEYEXP_128(mb_mgr, key, enc_keys, dec_keys);
break;
- case AES_192_BYTES:
- IMB_AES_KEYEXP_192(mb_mgr, key, enc_keys, dec_keys);
- break;
- case AES_256_BYTES:
- IMB_AES_KEYEXP_256(mb_mgr, key, enc_keys, dec_keys);
- break;
case 0:
break;
default:
