Skip to content

Commit

Permalink
upstream commit
Browse files Browse the repository at this point in the history
Switch from aes256-cbc to aes256-ctr for encrypting
new-style private keys. The latter having the advantage of being supported
for no-OpenSSL builds; bz#2754 ok markus@

Upstream-ID: 54179a2afd28f93470471030567ac40431e56909
  • Loading branch information
djmdjm committed Aug 12, 2017
1 parent c4972d0 commit 0f34553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sshkey.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: sshkey.c,v 1.55 2017/07/19 08:30:41 markus Exp $ */
/* $OpenBSD: sshkey.c,v 1.56 2017/08/12 06:42:52 djm Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Alexander von Gernler. All rights reserved.
Expand Down Expand Up @@ -65,7 +65,7 @@
#define KDFNAME "bcrypt"
#define AUTH_MAGIC "openssh-key-v1"
#define SALT_LEN 16
#define DEFAULT_CIPHERNAME "aes256-cbc"
#define DEFAULT_CIPHERNAME "aes256-ctr"
#define DEFAULT_ROUNDS 16

/* Version identification string for SSH v1 identity files. */
Expand Down

0 comments on commit 0f34553

Please sign in to comment.