Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
ed7977cb
Commit
ed7977cb
authored
Jan 23, 2003
by
Niels Möller
Browse files
* dsa.c (_dsa_hash): Deleted function.
Rev: src/nettle/dsa.c:1.4 Rev: src/nettle/dsa.h:1.5
parent
5e6440f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
dsa.c
View file @
ed7977cb
...
...
@@ -79,13 +79,4 @@ dsa_signature_clear(struct dsa_signature *signature)
mpz_clear
(
signature
->
s
);
}
void
_dsa_hash
(
mpz_t
x
,
struct
sha1_ctx
*
hash
)
{
uint8_t
digest
[
SHA1_DIGEST_SIZE
];
sha1_digest
(
hash
,
sizeof
(
digest
),
digest
);
nettle_mpz_set_str_256_u
(
x
,
sizeof
(
digest
),
digest
);
}
#endif
/* WITH_PUBLIC_KEY */
dsa.h
View file @
ed7977cb
...
...
@@ -112,9 +112,6 @@ void
dsa_signature_clear
(
struct
dsa_signature
*
signature
);
void
_dsa_hash
(
mpz_t
x
,
struct
sha1_ctx
*
hash
);
void
dsa_sign
(
const
struct
dsa_public_key
*
pub
,
const
struct
dsa_private_key
*
key
,
...
...
@@ -128,6 +125,18 @@ dsa_verify(const struct dsa_public_key *key,
struct
sha1_ctx
*
hash
,
const
struct
dsa_signature
*
signature
);
void
dsa_sign_digest
(
const
struct
dsa_public_key
*
pub
,
const
struct
dsa_private_key
*
key
,
void
*
random_ctx
,
nettle_random_func
random
,
const
uint8_t
*
digest
,
struct
dsa_signature
*
signature
);
int
dsa_verify_digest
(
const
struct
dsa_public_key
*
key
,
const
uint8_t
*
digest
,
const
struct
dsa_signature
*
signature
);
/* Key generation */
int
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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