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
a7b82e00
Commit
a7b82e00
authored
Sep 03, 2000
by
Niels Möller
Browse files
* src/publickey_crypto.h (DSA_MAX_SIZE): New constant.
Rev: src/publickey_crypto.h:1.40
parent
75be34c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/publickey_crypto.h
View file @
a7b82e00
...
...
@@ -62,6 +62,12 @@ make_keypair(UINT32 type,
/* DSA signatures */
/* The stadard says that DSA public keys are at most 1024 bits, i.e.
* 128 octets. We are a little more liberal than that. Note that
* allowing really large keys opens for Denial-of-service attacks. */
#define DSA_MAX_SIZE 300
/* NOTE: These definitions should not really be public. But the
* structures are needed for both plain ssh-dss and spki-style dsa. */
...
...
@@ -113,10 +119,6 @@ struct signer *make_dsa_signer_kludge(struct signer *dsa);
struct
signer
*
make_dsa_signer_classic
(
struct
signer
*
s
);
struct
verifier
*
make_dsa_verifier_classic
(
struct
verifier
*
v
);
struct
signature_algorithm
*
make_rsa_algorithm
(
struct
hash_algorithm
*
hash
,
UINT32
prefix_length
,
const
UINT8
*
prefix
);
/* Groups. For now, assume that all group elements are represented by
* bignums. */
...
...
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