proposal: Add AES-GCM to the ESP default AEAD proposal
References #3461.
This commit is contained in:
@@ -1298,9 +1298,13 @@ proposal_t *proposal_create_default_aead(protocol_id_t protocol)
|
|||||||
}
|
}
|
||||||
return &this->public;
|
return &this->public;
|
||||||
case PROTO_ESP:
|
case PROTO_ESP:
|
||||||
/* we currently don't include any AEAD proposal for ESP, as we
|
/* AES-GCM should be supported by pretty much all current kernels,
|
||||||
* don't know if our kernel backend actually supports it. */
|
* RFC 8221 even made it mandatory */
|
||||||
return NULL;
|
this = (private_proposal_t*)proposal_create(protocol, 0);
|
||||||
|
add_algorithm(this, ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16, 128);
|
||||||
|
add_algorithm(this, ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16, 192);
|
||||||
|
add_algorithm(this, ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16, 256);
|
||||||
|
return &this->public;
|
||||||
case PROTO_AH:
|
case PROTO_AH:
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user