diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-04-18 17:00:30 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-04-18 17:00:30 +0000 |
commit | 855c9a908904a836a9ff16f2c1e90103c97f1085 (patch) | |
tree | 4a2f4e6b5fa7f5d6a7d13db843ae0b4931535282 | |
parent | 66bb16b0337e326fe9403e65549b0846fd1becaf (diff) | |
download | strongswan-855c9a908904a836a9ff16f2c1e90103c97f1085.tar.bz2 strongswan-855c9a908904a836a9ff16f2c1e90103c97f1085.tar.xz |
fixed AES default key length
-rw-r--r-- | src/pluto/spdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/spdb.c b/src/pluto/spdb.c index 00a312a50..8699132da 100644 --- a/src/pluto/spdb.c +++ b/src/pluto/spdb.c @@ -2058,7 +2058,7 @@ parse_ipsec_sa_body( /* set default key length for AES encryption */ if (!esp_attrs.key_len && esp_attrs.transid == ESP_AES) { - esp_attrs.key_len = 128 / BITS_PER_BYTE; + esp_attrs.key_len = 128; /* bits */ } if (!kernel_alg_esp_enc_ok(esp_attrs.transid, esp_attrs.key_len |