]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
23 years ago* examples/sexp-conv.c (sexp_get_quoted_string): Deleted function.
Niels Möller [Thu, 31 Oct 2002 18:17:45 +0000 (19:17 +0100)] 
* examples/sexp-conv.c (sexp_get_quoted_string): Deleted function.
Merged with sexp_get_String.
(sexp_get_hex_string): Likewise.
(sexp_get_base64_string): Likewise.
(sexp_get_string): Do hex and base64 decoding.

Rev: src/nettle/examples/sexp-conv.c:1.13

23 years agoAdded test for transport mode input.
Niels Möller [Thu, 31 Oct 2002 17:58:03 +0000 (18:58 +0100)] 
Added test for transport mode input.

Rev: src/nettle/examples/sexp-conv-test:1.6

23 years ago* examples/sexp-conv.c (enum sexp_char_type): New enum, for end
Niels Möller [Thu, 31 Oct 2002 17:57:47 +0000 (18:57 +0100)] 
* examples/sexp-conv.c (enum sexp_char_type): New enum, for end
markers in the input strem.
(struct sexp_input): Deleted LEVEL attribute. Deleted all usage of
it.
(sexp_get_raw_char): Use INPUT->c and INPUT->ctype to store
results. Deleted OUT argument.
(sexp_get_char): Likewise. Also removed the
INPUT->coding->decode_final call, for symmetry.
(sexp_input_end_coding): Call INPUT->coding->decode_final.
(sexp_next_char): New function.
(sexp_push_char): New function.
(sexp_get_token_char): Deleted function.
(sexp_get_quoted_char): Simplified. Deleted output argument.
(sexp_get_quoted_string): Simplified.
(sexp_get_base64_string): Likewise.
(sexp_get_token_string): Likewise.
(sexp_get_string_length): Skip the character that terminates the
string.
(sexp_get_token): Cleared upp calling conventions. Always consume
the final character of the token.
(sexp_convert_list): Take responsibility for converting the start
and end of the list.
(sexp_convert_file): Call sexp_get_char first, to get the token
reading started.
(sexp_convert_item): Cleared up calling conventions. Should be
called with INPUT->token being the first token of the expression,
and returns with INPUT->token being the final token of the
expression. Return value changed to void..

Rev: src/nettle/examples/sexp-conv.c:1.12

23 years ago(sexp_get_char): Use the nettle_armor
Niels Möller [Thu, 31 Oct 2002 10:42:12 +0000 (11:42 +0100)] 
(sexp_get_char): Use the nettle_armor
interface for decoding.
(sexp_input_start_coding): New function.
(sexp_input_end_coding): New function.
(sexp_get_base64_string): Rewrote to use sexp_input_start_coding
and sexp_input_end_coding.
(sexp_get_token): Generate SEXP_TRANSPORT_START tokens.
(sexp_convert_list): Lists are ended only by SEXP_LIST_END.
(sexp_convert_item): Implemented transport mode, using
sexp_input_start_coding and sexp_input_end_coding.

Rev: src/nettle/examples/sexp-conv.c:1.11

