diff options
Diffstat (limited to 'cipher.c')
-rw-r--r-- | cipher.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cipher.c,v 1.93 2013/12/06 13:34:54 markus Exp $ */ | 1 | /* $OpenBSD: cipher.c,v 1.94 2014/01/25 10:12:50 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -142,6 +142,14 @@ cipher_keylen(const Cipher *c) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | u_int | 144 | u_int |
145 | cipher_seclen(const Cipher *c) | ||
146 | { | ||
147 | if (strcmp("3des-cbc", c->name) == 0) | ||
148 | return 14; | ||
149 | return cipher_keylen(c); | ||
150 | } | ||
151 | |||
152 | u_int | ||
145 | cipher_authlen(const Cipher *c) | 153 | cipher_authlen(const Cipher *c) |
146 | { | 154 | { |
147 | return (c->auth_len); | 155 | return (c->auth_len); |