aboutsummaryrefslogtreecommitdiff
path: root/src/pki_crypto.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-11-26 18:00:14 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-30 16:20:04 +0100
commit46d8840f7ea8e0f0569c5a4b9cd4074da8d7973b (patch)
tree51c3dd76169be391f5458d1e40bf39c39f654359 /src/pki_crypto.c
parentc1fdb56d23c4e6ddffc1a621fc08089566b48de5 (diff)
downloadlibssh-46d8840f7ea8e0f0569c5a4b9cd4074da8d7973b.tar.gz
libssh-46d8840f7ea8e0f0569c5a4b9cd4074da8d7973b.tar.xz
libssh-46d8840f7ea8e0f0569c5a4b9cd4074da8d7973b.zip
The largest ECDSA key has 521 bits
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki_crypto.c')
-rw-r--r--src/pki_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index ccd22a13..0c9f8ab4 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -558,7 +558,7 @@ int pki_key_generate_ecdsa(ssh_key key, int parameter) {
case 384:
nid = NID_secp384r1;
break;
- case 512:
+ case 521:
nid = NID_secp521r1;
break;
case 256: