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
7fc02e4a
Commit
7fc02e4a
authored
Oct 09, 2002
by
Niels Möller
Browse files
* dsa.h (DSA_MINIMUM_BITS): New constant.
Rev: src/nettle/dsa.h:1.3
parent
21376b08
Changes
1
Show whitespace changes
Inline
Side-by-side
dsa.h
View file @
7fc02e4a
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
/* For nettle_random_func */
/* For nettle_random_func */
#include
"nettle-meta.h"
#include
"nettle-meta.h"
#define DSA_MINIMUM_BITS 512
struct
dsa_public_key
struct
dsa_public_key
{
{
...
@@ -127,8 +128,6 @@ dsa_verify(const struct dsa_public_key *key,
...
@@ -127,8 +128,6 @@ dsa_verify(const struct dsa_public_key *key,
/* Key generation */
/* Key generation */
#if 0
/* Note that the key structs must be initialized first. */
int
int
dsa_generate_keypair
(
struct
dsa_public_key
*
pub
,
dsa_generate_keypair
(
struct
dsa_public_key
*
pub
,
struct
dsa_private_key
*
key
,
struct
dsa_private_key
*
key
,
...
@@ -136,23 +135,9 @@ dsa_generate_keypair(struct dsa_public_key *pub,
...
@@ -136,23 +135,9 @@ dsa_generate_keypair(struct dsa_public_key *pub,
void
*
random_ctx
,
nettle_random_func
random
,
void
*
random_ctx
,
nettle_random_func
random
,
void
*
progress_ctx
,
nettle_progress_func
progress
,
void
*
progress_ctx
,
nettle_progress_func
progress
,
/* Desired size of modulo, in bits */
/* Size of key, in bits.
unsigned n_size,
* Use size = 512 + 64 * l for the official
* NIS key sizes. */
/* Desired size of public exponent, in bits. If
unsigned
bits
);
* zero, the passed in value pub->e is used. */
unsigned e_size);
#define DSA_SIGN(key, algorithm, ctx, length, data, signature) ( \
algorithm##_update(ctx, length, data), \
dsa_##algorithm##_sign(key, ctx, signature) \
)
#define DSA_VERIFY(key, algorithm, ctx, length, data, signature) ( \
algorithm##_update(ctx, length, data), \
dsa_##algorithm##_verify(key, ctx, signature) \
)
#endif
#endif
/* NETTLE_DSA_H_INCLUDED */
#endif
/* NETTLE_DSA_H_INCLUDED */
Write
Preview
Supports
Markdown
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