From: djm Date: Thu, 27 Jul 2023 22:23:05 +0000 (+0000) Subject: increase default KDF work-factor for OpenSSH format private keys from X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=497719333f3c122b464115ffa81a6a8f5cd41340;p=openbsd increase default KDF work-factor for OpenSSH format private keys from 16 to 24; { feedback ok } x { deraadt markus } --- diff --git a/usr.bin/ssh/sshkey.c b/usr.bin/ssh/sshkey.c index 3b07c92de12..ff58b1bd167 100644 --- a/usr.bin/ssh/sshkey.c +++ b/usr.bin/ssh/sshkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.c,v 1.136 2023/06/21 05:10:26 djm Exp $ */ +/* $OpenBSD: sshkey.c,v 1.137 2023/07/27 22:23:05 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. * Copyright (c) 2008 Alexander von Gernler. All rights reserved. @@ -68,7 +68,7 @@ #define AUTH_MAGIC "openssh-key-v1" #define SALT_LEN 16 #define DEFAULT_CIPHERNAME "aes256-ctr" -#define DEFAULT_ROUNDS 16 +#define DEFAULT_ROUNDS 24 /* Version identification string for SSH v1 identity files. */ #define LEGACY_BEGIN "SSH PRIVATE KEY FILE FORMAT 1.1\n"