1. 27 Aug, 2008 1 commit
  2. 07 Sep, 2005 1 commit
  3. 06 Sep, 2005 1 commit
  4. 20 Oct, 2004 2 commits
  5. 07 Feb, 2004 1 commit
  6. 12 May, 2003 1 commit
    • Niels Möller's avatar
      * Reordered includes in most or all .c-files. All should now include · c5c15385
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.195
      Rev: src/nettle/aes-decrypt-table.c:1.4
      Rev: src/nettle/aes-decrypt.c:1.5
      Rev: src/nettle/aes-encrypt-table.c:1.4
      Rev: src/nettle/aes-encrypt.c:1.5
      Rev: src/nettle/aes-meta.c:1.3
      Rev: src/nettle/aes-set-decrypt-key.c:1.2
      Rev: src/nettle/aes-set-encrypt-key.c:1.2
      Rev: src/nettle/aes.c:1.12
      Rev: src/nettle/aesdata.c:1.2
      Rev: src/nettle/arcfour-meta.c:1.2
      Rev: src/nettle/arcfour.c:1.3
      Rev: src/nettle/base16-decode.c:1.2
      Rev: src/nettle/base16-encode.c:1.2
      Rev: src/nettle/base16-meta.c:1.3
      Rev: src/nettle/base64-decode.c:1.5
      Rev: src/nettle/base64-encode.c:1.3
      Rev: src/nettle/base64-meta.c:1.4
      Rev: src/nettle/bignum-random.c:1.3
      Rev: src/nettle/bignum.c:1.7
      Rev: src/nettle/blowfish.c:1.4
      Rev: src/nettle/buffer-init.c:1.3
      Rev: src/nettle/buffer.c:1.8
      Rev: src/nettle/cast128-meta.c:1.3
      Rev: src/nettle/cast128.c:1.4
      Rev: src/nettle/cbc.c:1.6
      Rev: src/nettle/des-compat.c:1.10
      Rev: src/nettle/des.c:1.7
      Rev: src/nettle/des3.c:1.2
      Rev: src/nettle/dsa-keygen.c:1.6
      Rev: src/nettle/dsa-sign.c:1.7
      Rev: src/nettle/dsa-verify.c:1.4
      Rev: src/nettle/dsa.c:1.5
      Rev: src/nettle/examples/io.c:1.4
      Rev: src/nettle/examples/nettle-benchmark.c:1.8
      Rev: src/nettle/examples/nettle-openssl.c:1.2
      Rev: src/nettle/examples/rsa-keygen.c:1.10
      Rev: src/nettle/examples/rsa-sign.c:1.5
      Rev: src/nettle/examples/rsa-verify.c:1.4
      Rev: src/nettle/hmac-md5.c:1.5
      Rev: src/nettle/hmac-sha1.c:1.2
      Rev: src/nettle/hmac-sha256.c:1.2
      Rev: src/nettle/hmac.c:1.4
      Rev: src/nettle/knuth-lfib.c:1.2
      Rev: src/nettle/md5-compat.c:1.3
      Rev: src/nettle/md5-meta.c:1.2
      Rev: src/nettle/md5.c:1.6
      Rev: src/nettle/memxor.c:1.2
      Rev: src/nettle/nettle-internal.c:1.3
      Rev: src/nettle/pgp-encode.c:1.4
      Rev: src/nettle/pkcs1-rsa-md5.c:1.2
      Rev: src/nettle/pkcs1-rsa-sha1.c:1.2
      Rev: src/nettle/pkcs1.c:1.2
      Rev: src/nettle/realloc.c:1.3
      Rev: src/nettle/rsa-compat.c:1.8
      Rev: src/nettle/rsa-decrypt.c:1.4
      Rev: src/nettle/rsa-encrypt.c:1.5
      Rev: src/nettle/rsa-keygen.c:1.5
      Rev: src/nettle/rsa-md5-sign.c:1.2
      Rev: src/nettle/rsa-md5-verify.c:1.2
      Rev: src/nettle/rsa-sha1-sign.c:1.2
      Rev: src/nettle/rsa-sha1-verify.c:1.2
      Rev: src/nettle/rsa-sign.c:1.3
      Rev: src/nettle/rsa-verify.c:1.2
      Rev: src/nettle/rsa.c:1.12
      Rev: src/nettle/rsa2openpgp.c:1.2
      Rev: src/nettle/rsa2sexp.c:1.7
      Rev: src/nettle/serpent-meta.c:1.2
      Rev: src/nettle/serpent.c:1.4
      Rev: src/nettle/sexp-format.c:1.9
      Rev: src/nettle/sexp-transport-format.c:1.2
      Rev: src/nettle/sexp-transport.c:1.4
      Rev: src/nettle/sexp.c:1.14
      Rev: src/nettle/sexp2bignum.c:1.5
      Rev: src/nettle/sexp2dsa.c:1.4
      Rev: src/nettle/sexp2rsa.c:1.11
      Rev: src/nettle/sha1-meta.c:1.2
      Rev: src/nettle/sha1.c:1.8
      Rev: src/nettle/sha256-meta.c:1.2
      Rev: src/nettle/sha256.c:1.3
      Rev: src/nettle/tools/input.c:1.2
      Rev: src/nettle/tools/misc.c:1.2
      Rev: src/nettle/tools/output.c:1.3
      Rev: src/nettle/tools/parse.c:1.2
      Rev: src/nettle/tools/sexp-conv.c:1.14
      Rev: src/nettle/twofish-meta.c:1.2
      Rev: src/nettle/twofish.c:1.6
      Rev: src/nettle/yarrow256.c:1.17
      Rev: src/nettle/yarrow_key_event.c:1.4
  7. 12 Jan, 2003 7 commits
    • Niels Möller's avatar
      * tools/input.c, tools/input.h, tools/output.c, tools/output.h, · e563d808
      Niels Möller authored
      tools/parse.c, tools/parse.h, tools/misc.c, tools/misc.h: Moved
      parts ov sexp-conv.c to separate files
      Rev: src/nettle/tools/Makefile.am:1.3
      Rev: src/nettle/tools/input.c:1.1
      Rev: src/nettle/tools/input.h:1.1
      Rev: src/nettle/tools/misc.c:1.1
      Rev: src/nettle/tools/misc.h:1.1
      Rev: src/nettle/tools/output.c:1.1
      Rev: src/nettle/tools/output.h:1.1
      Rev: src/nettle/tools/parse.c:1.1
      Rev: src/nettle/tools/parse.h:1.1
      Rev: src/nettle/tools/sexp-conv.c:1.13
    • Niels Möller's avatar
      * tools/sexp-conv.c (sexp_parse): Take a struct sexp_compound_token * · bd7386a1
      Niels Möller authored
      as argument. Updated all callers. Simplified handling of display types
      and transport encoding.
      Rev: src/nettle/tools/sexp-conv.c:1.12
    • Niels Möller's avatar
      * tools/sexp-conv.c (struct sexp_input): Deleted string attribute. · a9495490
      Niels Möller authored
      Changed all related functions to take a struct nettle_buffer *
      argument instead.
      (struct sexp_compound_token): New struct.
      (sexp_compound_token_init, sexp_compound_token_clear): New
      (struct sexp_parser): Added a struct sexp_compound_token
      attribute, as a temporary measure.
      Rev: src/nettle/tools/sexp-conv.c:1.11
    • Niels Möller's avatar
      * tools/sexp-conv.c (struct sexp_parser): Renamed struct (was · b4476c72
      Niels Möller authored
      struct sexp_parse_state). Added input pointer. Updated users to
      not pass around both parser and input.
      (sexp_check_token): handle token == 0.
      (sexp_parse): Simplified a little by calling sexp_check_token
      * tools/sexp-conv.c (sexp_convert_string): Deleted function.
      (sexp_skip_token): Likewise.
      * tools/sexp-conv.c (enum sexp_token): New constant SEXP_DISPLAY.
      Start constants from 1, to keep 0 free for special uses.
      (struct sexp_parse_state): New struct for keeping track of parser
      (sexp_parse_init): New function.
      (sexp_check_token): New function, replacing sexp_skip_token.
      (sexp_parse): New function.
      (sexp_convert_item): Simplified by using sexp_parse.
      (sexp_convert_list): Use sexp_parse.
      (main): Likewise.
      Rev: src/nettle/tools/sexp-conv.c:1.10
    • Niels Möller's avatar
      (struct sexp_parser): Renamed struct (was struct · 0dcdec81
      Niels Möller authored
      sexp_parse_state). Added input pointer. Updated users to not pass
      around both parser and input.
      Rev: src/nettle/tools/sexp-conv.c:1.9
    • Niels Möller's avatar
      * tools/sexp-conv.c (sexp_convert_string): Deleted function. · aed9c008
      Niels Möller authored
      (sexp_skip_token): Likewise.
      * tools/sexp-conv.c (enum sexp_token): New constant SEXP_DISPLAY.
      Start constants from 1, to keep 0 free for special uses.
      (struct sexp_parse_state): New struct for keeping track of parser
      (sexp_parse_init): New function.
      (sexp_check_token): New function, replacing sexp_skip_token.
      (sexp_parse): New function.
      (sexp_convert_item): Simplified by using sexp_parse.
      (sexp_convert_list): Use sexp_parse.
      (main): Likewise.
      Rev: src/nettle/tools/sexp-conv.c:1.8
    • Niels Möller's avatar
      (enum sexp_token): New constant SEXP_DISPLAY. · 4689295c
      Niels Möller authored
      Start constants from 1, to keep 0 free for special uses.
      (struct sexp_parse_state): New struct for keeping track of parser
      (sexp_parse_init): New function.
      (sexp_check_token): New function, replacing sexp_skip_token.
      (sexp_parse): New function.
      (sexp_convert_item): Simplified by using sexp_parse.
      (sexp_convert_list): Use sexp_parse.
      (main): Likewise.
      Rev: src/nettle/tools/sexp-conv.c:1.7
  8. 08 Jan, 2003 1 commit
  9. 01 Jan, 2003 1 commit
  10. 11 Nov, 2002 1 commit
  11. 10 Nov, 2002 2 commits
    • Niels Möller's avatar
      * tools/sexp-conv.c (sexp_get_token_string): Fixed end of file · 35632b67
      Niels Möller authored
      (sexp_get_string): Fixed end of encoding/end of file handling.
      (parse_options): Check for negative width and complain.
      Rev: src/nettle/tools/sexp-conv.c:1.3
    • Niels Möller's avatar
      Use supplied getopt. · e5380bdf
      Niels Möller authored
      (werror): New function.
      (sexp_output_hash_init): New function.
      (sexp_put_char): Made base64 linebreaking configurable.
      Implemented hashing.
      (sexp_put_code_start, sexp_put_code_end): Don't output any
      delimiters here.
      (sexp_put_string): Output base64 delimiters.
      (sexp_put_digest): New function.
      (sexp_convert_item): Output transport delimiters.
      (sexp_convert_file): Deleted function, folded with main.
      (parse_options): New function.
      (main): Implemented --hash and --once, needed by lsh-authorize.
      Rev: src/nettle/tools/sexp-conv.c:1.2
  12. 07 Nov, 2002 1 commit
    • Niels Möller's avatar
      New files. · 3e1ddaff
      Niels Möller authored
      Rev: src/nettle/tools/Makefile.am:1.1
      Rev: src/nettle/tools/getopt.c:1.1
      Rev: src/nettle/tools/getopt.h:1.1
      Rev: src/nettle/tools/getopt1.c:1.1
      Rev: src/nettle/tools/sexp-conv.c:1.1
  13. 31 Oct, 2002 5 commits
    • Niels Möller's avatar
      * examples/sexp-conv.c(sexp_put_list_start): Deleted function. · 869cd834
      Niels Möller authored
      (sexp_put_list_end): Likewise.
      (sexp_put_display_start): Likewise.
      (sexp_put_display_end): Likewise.
      (sexp_puts): Likewise.
      Rev: src/nettle/examples/sexp-conv.c:1.15
    • Niels Möller's avatar
      Some reorder of the functions. · 4b11c57a
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv.c:1.14
    • Niels Möller's avatar
      * examples/sexp-conv.c (sexp_get_quoted_string): Deleted function. · f1c70f33
      Niels Möller authored
      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
    • Niels Möller's avatar
      * examples/sexp-conv.c (enum sexp_char_type): New enum, for end · 21703d22
      Niels Möller authored
      markers in the input strem.
      (struct sexp_input): Deleted LEVEL attribute. Deleted all usage of
      (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
      (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
    • Niels Möller's avatar
      (sexp_get_char): Use the nettle_armor · 648e5a29
      Niels Möller authored
      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
  14. 30 Oct, 2002 1 commit
    • Niels Möller's avatar
      Deleted hex functions, moved to Nettle's · b7b49518
      Niels Möller authored
      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
      (sexp_convert_list): New argument MODE_OUT.
      (sexp_convert_file): Likewise.
      (sexp_convert_item): Likewise. Also handle output in transport
      (match_argument): Simple string comparison.
      (main): Adapted to above changes.
      Rev: src/nettle/examples/sexp-conv.c:1.10
  15. 28 Oct, 2002 1 commit
  16. 26 Oct, 2002 1 commit
  17. 25 Oct, 2002 3 commits
    • Niels Möller's avatar
      (struct sexp_output): Added coding attribute. · 1c8a7192
      Niels Möller authored
      (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
    • Niels Möller's avatar
      (struct sexp_input): Deleted the mode from · 3a69f832
      Niels Möller authored
      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
    • Niels Möller's avatar
      (sexp_put_newline): Return void, die on · 6ef2256c
      Niels Möller authored
      (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
  18. 24 Oct, 2002 1 commit
    • Niels Möller's avatar
      (die): New function. · 4da2bc6a
      Niels Möller authored
      (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
  19. 23 Oct, 2002 1 commit
    • Niels Möller's avatar
      (sexp_input_init): Initialize input->string · 30dca9e6
      Niels Möller authored
      (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
      (sexp_put_char): Fixed off-by-one bug in assertion.
      (sexp_put_string): Fixed escape handling for output of quoted
      (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
      Rev: src/nettle/examples/sexp-conv.c:1.3
  20. 22 Oct, 2002 1 commit
  21. 21 Oct, 2002 1 commit