diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-14 16:31:30 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-14 16:31:30 +0000 |
commit | e53e628b0a6ea4b193057d250ea0cb2dc6524c6e (patch) | |
tree | 5ab987a532492f04306b78544aa162fd93942a50 /sbin | |
parent | 0c69f9745455a92f22ace9773c8b18e7937509a3 (diff) |
fix block length for AES
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/crypto.c b/sbin/iked/crypto.c index 29a0137894b..f66cc77b8dc 100644 --- a/sbin/iked/crypto.c +++ b/sbin/iked/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.1 2010/06/03 16:41:12 reyk Exp $ */ +/* $OpenBSD: crypto.c,v 1.2 2010/06/14 16:31:29 reyk Exp $ */ /* $vantronix: crypto.c,v 1.18 2010/05/28 15:34:35 reyk Exp $ */ /* @@ -258,7 +258,7 @@ cipher_new(u_int8_t type, u_int16_t id, u_int16_t id_length) } if (cipher == NULL) break; - length = id_length / 8; + length = EVP_CIPHER_block_size(cipher); ivlength = EVP_CIPHER_iv_length(cipher); fixedkey = EVP_CIPHER_key_length(cipher); break; |