Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
43a9a2b2
Commit
43a9a2b2
authored
Jan 14, 2002
by
Niels Möller
Browse files
(rsa_generate_key): Renamed key type to
"rsa-pkcs1". Rev: src/rsa_keygen.c:1.8
parent
96149950
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rsa_keygen.c
View file @
43a9a2b2
/* rsa_keygen.c
*
* Generate rsa key pairs.
.
* Generate rsa key pairs.
*
* $Id$
*/
...
...
@@ -24,12 +24,14 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "
rsa
.h"
#include "
publickey_crypto
.h"
#include "randomness.h"
#include "sexp.h"
#include "werror.h"
#include "nettle/rsa.h"
#include <assert.h>
#define SA(x) sexp_a(ATOM_##x)
...
...
@@ -113,7 +115,7 @@ rsa_generate_key(mpz_t e, struct randomness *r, UINT32 bits)
/* FIXME: Add sanity checking */
key
=
sexp_l
(
2
,
SA
(
PRIVATE_KEY
),
sexp_l
(
9
,
SA
(
RSA_PKCS1
_SHA1
),
sexp_l
(
9
,
SA
(
RSA_PKCS1
),
sexp_l
(
2
,
SA
(
N
),
sexp_un
(
n
),
-
1
),
sexp_l
(
2
,
SA
(
E
),
sexp_un
(
e
),
-
1
),
sexp_l
(
2
,
SA
(
D
),
sexp_un
(
d
),
-
1
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment