diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 18:52:27 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 18:52:27 +1100 |
commit | 57e0d01260d3c1c7bf9366eed58c54a96eedbc81 (patch) | |
tree | a8f3fa6e4f17d77c22ab8b06131a923f7dc2e86d /key.c | |
parent | b5082e90a13c9c9f96f1aed894f70f6f00737396 (diff) |
- markus@cvs.openbsd.org 2009/12/11 18:16:33
[key.c]
switch from 35 to the more common value of RSA_F4 == (2**16)+1 == 65537
for the RSA public exponent; discussed with provos; ok djm@
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.c,v 1.80 2008/10/10 05:00:12 stevesk Exp $ */ | 1 | /* $OpenBSD: key.c,v 1.81 2009/12/11 18:16:33 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * read_bignum(): | 3 | * read_bignum(): |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -685,7 +685,7 @@ rsa_generate_private_key(u_int bits) | |||
685 | { | 685 | { |
686 | RSA *private; | 686 | RSA *private; |
687 | 687 | ||
688 | private = RSA_generate_key(bits, 35, NULL, NULL); | 688 | private = RSA_generate_key(bits, RSA_F4, NULL, NULL); |
689 | if (private == NULL) | 689 | if (private == NULL) |
690 | fatal("rsa_generate_private_key: key generation failed."); | 690 | fatal("rsa_generate_private_key: key generation failed."); |
691 | return private; | 691 | return private; |