From 416900e867ce3bc1bd77d576996b618183533293 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 5 Sep 2010 13:29:00 +0200 Subject: 3DES-ECB has also effective key length of 112. --- ncr-key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncr-key.c b/ncr-key.c index 406e03299c3..8e082d169a2 100644 --- a/ncr-key.c +++ b/ncr-key.c @@ -558,7 +558,7 @@ int bits; /* FIXME: should we move everything here into algorithm properties? */ if (item->type == NCR_KEY_TYPE_SECRET) { - if (item->algorithm->algo == NCR_ALG_3DES_CBC) + if (item->algorithm->algo == NCR_ALG_3DES_CBC || item->algorithm->algo == NCR_ALG_3DES_ECB) return 112; return item->key.secret.size*8; -- cgit