summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-05 13:29:00 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-05 13:29:00 +0200
commit416900e867ce3bc1bd77d576996b618183533293 (patch)
tree58107ab915ed9878f74779a5d6ed07e991de1d1d
parent92e8d0fde0c62a55ff78275ce74883b61f5a3df2 (diff)
downloadkernel-crypto-416900e867ce3bc1bd77d576996b618183533293.tar.gz
kernel-crypto-416900e867ce3bc1bd77d576996b618183533293.tar.xz
kernel-crypto-416900e867ce3bc1bd77d576996b618183533293.zip
3DES-ECB has also effective key length of 112.
-rw-r--r--ncr-key.c2
1 files changed, 1 insertions, 1 deletions
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;