diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2009-10-22 22:26:14 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2009-10-22 22:26:14 +0000 |
commit | 11f0cd45c70de7870c6660666a1b27b5f0a18399 (patch) | |
tree | f4d02e6faf6dbf9bc3806ec8781f9cf27576a256 /usr.bin | |
parent | 96629079d3f1a0da94f72c0045f030432bddc51d (diff) |
switch from 3DES to AES-128 for encryption of passphrase-protected
SSH protocol 2 private keys; ok several
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/authfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/authfile.c b/usr.bin/ssh/authfile.c index c4ba0baa372..fd583de4096 100644 --- a/usr.bin/ssh/authfile.c +++ b/usr.bin/ssh/authfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authfile.c,v 1.76 2006/08/03 03:34:41 deraadt Exp $ */ +/* $OpenBSD: authfile.c,v 1.77 2009/10/22 22:26:13 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -182,7 +182,7 @@ key_save_private_pem(Key *key, const char *filename, const char *_passphrase, int success = 0; int len = strlen(_passphrase); u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL; - const EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL; + const EVP_CIPHER *cipher = (len > 0) ? EVP_aes_128_cbc() : NULL; if (len > 0 && len <= 4) { error("passphrase too short: have %d bytes, need > 4", len); |