Skip to content
Snippets Groups Projects
  1. May 12, 2003
    • Niels Möller's avatar
      * Reordered includes in most or all .c-files. All should now include · c5c15385
      Niels Möller authored
      config.h.
      
      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
      c5c15385
  2. Apr 12, 2003
  3. Mar 02, 2003
  4. Feb 18, 2003
  5. Feb 10, 2003
  6. Jan 27, 2003
    • Niels Möller's avatar
      RSA renaming. Updated all callers. · 8ec793c9
      Niels Möller authored
      * rsa-sign.c (rsa_private_key_init, rsa_private_key_clear)
      (rsa_private_key_prepare): Renamed functions.
      * rsa.c (rsa_public_key_init, rsa_public_key_clear)
      (rsa_public_key_prepare): Renamed functions.
      
      Rev: src/nettle/ChangeLog:1.167
      Rev: src/nettle/examples/rsa-keygen.c:1.8
      Rev: src/nettle/examples/rsa-sign.c:1.4
      Rev: src/nettle/examples/rsa-verify.c:1.3
      Rev: src/nettle/rsa-compat.c:1.7
      Rev: src/nettle/sexp2rsa.c:1.10
      Rev: src/nettle/testsuite/rsa-keygen-test.c:1.5
      Rev: src/nettle/testsuite/rsa-test.c:1.6
      Rev: src/nettle/testsuite/rsa2sexp-test.c:1.5
      Rev: src/nettle/testsuite/sexp2rsa-test.c:1.6
      8ec793c9
  7. Jan 22, 2003
  8. Jan 17, 2003
  9. Nov 08, 2002
    • Niels Möller's avatar
      Moved from the top-level directory. · 235f6868
      Niels Möller authored
      Should *not* be included in the nettle library.
      
      Rev: src/nettle/Makefile.am:1.53
      Rev: src/nettle/examples/Makefile.am:1.14
      Rev: src/nettle/examples/nettle-openssl.c:1.1
      Rev: src/nettle/nettle-openssl.c:1.2(DEAD)
      235f6868
  10. Nov 07, 2002
  11. Nov 02, 2002
  12. Nov 01, 2002
    • Niels Möller's avatar
      * examples/Makefile.am (LDADD): Use -lnettle, instead of an · 618cded4
      Niels Möller authored
      explicit filename libnettle.a, so that we will use the shared
      library, if it exists.
      (AM_LDFLAGS): Added -L.., so we can find -lnettle.
      (run-tests): Set LD_LIBRARY_PATH to ../.lib, when running the
      testsuite.
      * testsuite/Makefile.am: Similar changes.
      
      Rev: src/nettle/examples/Makefile.am:1.10
      Rev: src/nettle/testsuite/Makefile.am:1.28
      618cded4
  13. Oct 31, 2002
    • 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
      869cd834
    • Niels Möller's avatar
      Some reorder of the functions. · 4b11c57a
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv.c:1.14
      4b11c57a
    • 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
      f1c70f33
    • Niels Möller's avatar
      Added test for transport mode input. · bfb06a36
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.6
      bfb06a36
    • 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
      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
      21703d22
    • 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
      648e5a29
  14. Oct 30, 2002
    • Niels Möller's avatar
      New tests for transport output. · a096a2b2
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.5
      a096a2b2
    • 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
      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
      b7b49518
  15. Oct 28, 2002
  16. Oct 26, 2002
  17. Oct 25, 2002
    • 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
      1c8a7192
    • 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
      3a69f832
    • Niels Möller's avatar
      (sexp_put_newline): Return void, die on · 6ef2256c
      Niels Möller authored
      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
      6ef2256c
  18. Oct 24, 2002
    • Niels Möller's avatar
      Doesn't need echo -n anymore. · e264bd2b
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.3
      e264bd2b
    • 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
      4da2bc6a
  19. Oct 23, 2002
    • Niels Möller's avatar
      (TS_PROGS): Added sexp-conv-test. · 98a1d30f
      Niels Möller authored
      Rev: src/nettle/examples/Makefile.am:1.9
      98a1d30f
    • Niels Möller's avatar
      Ignore files matching test*. · fd5dfb2a
      Niels Möller authored
      Rev: src/nettle/examples/.cvsignore:1.5
      fd5dfb2a
    • Niels Möller's avatar
      Better tests. · 3b65d057
      Niels Möller authored
      Rev: src/nettle/examples/sexp-conv-test:1.2
      3b65d057
    • Niels Möller's avatar
      (sexp_input_init): Initialize input->string · 30dca9e6
      Niels Möller authored
      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
      30dca9e6
  20. Oct 22, 2002
  21. Oct 21, 2002
Loading