child-cfg: Optionally use 96-bit truncation for HMAC-SHA-256

The correct truncation is 128-bit but some implementations insist on
using 96-bit truncation.  With strongSwan this can be negotiated using
an algorithm identifier from a private range.  But this doesn't work
with third-party implementations.  This adds an option to use 96-bit
truncation even if the official identifier is used.
This commit is contained in:
Tobias Brunner
2017-05-26 11:22:27 +02:00
parent 7b476029e6
commit 7637633bb9
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -307,6 +307,9 @@ enum child_cfg_option_t {
/** Enable hardware offload, if supported by the IPsec backend */
OPT_HW_OFFLOAD = (1<<5),
/** Force 96-bit truncation for SHA-256 */
OPT_SHA256_96 = (1<<6),
};
/**