Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brian Smith
nettle
Commits
d253a68d
Commit
d253a68d
authored
22 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
* dsa.h (struct dsa_private_key): Don't include the public
information here. Rev: src/nettle/dsa.h:1.2
parent
2e8d8764
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dsa.h
+5
-5
5 additions, 5 deletions
dsa.h
with
5 additions
and
5 deletions
dsa.h
+
5
−
5
View file @
d253a68d
...
@@ -52,9 +52,8 @@ struct dsa_public_key
...
@@ -52,9 +52,8 @@ struct dsa_public_key
struct
dsa_private_key
struct
dsa_private_key
{
{
/* Unlike an rsa public key, all the public information is needed,
/* Unlike an rsa public key, private key operations will need both
* in addition to the private information. */
* the private and the public information. */
struct
dsa_public_key
pub
;
mpz_t
x
;
mpz_t
x
;
};
};
...
@@ -114,14 +113,15 @@ void
...
@@ -114,14 +113,15 @@ void
_dsa_hash
(
mpz_t
x
,
struct
sha1_ctx
*
hash
);
_dsa_hash
(
mpz_t
x
,
struct
sha1_ctx
*
hash
);
void
void
dsa_sign
(
struct
dsa_private_key
*
key
,
dsa_sign
(
const
struct
dsa_public_key
*
pub
,
const
struct
dsa_private_key
*
key
,
void
*
random_ctx
,
nettle_random_func
random
,
void
*
random_ctx
,
nettle_random_func
random
,
struct
sha1_ctx
*
hash
,
struct
sha1_ctx
*
hash
,
struct
dsa_signature
*
signature
);
struct
dsa_signature
*
signature
);
int
int
dsa_verify
(
struct
dsa_public_key
*
key
,
dsa_verify
(
const
struct
dsa_public_key
*
key
,
struct
sha1_ctx
*
hash
,
struct
sha1_ctx
*
hash
,
const
struct
dsa_signature
*
signature
);
const
struct
dsa_signature
*
signature
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment