Skip to content
Snippets Groups Projects
  1. Feb 18, 2003
  2. Feb 10, 2003
  3. 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
  4. Jan 22, 2003
  5. Jan 17, 2003
  6. 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
  7. Nov 07, 2002
  8. Nov 02, 2002
  9. 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
  10. 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
  11. 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
  12. Oct 28, 2002
  13. Oct 26, 2002
  14. 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
  15. 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
  16. 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
  17. Oct 22, 2002
  18. Oct 21, 2002
  19. Oct 06, 2002
  20. Oct 04, 2002
  21. Oct 02, 2002
Loading