From dd8dd81b9c953440a52d8b7b4c3bbc1e345ea799 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Tue, 21 Nov 2000 06:44:05 +0000 Subject: CAST-128 has a maximum of 128bit keys, not 256. --- sbin/isakmpd/ipsec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c index b02ebbab011..f316cdbf47d 100644 --- a/sbin/isakmpd/ipsec.c +++ b/sbin/isakmpd/ipsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec.c,v 1.30 2000/10/16 23:26:33 niklas Exp $ */ +/* $OpenBSD: ipsec.c,v 1.31 2000/11/21 06:44:04 angelos Exp $ */ /* $EOM: ipsec.c,v 1.139 2000/10/16 06:01:34 niklas Exp $ */ /* @@ -1338,7 +1338,7 @@ ipsec_esp_enckeylength (struct proto *proto) return 24; case IPSEC_ESP_CAST: if (!iproto->keylen) - return 32; + return 16; return iproto->keylen / 8; case IPSEC_ESP_AES: if (!iproto->keylen) -- cgit v1.2.3