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
Brian Smith
nettle
Commits
24ca0ff6
Commit
24ca0ff6
authored
Sep 29, 2002
by
Niels Möller
Browse files
(rsa_keypair_to_sexp, rsa_keypair_from_sexp): New
prototypes. Rev: src/nettle/rsa.h:1.12
parent
170803ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
rsa.h
View file @
24ca0ff6
...
...
@@ -213,4 +213,25 @@ rsa_generate_keypair(struct rsa_public_key *pub,
rsa_##algorithm##_verify(key, ctx, signature) \
)
/* Keys in sexp form. */
struct
nettle_buffer
;
/* Generates a public-key expression if PRIV is NULL .*/
int
rsa_keypair_to_sexp
(
struct
nettle_buffer
*
buffer
,
const
struct
rsa_public_key
*
pub
,
const
struct
rsa_private_key
*
priv
);
/* If PRIV is NULL, expect a public-key expression. If PUB is NULL,
* expect a private key expression and ignore the parts not needed for
* the public key. */
/* Keys must be initialized before calling this function, as usual. */
int
rsa_keypair_from_sexp
(
struct
rsa_public_key
*
pub
,
struct
rsa_private_key
*
priv
,
unsigned
length
,
const
uint8_t
*
expr
);
#endif
/* NETTLE_RSA_H_INCLUDED */
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