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
f753d115
Commit
f753d115
authored
Oct 18, 2000
by
Niels Möller
Browse files
*** empty log message ***
Rev: ChangeLog:1.258 Rev: NEWS:1.63 Rev: doc/TODO:1.93 Rev: src/dsa_keygen.c:1.14
parent
1c59c3c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
f753d115
2000-10-18 Niels Mller <nisse@cuckoo.localdomain>
* src/abstract_crypto.h, src/dsa.c, src/dsa.h, src/rsa.c: Cleanup.
* src/sexp-conv.c: #include spki_commands.h
* src/spki_commands.c (spki_signer2verifier,
spki_verifier2public): New commands, that replace the old
spki_signer2public.
* src/lsh-writekey.c (make_writekey): Use verifier2public and
signer2verifier.
* src/spki.c, src/spki_commands.c: Moved definitions of commands
out of spki.c.
2000-10-17 Niels Mller <nisse@cuckoo.localdomain>
2000-10-17 Niels Mller <nisse@cuckoo.localdomain>
* src/spki.c (spki_make_public_key): Take a verifier as argument.
* src/spki.c (spki_make_public_key): Take a verifier as argument.
...
...
NEWS
View file @
f753d115
News for the 1.1.0 release:
First, note that the 1.1.x series should be considered
experimental.
New program lsh-export-key (contributed by jps, and then
hacked some more by me).
Some of the methods for public-key operations have been
improved and generalized.
News for the 1.0.6 release
News for the 1.0.6 release
Fixed bug in ssh-dss bug-compatibility.
Fixed bug in ssh-dss bug-compatibility.
...
...
doc/TODO
View file @
f753d115
...
@@ -248,3 +248,8 @@ Replace most defines with enums, for improved type checking.
...
@@ -248,3 +248,8 @@ Replace most defines with enums, for improved type checking.
Write more testcases for rsa.
Write more testcases for rsa.
Perhaps change the LOOKUP_VERIFIER method to return an spki_subject?
Perhaps change the LOOKUP_VERIFIER method to return an spki_subject?
Change the COMMAND_SIMPLE and COMMAND_STATIC macros to take argument
names as arguments, making them more hygienig. Perhaps also rename
them in the process.
src/dsa_keygen.c
View file @
f753d115
...
@@ -45,7 +45,8 @@
...
@@ -45,7 +45,8 @@
#define SEED_LENGTH SHA_DIGESTSIZE
#define SEED_LENGTH SHA_DIGESTSIZE
#define SEED_BITS (SEED_LENGTH * 8)
#define SEED_BITS (SEED_LENGTH * 8)
static
void
hash
(
mpz_t
x
,
UINT8
*
digest
)
static
void
hash
(
mpz_t
x
,
UINT8
*
digest
)
{
{
mpz_t
t
;
mpz_t
t
;
UINT8
data
[
SEED_LENGTH
];
UINT8
data
[
SEED_LENGTH
];
...
@@ -63,7 +64,8 @@ static void hash(mpz_t x, UINT8 *digest)
...
@@ -63,7 +64,8 @@ static void hash(mpz_t x, UINT8 *digest)
sha_digest
(
&
ctx
,
digest
);
sha_digest
(
&
ctx
,
digest
);
}
}
void
dsa_nist_gen
(
mpz_t
p
,
mpz_t
q
,
struct
randomness
*
r
,
unsigned
l
)
void
dsa_nist_gen
(
mpz_t
p
,
mpz_t
q
,
struct
randomness
*
r
,
unsigned
l
)
{
{
unsigned
L
;
unsigned
L
;
unsigned
n
,
b
;
unsigned
n
,
b
;
...
@@ -151,7 +153,8 @@ void dsa_nist_gen(mpz_t p, mpz_t q, struct randomness *r, unsigned l)
...
@@ -151,7 +153,8 @@ void dsa_nist_gen(mpz_t p, mpz_t q, struct randomness *r, unsigned l)
}
}
}
}
void
dsa_find_generator
(
mpz_t
g
,
struct
randomness
*
r
,
mpz_t
p
,
mpz_t
q
)
void
dsa_find_generator
(
mpz_t
g
,
struct
randomness
*
r
,
mpz_t
p
,
mpz_t
q
)
{
{
mpz_t
e
;
mpz_t
e
;
mpz_t
n
;
mpz_t
n
;
...
...
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