23 years ago*** empty log message ***
Niels Möller [Wed, 30 Oct 2002 22:13:47 +0000 (23:13 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.138

23 years ago* Makefile.am: Added base16 files.
Niels Möller [Wed, 30 Oct 2002 22:13:33 +0000 (23:13 +0100)] 
* Makefile.am: Added base16 files.

Rev: src/nettle/Makefile.am:1.49

23 years agoNew tests for transport output.
Niels Möller [Wed, 30 Oct 2002 22:12:55 +0000 (23:12 +0100)] 
New tests for transport output.

Rev: src/nettle/examples/sexp-conv-test:1.5

23 years agoDeleted hex functions, moved to Nettle's
Niels Möller [Wed, 30 Oct 2002 22:10:52 +0000 (23:10 +0100)] 
Deleted hex functions, moved to Nettle's
base16 files.
(struct sexp_output): Represent the current encoding as a
nettle_armor pointer and a state struct.
(sexp_output_init): Deleted MODE argument. Now passed to functions
that need it.
(sexp_get_char): Updated to new base64 conventions.
(sexp_get_base64_string): Likewise.
(sexp_put_raw_char): New function.
(sexp_put_newline): Use sexp_put_raw_char.
(sexp_put_char): Use nettle_armor interface for encoding data.
Use OUTPUT->coding_indent for line breaking, so the INDENT
argument was deleted.
(sexp_put_code_start): New function, replacing sexp_put_base64_start.
(sexp_put_code_end): New function, replacing sexp_put_base64_end.
(sexp_put_data): Deleted argument INDENT.
(sexp_puts): Likewise.
(sexp_put_length): Likewise.
(sexp_put_list_start): Likewise.
(sexp_put_list_end): Likewise.
(sexp_put_display_start): Likewise.
(sexp_put_display_end): Likewise.
(sexp_put_string): Likewise. Also changed base64 handling.
(sexp_convert_string): Deleted argument INDENT. New argument
MODE_OUT.
(sexp_convert_list): New argument MODE_OUT.
(sexp_convert_file): Likewise.
(sexp_convert_item): Likewise. Also handle output in transport
mode.
(match_argument): Simple string comparison.
(main): Adapted to above changes.

Rev: src/nettle/examples/sexp-conv.c:1.10

23 years ago(test_armor): Allocate a larger buffer
Niels Möller [Wed, 30 Oct 2002 20:59:04 +0000 (21:59 +0100)] 
(test_armor): Allocate a larger buffer
CHECK, to make decode_update happy. Updated to new base64
conventions.

Rev: src/nettle/testsuite/testutils.c:1.18

23 years ago(test_main): Fixed overlap test to not
Niels Möller [Wed, 30 Oct 2002 20:56:05 +0000 (21:56 +0100)] 
(test_main): Fixed overlap test to not
change the base64 before decoding. Updated to new base64
conventions.

Rev: src/nettle/testsuite/base64-test.c:1.4

23 years ago*** empty log message ***
Niels Möller [Wed, 30 Oct 2002 20:55:07 +0000 (21:55 +0100)] 
*** empty log message ***

Rev: src/nettle/testsuite/.cvsignore:1.21

23 years ago* testsuite/Makefile.am (TS_PROGS): Added base16-test.
Niels Möller [Wed, 30 Oct 2002 20:54:59 +0000 (21:54 +0100)] 
* testsuite/Makefile.am (TS_PROGS): Added base16-test.

* testsuite/base16-test.c: New test.

Rev: src/nettle/testsuite/Makefile.am:1.27
Rev: src/nettle/testsuite/base16-test.c:1.1

23 years ago(sexp_transport_iterator_first): Updated to new
Niels Möller [Wed, 30 Oct 2002 20:54:13 +0000 (21:54 +0100)] 
(sexp_transport_iterator_first): Updated to new
conventions for base64_decode_update and base64_decode_final.

Rev: src/nettle/sexp-transport.c:1.2

23 years agoUpdated ascii armor declarations. New declaration
Niels Möller [Wed, 30 Oct 2002 20:50:20 +0000 (21:50 +0100)] 
Updated ascii armor declarations. New declaration
for nettle_base16.

Rev: src/nettle/nettle-meta.h:1.9

23 years ago* base64-decode.c (base64_decode_single): Return -1 on error.
Niels Möller [Wed, 30 Oct 2002 20:48:01 +0000 (21:48 +0100)] 
* base64-decode.c (base64_decode_single): Return -1 on error.
Also keep track of the number of padding characters ('=') seen.
(base64_decode_update): New argument dst_length. Return -1 on error.
(base64_decode_status):  Renamed function...
(base64_decode_final): ... to this.

* base64.h (struct base64_decode_ctx): Deleted STATUS attribute.
Added PADDING attribute.

Rev: src/nettle/base64-decode.c:1.4
Rev: src/nettle/base64.h:1.11

23 years agoNew files.
Niels Möller [Wed, 30 Oct 2002 20:43:29 +0000 (21:43 +0100)] 
New files.

Rev: src/nettle/base16-decode.c:1.1
Rev: src/nettle/base16-encode.c:1.1
Rev: src/nettle/base16-meta.c:1.1
Rev: src/nettle/base16.h:1.1

23 years ago*** empty log message ***
Niels Möller [Mon, 28 Oct 2002 22:07:45 +0000 (23:07 +0100)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.137

23 years ago(struct hex_decode_ctx): New hex decoding
Niels Möller [Mon, 28 Oct 2002 22:07:35 +0000 (23:07 +0100)] 
(struct hex_decode_ctx): New hex decoding
functions.
(sexp_get_raw_char): New function.
(sexp_get_char): Use sexp_get_raw_char.

Rev: src/nettle/examples/sexp-conv.c:1.9

23 years ago*** empty log message ***
Niels Möller [Sat, 26 Oct 2002 21:27:45 +0000 (23:27 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.136

23 years ago(sexp_put_length): Bugfix, don't output any
Niels Möller [Sat, 26 Oct 2002 21:27:29 +0000 (23:27 +0200)] 
(sexp_put_length): Bugfix, don't output any
leading zero.
(main): Implemented -s option.

Rev: src/nettle/examples/sexp-conv.c:1.8

23 years agoTest for echo -n vs echo '\c'. Added a
Niels Möller [Sat, 26 Oct 2002 21:25:14 +0000 (23:25 +0200)] 
Test for echo -n vs echo '\c'. Added a
few tests for canonical output.

Rev: src/nettle/examples/sexp-conv-test:1.4

23 years ago*** empty log message ***
Niels Möller [Fri, 25 Oct 2002 15:17:11 +0000 (17:17 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.135

23 years ago(struct sexp_output): Added coding attribute.
Niels Möller [Fri, 25 Oct 2002 15:17:04 +0000 (17:17 +0200)] 
(struct sexp_output): Added coding attribute.
(sexp_put_char): Use output->coding.
(sexp_put_base64_start): Likewise.
(sexp_put_base64_end): Likewise.

Rev: src/nettle/examples/sexp-conv.c:1.7

23 years ago(struct sexp_input): Deleted the mode from
Niels Möller [Fri, 25 Oct 2002 13:50:20 +0000 (15:50 +0200)] 
(struct sexp_input): Deleted the mode from
the state, that should be passed as argument to relevant
functions. Instead, introduces enum sexp_coding, to say if base64
coding is in effect.

Rev: src/nettle/examples/sexp-conv.c:1.6

23 years ago*** empty log message ***
Niels Möller [Fri, 25 Oct 2002 13:47:39 +0000 (15:47 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.134

23 years ago(base64_decode_single): Simplified, got rid of
Niels Möller [Fri, 25 Oct 2002 13:47:31 +0000 (15:47 +0200)] 
(base64_decode_single): Simplified, got rid of
the done variable.

Rev: src/nettle/base64-decode.c:1.3

23 years ago*** empty log message ***
Niels Möller [Fri, 25 Oct 2002 08:44:26 +0000 (10:44 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.133

23 years ago(sexp_put_newline): Return void, die on
Niels Möller [Fri, 25 Oct 2002 08:44:17 +0000 (10:44 +0200)] 
(sexp_put_newline): Return void, die on
error.
(sexp_put_char, sexp_put_data, sexp_puts, sexp_put_length,
sexp_put_base64_start, sexp_put_base64_end, sexp_put_string,
sexp_put_list_start, sexp_put_list_end, sexp_put_display_start,
sexp_put_display_end, sexp_convert_string, sexp_convert_list,
sexp_skip_token): Likewise.
(sexp_convert_item): Die on error.

Rev: src/nettle/examples/sexp-conv.c:1.5

23 years agoDoesn't need echo -n anymore.
Niels Möller [Thu, 24 Oct 2002 20:09:52 +0000 (22:09 +0200)] 
Doesn't need echo -n anymore.

Rev: src/nettle/examples/sexp-conv-test:1.3

23 years ago(die): New function.
Niels Möller [Thu, 24 Oct 2002 20:09:07 +0000 (22:09 +0200)] 
(die): New function.
(struct sexp_input): Deleted field ITEM.
(sexp_get_char): Die on failure, never return -1.
(sexp_get_quoted_char): Likewise.
(sexp_get_quoted_string): Die on failure, no returned value.
(sexp_get_base64_string): Likewise.
(sexp_get_token_string): Likewise.
(sexp_get_string): Likewise.
(sexp_get_string_length): Likewise.
(sexp_get_token): Likewise.
(sexp_convert_string): Adapted to sexp_get_token.
(sexp_convert_list): Likewise.
(sexp_convert_file): New function.
(main): Use sexp_convert_file.

Rev: src/nettle/examples/sexp-conv.c:1.4

23 years ago*** empty log message ***
Niels Möller [Wed, 23 Oct 2002 21:44:32 +0000 (23:44 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.132

23 years ago(TS_PROGS): Added sexp-conv-test.
Niels Möller [Wed, 23 Oct 2002 20:12:55 +0000 (22:12 +0200)] 
(TS_PROGS): Added sexp-conv-test.

Rev: src/nettle/examples/Makefile.am:1.9

23 years agoIgnore files matching test*.
Niels Möller [Wed, 23 Oct 2002 20:12:08 +0000 (22:12 +0200)] 
Ignore files matching test*.

Rev: src/nettle/examples/.cvsignore:1.5

23 years agoBetter tests.
Niels Möller [Wed, 23 Oct 2002 20:11:53 +0000 (22:11 +0200)] 
Better tests.

Rev: src/nettle/examples/sexp-conv-test:1.2

23 years ago(sexp_input_init): Initialize input->string
Niels Möller [Wed, 23 Oct 2002 20:11:37 +0000 (22:11 +0200)] 
(sexp_input_init): Initialize input->string
properly.
(sexp_get_char): Fixed non-transport case.
(sexp_get_quoted_char): Fixed default case.
(sexp_get_token): Loop over sexp_get_char (needed for handling of
white space). Don't modify input->level. Fixed the code that skips
comments.
(sexp_put_char): Fixed off-by-one bug in assertion.
(sexp_put_string): Fixed escape handling for output of quoted
strings.
(sexp_convert_list): Prettier output, hanging indent after the
first list element.
(sexp_skip_token): New function.
(sexp_convert_item): Use sexp_skip_token to skip the end of a
"[display-type]".

Rev: src/nettle/examples/sexp-conv.c:1.3

23 years ago*** empty log message ***
Niels Möller [Tue, 22 Oct 2002 20:47:20 +0000 (22:47 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.131

23 years ago*** empty log message ***
Niels Möller [Tue, 22 Oct 2002 20:47:10 +0000 (22:47 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.130
Rev: src/nettle/examples/.cvsignore:1.4

23 years agoNew test program.
Niels Möller [Tue, 22 Oct 2002 20:47:04 +0000 (22:47 +0200)] 
New test program.

Rev: src/nettle/examples/sexp-conv-test:1.1

23 years ago(noinst_PROGRAMS): Added sexp-conv.
Niels Möller [Tue, 22 Oct 2002 20:46:37 +0000 (22:46 +0200)] 
(noinst_PROGRAMS): Added sexp-conv.

Rev: src/nettle/examples/Makefile.am:1.8

23 years ago* examples/sexp-conv.c (sexp_convert_list): New function.
Niels Möller [Tue, 22 Oct 2002 20:46:13 +0000 (22:46 +0200)] 
* examples/sexp-conv.c (sexp_convert_list): New function.
(sexp_convert_item): New function.
(main): New function. Compiles and runs now, but doesn't work.

* examples/sexp-conv.c: Added output functions.

Rev: src/nettle/examples/sexp-conv.c:1.2

23 years ago(base64_decode_single): New function.
Niels Möller [Tue, 22 Oct 2002 20:43:57 +0000 (22:43 +0200)] 
(base64_decode_single): New function.
(base64_decode_update): Use base64_decode_single.

Rev: src/nettle/base64-decode.c:1.2
Rev: src/nettle/base64.h:1.10

23 years agoRemoved null statement within variable declarations breaking compilations with gcc...
Pontus Freyhult [Mon, 21 Oct 2002 20:56:00 +0000 (22:56 +0200)] 
Removed null statement within variable declarations breaking compilations with gcc-2.95

Rev: src/nettle/ChangeLog:1.129
Rev: src/nettle/base64-encode.c:1.2

23 years ago*** empty log message ***
Niels Möller [Mon, 21 Oct 2002 19:43:51 +0000 (21:43 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.128

23 years agoNew sexp conversion program.
Niels Möller [Mon, 21 Oct 2002 19:05:17 +0000 (21:05 +0200)] 
New sexp conversion program.

Rev: src/nettle/examples/sexp-conv.c:1.1

23 years ago*** empty log message ***
Niels Möller [Mon, 21 Oct 2002 13:42:25 +0000 (15:42 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.127

23 years ago(libnettle_a_SOURCES): Added
Niels Möller [Mon, 21 Oct 2002 13:42:17 +0000 (15:42 +0200)] 
(libnettle_a_SOURCES): Added
sexp-format-transport.c.

Rev: src/nettle/Makefile.am:1.48

23 years ago* sexp-transport.c (sexp_transport_iterator_first): New file and
Niels Möller [Mon, 21 Oct 2002 13:41:29 +0000 (15:41 +0200)] 
* sexp-transport.c (sexp_transport_iterator_first): New file and
function.
* sexp.h (sexp_transport_iterator_first): Added protoype.

Rev: src/nettle/sexp.h:1.6

23 years ago(sexp_transport_iterator_first): New file and
Niels Möller [Mon, 21 Oct 2002 13:40:37 +0000 (15:40 +0200)] 
(sexp_transport_iterator_first): New file and
function.

Rev: src/nettle/sexp-transport.c:1.1

23 years ago(sexp_iterator_next): Abort if iterator type is boogus.
Niels Möller [Mon, 21 Oct 2002 13:40:08 +0000 (15:40 +0200)] 
(sexp_iterator_next): Abort if iterator type is boogus.

Rev: src/nettle/sexp.c:1.10

23 years ago*** empty log message ***
Niels Möller [Sat, 19 Oct 2002 12:02:54 +0000 (14:02 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.126

23 years ago(test_armor): Updated to new armor
Niels Möller [Sat, 19 Oct 2002 11:42:54 +0000 (13:42 +0200)] 
(test_armor): Updated to new armor
conventions.

Rev: src/nettle/testsuite/testutils.c:1.17

23 years ago(test_main): Test BASE64_ENCODE_LENGTH
Niels Möller [Sat, 19 Oct 2002 11:42:34 +0000 (13:42 +0200)] 
(test_main): Test BASE64_ENCODE_LENGTH
and BASE64_DECODE_LENGTH. Updated test of base64_encode_raw (used
to be base64_encode).

Rev: src/nettle/testsuite/base64-test.c:1.3

23 years ago* base64.h (BASE64_ENCODE_LENGTH, BASE64_DECODE_LENGTH): Fixed and
Niels Möller [Sat, 19 Oct 2002 11:41:22 +0000 (13:41 +0200)] 
* base64.h (BASE64_ENCODE_LENGTH, BASE64_DECODE_LENGTH): Fixed and
documented macros.

Rev: src/nettle/base64.h:1.9

23 years ago(base64_encode_length, base64_decode_length): New
Niels Möller [Sat, 19 Oct 2002 10:49:58 +0000 (12:49 +0200)] 
(base64_encode_length, base64_decode_length): New
functions, corresponding to the macros with the same name.

Rev: src/nettle/base64-meta.c:1.3

23 years ago(libnettle_a_SOURCES): base64.c replaced by
Niels Möller [Sat, 19 Oct 2002 10:49:13 +0000 (12:49 +0200)] 
(libnettle_a_SOURCES): base64.c replaced by
base64-encode.c and base64-decode.c.

Rev: src/nettle/Makefile.am:1.47

23 years ago(pgp_armor): Use new base64 conventions.
Niels Möller [Sat, 19 Oct 2002 10:48:14 +0000 (12:48 +0200)] 
(pgp_armor): Use new base64 conventions.

Rev: src/nettle/pgp-encode.c:1.2

23 years agoUpdated nettle_armor definitions.
Niels Möller [Sat, 19 Oct 2002 10:47:23 +0000 (12:47 +0200)] 
Updated nettle_armor definitions.

Rev: src/nettle/nettle-meta.h:1.8

23 years agoMajor reorganization.
Niels Möller [Sat, 19 Oct 2002 10:46:31 +0000 (12:46 +0200)] 
Major reorganization.

Rev: src/nettle/base64.h:1.8

23 years agoDeleted file, contents moved to base64-encode.c or
Niels Möller [Sat, 19 Oct 2002 10:42:55 +0000 (12:42 +0200)] 
Deleted file, contents moved to base64-encode.c or
base64-decode.c.

Rev: src/nettle/base64.c:1.6(DEAD)

23 years ago* base64-encode.c: New file. New supporting both encode-at-once
Niels Möller [Sat, 19 Oct 2002 10:40:11 +0000 (12:40 +0200)] 
* base64-encode.c: New file. New supporting both encode-at-once
and streamed operation.

* base64-decode.c: New file.

Rev: src/nettle/base64-decode.c:1.1
Rev: src/nettle/base64-encode.c:1.1

23 years ago*** empty log message ***
Niels Möller [Wed, 9 Oct 2002 21:26:01 +0000 (23:26 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.125

23 years ago* testsuite/Makefile.am (TS_PROGS): Added dsa-keygen-test.
Niels Möller [Wed, 9 Oct 2002 21:25:54 +0000 (23:25 +0200)] 
* testsuite/Makefile.am (TS_PROGS): Added dsa-keygen-test.

Rev: src/nettle/testsuite/Makefile.am:1.26

23 years ago* dsa-keygen.c: Call the progress callback only if it's non-NULL.
Niels Möller [Wed, 9 Oct 2002 21:25:24 +0000 (23:25 +0200)] 
* dsa-keygen.c: Call the progress callback only if it's non-NULL.

Rev: src/nettle/dsa-keygen.c:1.2

23 years ago*** empty log message ***
Niels Möller [Wed, 9 Oct 2002 21:17:08 +0000 (23:17 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.124
Rev: src/nettle/testsuite/.cvsignore:1.20

23 years ago* Makefile.am (libnettle_a_SOURCES): Added bignum-random.c and
Niels Möller [Wed, 9 Oct 2002 21:16:58 +0000 (23:16 +0200)] 
* Makefile.am (libnettle_a_SOURCES): Added bignum-random.c and
dsa-keygen.c.

Rev: src/nettle/Makefile.am:1.46

23 years ago* testsuite/testutils.c (test_dsa_key): New function to sanity
Niels Möller [Wed, 9 Oct 2002 21:16:10 +0000 (23:16 +0200)] 
* testsuite/testutils.c (test_dsa_key): New function to sanity
check a dsa keypair.

Rev: src/nettle/testsuite/testutils.c:1.16
Rev: src/nettle/testsuite/testutils.h:1.14

23 years ago* testsuite/dsa-test.c (test_main): Call dsa_test_key.
Niels Möller [Wed, 9 Oct 2002 21:15:28 +0000 (23:15 +0200)] 
* testsuite/dsa-test.c (test_main): Call dsa_test_key.

Rev: src/nettle/testsuite/dsa-test.c:1.3

23 years agoNew test case.
Niels Möller [Wed, 9 Oct 2002 21:14:31 +0000 (23:14 +0200)] 
New test case.

Rev: src/nettle/testsuite/dsa-keygen-test.c:1.1

23 years ago* dsa.h (DSA_MINIMUM_BITS): New constant.
Niels Möller [Wed, 9 Oct 2002 21:13:59 +0000 (23:13 +0200)] 
* dsa.h (DSA_MINIMUM_BITS): New constant.

Rev: src/nettle/dsa.h:1.3

23 years ago* bignum-random.c: New file.
Niels Möller [Wed, 9 Oct 2002 21:13:28 +0000 (23:13 +0200)] 
* bignum-random.c: New file.
(nettle_mpz_random): New function, moved from...
* dsa-sign.c (nettle_mpz_random): ... here. Also changed argument
ordering and updated callers.

Rev: src/nettle/dsa-sign.c:1.4

23 years ago(nettle_mpz_random, nettle_mpz_random_size): Added
Niels Möller [Wed, 9 Oct 2002 21:11:12 +0000 (23:11 +0200)] 
(nettle_mpz_random, nettle_mpz_random_size): Added
prototypes.

Rev: src/nettle/bignum.h:1.4

23 years agoNew file.
Niels Möller [Wed, 9 Oct 2002 21:10:46 +0000 (23:10 +0200)] 
New file.

Rev: src/nettle/dsa-keygen.c:1.1

23 years ago* bignum-random.c: New file.
Niels Möller [Wed, 9 Oct 2002 21:10:27 +0000 (23:10 +0200)] 
* bignum-random.c: New file.
(nettle_mpz_random): New function.
(nettle_mpz_random_size): New function, renamed and moved here
from...
* rsa-keygen.c (bignum_random_size): ... here. Updated all
callers.

Rev: src/nettle/bignum-random.c:1.1
Rev: src/nettle/rsa-keygen.c:1.4

23 years ago*** empty log message ***
Niels Möller [Wed, 9 Oct 2002 19:34:53 +0000 (21:34 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.123

23 years ago* testsuite/testutils.c (test_dsa): Needs both public and private
Niels Möller [Wed, 9 Oct 2002 19:34:36 +0000 (21:34 +0200)] 
* testsuite/testutils.c (test_dsa): Needs both public and private
key as arguments.

Rev: src/nettle/testsuite/testutils.c:1.15
Rev: src/nettle/testsuite/testutils.h:1.13

23 years ago* testsuite/dsa-test.c (test_main): Updated to changes of the
Niels Möller [Wed, 9 Oct 2002 19:33:57 +0000 (21:33 +0200)] 
* testsuite/dsa-test.c (test_main): Updated to changes of the
private key struct.

Rev: src/nettle/testsuite/dsa-test.c:1.2

23 years ago(TS_PROGS): Added dsa-test.
Niels Möller [Wed, 9 Oct 2002 19:33:25 +0000 (21:33 +0200)] 
(TS_PROGS): Added dsa-test.

Rev: src/nettle/testsuite/Makefile.am:1.25

23 years ago* rsa-decrypt.c (rsa_decrypt): Constification.
Niels Möller [Wed, 9 Oct 2002 19:32:44 +0000 (21:32 +0200)] 
* rsa-decrypt.c (rsa_decrypt): Constification.
* rsa-encrypt.c (rsa_encrypt): Likewise.
* rsa.c (rsa_compute_root): Likewise.
* rsa_md5.c (rsa_md5_sign): Likewise.
(rsa_md5_verify): Likewise.
* rsa_sha1.c (rsa_sha1_sign): Likewise.
(rsa_sha1_verify): Likewise.

Rev: src/nettle/rsa-decrypt.c:1.2
Rev: src/nettle/rsa-encrypt.c:1.2
Rev: src/nettle/rsa.c:1.9
Rev: src/nettle/rsa.h:1.15
Rev: src/nettle/rsa_md5.c:1.6
Rev: src/nettle/rsa_sha1.c:1.6

23 years ago* dsa-verify.c (dsa_verify): Use const for the public key
Niels Möller [Wed, 9 Oct 2002 19:30:13 +0000 (21:30 +0200)] 
* dsa-verify.c (dsa_verify): Use const for the public key
argument.

Rev: src/nettle/dsa-verify.c:1.2

23 years ago* dsa-sign.c (dsa_sign): Needs the public key as argument, in
Niels Möller [Wed, 9 Oct 2002 19:29:34 +0000 (21:29 +0200)] 
* dsa-sign.c (dsa_sign): Needs the public key as argument, in
addition to the private key. Use const.

Rev: src/nettle/dsa-sign.c:1.3

23 years ago* dsa.h (struct dsa_private_key): Don't include the public
Niels Möller [Wed, 9 Oct 2002 19:28:56 +0000 (21:28 +0200)] 
* dsa.h (struct dsa_private_key): Don't include the public
information here.
* dsa.c (dsa_private_key_init, dsa_private_key_clear): Updated to
new struct dsa_private_key.

* dsa.h, dsa.c, dsa-sign.c, dsa-verify.c: New files.

Rev: src/nettle/dsa.c:1.2

23 years ago* dsa.h (struct dsa_private_key): Don't include the public
Niels Möller [Wed, 9 Oct 2002 19:27:56 +0000 (21:27 +0200)] 
* dsa.h (struct dsa_private_key): Don't include the public
information here.

Rev: src/nettle/dsa.h:1.2

23 years ago* dsa-sign.c (dsa_sign): Bugfix, added missing mpz_init call.
Niels Möller [Wed, 9 Oct 2002 18:31:04 +0000 (20:31 +0200)] 
* dsa-sign.c (dsa_sign): Bugfix, added missing mpz_init call.

Rev: src/nettle/dsa-sign.c:1.2

23 years ago*** empty log message ***
Niels Möller [Wed, 9 Oct 2002 07:38:34 +0000 (09:38 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.122
Rev: src/nettle/testsuite/.cvsignore:1.19

23 years ago(libnettle_a_SOURCES): Added dsa files.
Niels Möller [Wed, 9 Oct 2002 07:38:25 +0000 (09:38 +0200)] 
(libnettle_a_SOURCES): Added dsa files.
(libnettleinclude_HEADERS): Added dsa.h.

Rev: src/nettle/Makefile.am:1.45

23 years ago(test_dsa): New function.
Niels Möller [Wed, 9 Oct 2002 07:37:35 +0000 (09:37 +0200)] 
(test_dsa): New function.

Rev: src/nettle/testsuite/testutils.c:1.14
Rev: src/nettle/testsuite/testutils.h:1.12

23 years agoNew test.
Niels Möller [Wed, 9 Oct 2002 07:36:35 +0000 (09:36 +0200)] 
New test.

Rev: src/nettle/testsuite/dsa-test.c:1.1

23 years agoNew files.
Niels Möller [Wed, 9 Oct 2002 07:36:07 +0000 (09:36 +0200)] 
New files.

Rev: src/nettle/dsa-sign.c:1.1
Rev: src/nettle/dsa-verify.c:1.1
Rev: src/nettle/dsa.c:1.1
Rev: src/nettle/dsa.h:1.1

23 years ago* nettle-meta.h: Moved the nettle_random_func and
Niels Möller [Wed, 9 Oct 2002 07:34:57 +0000 (09:34 +0200)] 
* nettle-meta.h: Moved the nettle_random_func and
nettle_progress_func typedefs here...
* rsa.h: ... from here.

Rev: src/nettle/nettle-meta.h:1.7
Rev: src/nettle/rsa.h:1.14

23 years ago*** empty log message ***
Niels Möller [Tue, 8 Oct 2002 07:38:25 +0000 (09:38 +0200)] 
*** empty log message ***

Rev: src/nettle/ChangeLog:1.121

23 years ago(enum sexp_type): Deleted SEXP_START.
Niels Möller [Sun, 6 Oct 2002 22:05:06 +0000 (00:05 +0200)] 
(enum sexp_type): Deleted SEXP_START.

Rev: src/nettle/sexp.h:1.5

23 years ago(sexp_iterator_parse): New function, similar to the old
Niels Möller [Sun, 6 Oct 2002 22:04:21 +0000 (00:04 +0200)] 
(sexp_iterator_parse): New function, similar to the old
sexp_iterator_next, but independent of the previous value of the
iterator->type.
(sexp_iterator_first): Use sexp_iterator_parse.
(sexp_iterator_next): Likewise.
(sexp_iterator_enter_list): Use sexp_iterator_parse. SEXP_START
not needed anymore.
(sexp_iterator_exit_list): Likewise.

Rev: src/nettle/sexp.c:1.9

23 years ago* sexp.c (sexp_iterator_assoc): Advance the iterator to the
Niels Möller [Sun, 6 Oct 2002 21:25:32 +0000 (23:25 +0200)] 
* sexp.c (sexp_iterator_assoc): Advance the iterator to the
element after a matching tag, before recording it.
* testsuite/sexp-test.c (test_main): Updated test.

Rev: src/nettle/testsuite/sexp-test.c:1.8

23 years ago* sexp2rsa.c (get_value): No need to call sexp_iterator_next
Niels Möller [Sun, 6 Oct 2002 21:24:57 +0000 (23:24 +0200)] 
* sexp2rsa.c (get_value): No need to call sexp_iterator_next
anymore.

Rev: src/nettle/sexp2rsa.c:1.6

23 years ago* sexp.c (sexp_iterator_assoc): Advance the iterator to the
Niels Möller [Sun, 6 Oct 2002 21:24:31 +0000 (23:24 +0200)] 
* sexp.c (sexp_iterator_assoc): Advance the iterator to the
element after a matching tag, before recording it.

Rev: src/nettle/sexp.c:1.8

23 years ago* testsuite/sexp-test.c (test_main): No need to call
Niels Möller [Sun, 6 Oct 2002 21:14:34 +0000 (23:14 +0200)] 
* testsuite/sexp-test.c (test_main): No need to call
sexp_iterator_next after sexp_iterator_exit_list.

Rev: src/nettle/testsuite/sexp-test.c:1.7

23 years ago* sexp2rsa.c (rsa_keypair_from_sexp): No need to call
Niels Möller [Sun, 6 Oct 2002 21:13:41 +0000 (23:13 +0200)] 
* sexp2rsa.c (rsa_keypair_from_sexp): No need to call
sexp_iterator_next anymore.

* sexp2rsa.c (rsa_keypair_from_sexp): Use sexp_iterator_first.
* testsuite/sexp-test.c (test_main): Likewise.

Rev: src/nettle/sexp2rsa.c:1.5

23 years ago* sexp.c (sexp_iterator_next): Updated to new sexp_iterator_exit_list.
Niels Möller [Sun, 6 Oct 2002 21:11:33 +0000 (23:11 +0200)] 
* sexp.c (sexp_iterator_next): Updated to new sexp_iterator_exit_list.
(sexp_iterator_exit_list): Return with iterator pointing to the
element after the list.
(sexp_iterator_check_type): Call sexp_iterator_next before
returning.
(sexp_iterator_check_types): Likewise.
(sexp_iterator_assoc): Rearranged calls of sexp_iterator_next.

Rev: src/nettle/sexp.c:1.7

23 years ago* sexp.c (sexp_iterator_enter_list): Call sexp_iterator_next to
Niels Möller [Sun, 6 Oct 2002 20:17:35 +0000 (22:17 +0200)] 
* sexp.c (sexp_iterator_enter_list): Call sexp_iterator_next to
get to the first element of the list. Updated callers.

Rev: src/nettle/sexp.c:1.6
Rev: src/nettle/testsuite/sexp-test.c:1.6

23 years ago(base64_encode_group): New function, used by openpgp
Niels Möller [Sun, 6 Oct 2002 19:15:20 +0000 (21:15 +0200)] 
(base64_encode_group): New function, used by openpgp
armoring code.

Rev: src/nettle/base64.c:1.5
Rev: src/nettle/base64.h:1.7