Przeglądaj źródła

Merge pull request #395 from libtom/feature/private_header

Add a new header file for private functions
Steffen Jaeckel 7 lat temu
rodzic
commit
55fbe256ad
100 zmienionych plików z 208 dodań i 105 usunięć
  1. 1 1
      demos/timing.c
  2. 1 1
      demos/tv_gen.c
  3. 1 2
      doc/Doxyfile
  4. 2 2
      helper.pl
  5. 4 0
      libtomcrypt_VS2008.vcproj
  6. 3 1
      makefile.mingw
  7. 3 1
      makefile.msvc
  8. 5 3
      makefile.unix
  9. 5 3
      makefile_include.mk
  10. 1 1
      src/ciphers/aes/aes.c
  11. 1 1
      src/ciphers/anubis.c
  12. 1 1
      src/ciphers/blowfish.c
  13. 1 1
      src/ciphers/camellia.c
  14. 1 1
      src/ciphers/cast5.c
  15. 1 1
      src/ciphers/des.c
  16. 1 1
      src/ciphers/idea.c
  17. 1 1
      src/ciphers/kasumi.c
  18. 1 1
      src/ciphers/khazad.c
  19. 1 1
      src/ciphers/kseed.c
  20. 1 1
      src/ciphers/multi2.c
  21. 1 1
      src/ciphers/noekeon.c
  22. 1 1
      src/ciphers/rc2.c
  23. 1 1
      src/ciphers/rc5.c
  24. 1 1
      src/ciphers/rc6.c
  25. 1 1
      src/ciphers/safer/safer.c
  26. 1 1
      src/ciphers/safer/saferp.c
  27. 1 1
      src/ciphers/serpent.c
  28. 1 1
      src/ciphers/skipjack.c
  29. 1 1
      src/ciphers/twofish/twofish.c
  30. 1 1
      src/ciphers/xtea.c
  31. 1 1
      src/encauth/ccm/ccm_add_aad.c
  32. 1 1
      src/encauth/ccm/ccm_add_nonce.c
  33. 1 1
      src/encauth/ccm/ccm_done.c
  34. 1 1
      src/encauth/ccm/ccm_init.c
  35. 1 1
      src/encauth/ccm/ccm_memory.c
  36. 1 1
      src/encauth/ccm/ccm_process.c
  37. 1 1
      src/encauth/ccm/ccm_reset.c
  38. 1 1
      src/encauth/ccm/ccm_test.c
  39. 1 1
      src/encauth/chachapoly/chacha20poly1305_add_aad.c
  40. 1 1
      src/encauth/chachapoly/chacha20poly1305_decrypt.c
  41. 1 1
      src/encauth/chachapoly/chacha20poly1305_done.c
  42. 1 1
      src/encauth/chachapoly/chacha20poly1305_encrypt.c
  43. 1 1
      src/encauth/chachapoly/chacha20poly1305_init.c
  44. 1 1
      src/encauth/chachapoly/chacha20poly1305_memory.c
  45. 1 1
      src/encauth/chachapoly/chacha20poly1305_setiv.c
  46. 1 1
      src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c
  47. 1 1
      src/encauth/chachapoly/chacha20poly1305_test.c
  48. 1 1
      src/encauth/eax/eax_addheader.c
  49. 1 1
      src/encauth/eax/eax_decrypt.c
  50. 1 1
      src/encauth/eax/eax_decrypt_verify_memory.c
  51. 1 1
      src/encauth/eax/eax_done.c
  52. 1 1
      src/encauth/eax/eax_encrypt.c
  53. 1 1
      src/encauth/eax/eax_encrypt_authenticate_memory.c
  54. 1 1
      src/encauth/eax/eax_init.c
  55. 1 1
      src/encauth/eax/eax_test.c
  56. 1 1
      src/encauth/gcm/gcm_add_aad.c
  57. 1 1
      src/encauth/gcm/gcm_add_iv.c
  58. 1 1
      src/encauth/gcm/gcm_done.c
  59. 1 1
      src/encauth/gcm/gcm_gf_mult.c
  60. 1 1
      src/encauth/gcm/gcm_init.c
  61. 1 1
      src/encauth/gcm/gcm_memory.c
  62. 1 1
      src/encauth/gcm/gcm_mult_h.c
  63. 1 1
      src/encauth/gcm/gcm_process.c
  64. 1 1
      src/encauth/gcm/gcm_reset.c
  65. 1 1
      src/encauth/gcm/gcm_test.c
  66. 1 1
      src/encauth/ocb/ocb_decrypt.c
  67. 1 1
      src/encauth/ocb/ocb_decrypt_verify_memory.c
  68. 1 1
      src/encauth/ocb/ocb_done_decrypt.c
  69. 1 1
      src/encauth/ocb/ocb_done_encrypt.c
  70. 1 1
      src/encauth/ocb/ocb_encrypt.c
  71. 1 1
      src/encauth/ocb/ocb_encrypt_authenticate_memory.c
  72. 1 1
      src/encauth/ocb/ocb_init.c
  73. 1 1
      src/encauth/ocb/ocb_ntz.c
  74. 1 1
      src/encauth/ocb/ocb_shift_xor.c
  75. 1 1
      src/encauth/ocb/ocb_test.c
  76. 1 1
      src/encauth/ocb/s_ocb_done.c
  77. 1 1
      src/encauth/ocb3/ocb3_add_aad.c
  78. 1 1
      src/encauth/ocb3/ocb3_decrypt.c
  79. 1 1
      src/encauth/ocb3/ocb3_decrypt_last.c
  80. 1 1
      src/encauth/ocb3/ocb3_decrypt_verify_memory.c
  81. 1 1
      src/encauth/ocb3/ocb3_done.c
  82. 1 1
      src/encauth/ocb3/ocb3_encrypt.c
  83. 1 1
      src/encauth/ocb3/ocb3_encrypt_authenticate_memory.c
  84. 1 1
      src/encauth/ocb3/ocb3_encrypt_last.c
  85. 1 1
      src/encauth/ocb3/ocb3_init.c
  86. 1 1
      src/encauth/ocb3/ocb3_int_ntz.c
  87. 1 1
      src/encauth/ocb3/ocb3_int_xor_blocks.c
  88. 1 1
      src/encauth/ocb3/ocb3_test.c
  89. 47 1
      src/hashes/blake2b.c
  90. 47 1
      src/hashes/blake2s.c
  91. 1 1
      src/hashes/chc/chc.c
  92. 1 1
      src/hashes/helper/hash_file.c
  93. 1 1
      src/hashes/helper/hash_filehandle.c
  94. 1 1
      src/hashes/helper/hash_memory.c
  95. 1 1
      src/hashes/helper/hash_memory_multi.c
  96. 1 1
      src/hashes/md2.c
  97. 1 1
      src/hashes/md4.c
  98. 1 1
      src/hashes/md5.c
  99. 1 1
      src/hashes/rmd128.c
  100. 1 1
      src/hashes/rmd160.c

+ 1 - 1
demos/timing.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include <tomcrypt.h>
+#include "tomcrypt_private.h"
 
 #if defined(_WIN32)
    #define PRI64  "I64d"

+ 1 - 1
demos/tv_gen.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include <tomcrypt.h>
+#include "tomcrypt_private.h"
 
 void hash_gen(void)
 {

+ 1 - 2
doc/Doxyfile

@@ -2037,8 +2037,7 @@ INCLUDE_FILE_PATTERNS  =
 # recursively expanded use the := operator instead of the = operator.
 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
 
-PREDEFINED             = LTC_SOURCE \
-                         LTM_DESC \
+PREDEFINED             = LTM_DESC \
                          GMP_DESC \
                          TFM_DESC
 

+ 2 - 2
helper.pl

@@ -291,7 +291,7 @@ sub process_makefiles {
   my @c = ();
   find({ no_chdir => 1, wanted => sub { push @c, $_ if -f $_ && $_ =~ /\.c$/ && $_ !~ /tab.c$/ } }, 'src');
   my @h = ();
-  find({ no_chdir => 1, wanted => sub { push @h, $_ if -f $_ && $_ =~ /\.h$/ && $_ !~ /dh_static.h$/ } }, 'src');
+  find({ no_chdir => 1, wanted => sub { push @h, $_ if -f $_ && $_ =~ /\.h$/ && $_ !~ /dh_static.h$/ && $_ !~ /tomcrypt_private.h$/ } }, 'src');
   my @all = ();
   find({ no_chdir => 1, wanted => sub { push @all, $_ if -f $_ && $_ =~ /\.(c|h)$/  } }, 'src');
   my @t = qw();
@@ -299,7 +299,7 @@ sub process_makefiles {
 
   my @o = sort ('src/ciphers/aes/aes_enc.o', map { my $x = $_; $x =~ s/\.c$/.o/; $x } @c);
   my $var_o = prepare_variable("OBJECTS", @o);
-  my $var_h = prepare_variable("HEADERS", (sort @h));
+  my $var_h = prepare_variable("HEADERS_PUB", (sort @h));
   (my $var_obj = $var_o) =~ s/\.o\b/.obj/sg;
 
   my $var_to = prepare_variable("TOBJECTS", sort map { my $x = $_; $x =~ s/\.c$/.o/; $x } @t);

+ 4 - 0
libtomcrypt_VS2008.vcproj

@@ -1035,6 +1035,10 @@
 				RelativePath="src\headers\tomcrypt_pkcs.h"
 				>
 			</File>
+			<File
+				RelativePath="src\headers\tomcrypt_private.h"
+				>
+			</File>
 			<File
 				RelativePath="src\headers\tomcrypt_prng.h"
 				>

+ 3 - 1
makefile.mingw

@@ -217,12 +217,14 @@ tests/pkcs_1_oaep_test.o tests/pkcs_1_pss_test.o tests/pkcs_1_test.o tests/prng_
 tests/rotate_test.o tests/rsa_test.o tests/store_test.o tests/test.o
 
 #The following headers will be installed by "make install"
-HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
+HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \
 src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \
 src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \
 src/headers/tomcrypt_prng.h
 
+HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h
+
 #The default rule for make builds the libtomcrypt.a library (static)
 default: $(LIBMAIN_S)
 

+ 3 - 1
makefile.msvc

@@ -210,12 +210,14 @@ tests/pkcs_1_oaep_test.obj tests/pkcs_1_pss_test.obj tests/pkcs_1_test.obj tests
 tests/rotate_test.obj tests/rsa_test.obj tests/store_test.obj tests/test.obj
 
 #The following headers will be installed by "make install"
-HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
+HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \
 src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \
 src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \
 src/headers/tomcrypt_prng.h
 
+HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h
+
 #The default rule for make builds the tomcrypt.lib library (static)
 default: $(LIBMAIN_S)
 

+ 5 - 3
makefile.unix

@@ -227,12 +227,14 @@ tests/pkcs_1_oaep_test.o tests/pkcs_1_pss_test.o tests/pkcs_1_test.o tests/prng_
 tests/rotate_test.o tests/rsa_test.o tests/store_test.o tests/test.o
 
 #The following headers will be installed by "make install"
-HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
+HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \
 src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \
 src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \
 src/headers/tomcrypt_prng.h
 
+HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h
+
 #The default rule for make builds the libtomcrypt.a library (static)
 default: $(LIBMAIN_S)
 
@@ -295,10 +297,10 @@ clean:
 	-@rm -f test.exe constants.exe sizes.exe tv_gen.exe hashsum.exe ltcrypt.exe small.exe timing.exe
 
 #Install the library + headers
-install: $(LIBMAIN_S) $(HEADERS)
+install: $(LIBMAIN_S)
 	@mkdir -p $(DESTDIR)$(INCPATH) $(DESTDIR)$(LIBPATH)/pkgconfig
 	@cp $(LIBMAIN_S) $(DESTDIR)$(LIBPATH)/
-	@cp $(HEADERS) $(DESTDIR)$(INCPATH)/
+	@cp $(HEADERS_PUB) $(DESTDIR)$(INCPATH)/
 	@sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(DESTDIR)$(LIBPATH)/pkgconfig/libtomcrypt.pc
 
 #Install useful tools

+ 5 - 3
makefile_include.mk

@@ -387,12 +387,14 @@ tests/pkcs_1_oaep_test.o tests/pkcs_1_pss_test.o tests/pkcs_1_test.o tests/prng_
 tests/rotate_test.o tests/rsa_test.o tests/store_test.o tests/test.o
 
 # The following headers will be installed by "make install"
-HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
+HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \
 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \
 src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \
 src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \
 src/headers/tomcrypt_prng.h
 
+HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h
+
 #These are the rules to make certain object files.
 src/ciphers/aes/aes.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
 src/ciphers/twofish/twofish.o: src/ciphers/twofish/twofish.c src/ciphers/twofish/twofish_tab.c
@@ -436,7 +438,7 @@ INSTALL_OPTS ?= -m 644
 	install -p -d $(DESTDIR)$(INCPATH)
 	install -p -d $(DESTDIR)$(LIBPATH)
 	$(INSTALL_CMD) -p $(INSTALL_OPTS) $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
-	install -p -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
+	install -p -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH)
 
 $(DESTDIR)$(BINPATH):
 	install -p -d $(DESTDIR)$(BINPATH)
@@ -454,7 +456,7 @@ install_test: $(call print-help,install_test,Installs the self-test binary) test
 install_hooks: $(call print-help,install_hooks,Installs the git hooks)
 	for s in `ls hooks/`; do ln -s ../../hooks/$$s .git/hooks/$$s; done
 
-HEADER_FILES=$(notdir $(HEADERS))
+HEADER_FILES=$(notdir $(HEADERS_PUB))
 .common_uninstall:
 	$(UNINSTALL_CMD) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
 	rm $(HEADER_FILES:%=$(DESTDIR)$(INCPATH)/%)

+ 1 - 1
src/ciphers/aes/aes.c

@@ -28,7 +28,7 @@
   Implementation of AES
 */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_RIJNDAEL
 

+ 1 - 1
src/ciphers/anubis.c

@@ -13,7 +13,7 @@
   Authors: Paulo S.L.M. Barreto and Vincent Rijmen.
 */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_ANUBIS
 

+ 1 - 1
src/ciphers/blowfish.c

@@ -10,7 +10,7 @@
   @file blowfish.c
   Implementation of the Blowfish block cipher, Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_BLOWFISH
 

+ 1 - 1
src/ciphers/camellia.c

@@ -12,7 +12,7 @@
   Implementation by Tom St Denis of Elliptic Semiconductor
 */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CAMELLIA
 

+ 1 - 1
src/ciphers/cast5.c

@@ -11,7 +11,7 @@
    @file cast5.c
    Implementation of LTC_CAST5 (RFC 2144) by Tom St Denis
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CAST5
 

+ 1 - 1
src/ciphers/des.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
   @file des.c

+ 1 - 1
src/ciphers/idea.c

@@ -22,7 +22,7 @@
    and Japan (JP 3225440) (expired May 16, 2011).
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_IDEA
 

+ 1 - 1
src/ciphers/kasumi.c

@@ -13,7 +13,7 @@
   Derived from the 3GPP standard source code
 */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_KASUMI
 

+ 1 - 1
src/ciphers/khazad.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
   @file khazad.c

+ 1 - 1
src/ciphers/kseed.c

@@ -13,7 +13,7 @@
   Tom St Denis
 */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_KSEED
 

+ 1 - 1
src/ciphers/multi2.c

@@ -11,7 +11,7 @@
   @file multi2.c
   Multi-2 implementation (not public domain, hence the default disable)
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_MULTI2
 

+ 1 - 1
src/ciphers/noekeon.c

@@ -10,7 +10,7 @@
    @file noekeon.c
    Implementation of the Noekeon block cipher by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_NOEKEON
 

+ 1 - 1
src/ciphers/rc2.c

@@ -16,7 +16,7 @@
 * Thanks to CodeView, SoftIce, and D86 for helping bring this code to  *
 * the public.                                                          *
 \**********************************************************************/
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
   @file rc2.c

+ 1 - 1
src/ciphers/rc5.c

@@ -12,7 +12,7 @@
    LTC_RC5 code by Tom St Denis
 */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_RC5
 

+ 1 - 1
src/ciphers/rc6.c

@@ -11,7 +11,7 @@
    @file rc6.c
    LTC_RC6 code by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_RC6
 

+ 1 - 1
src/ciphers/safer/safer.c

@@ -26,7 +26,7 @@
 *
 *******************************************************************************/
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_SAFER
 

+ 1 - 1
src/ciphers/safer/saferp.c

@@ -11,7 +11,7 @@
    @file saferp.c
    LTC_SAFER+ Implementation by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_SAFERP
 

+ 1 - 1
src/ciphers/serpent.c

@@ -15,7 +15,7 @@
    https://en.wikipedia.org/wiki/Serpent_(cipher)
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_SERPENT
 

+ 1 - 1
src/ciphers/skipjack.c

@@ -11,7 +11,7 @@
   @file skipjack.c
   Skipjack Implementation by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_SKIPJACK
 

+ 1 - 1
src/ciphers/twofish/twofish.c

@@ -11,7 +11,7 @@
    @file twofish.c
    Implementation of Twofish by Tom St Denis
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_TWOFISH
 

+ 1 - 1
src/ciphers/xtea.c

@@ -11,7 +11,7 @@
   @file xtea.c
   Implementation of LTC_XTEA, Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_XTEA
 

+ 1 - 1
src/encauth/ccm/ccm_add_aad.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CCM_MODE
 

+ 1 - 1
src/encauth/ccm/ccm_add_nonce.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CCM_MODE
 

+ 1 - 1
src/encauth/ccm/ccm_done.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CCM_MODE
 

+ 1 - 1
src/encauth/ccm/ccm_init.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CCM_MODE
 

+ 1 - 1
src/encauth/ccm/ccm_memory.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
   @file ccm_memory.c

+ 1 - 1
src/encauth/ccm/ccm_process.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CCM_MODE
 

+ 1 - 1
src/encauth/ccm/ccm_reset.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CCM_MODE
 

+ 1 - 1
src/encauth/ccm/ccm_test.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
   @file ccm_test.c

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_add_aad.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_decrypt.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_done.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_encrypt.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_init.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_memory.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_setiv.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/chachapoly/chacha20poly1305_test.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_CHACHA20POLY1305_MODE
 

+ 1 - 1
src/encauth/eax/eax_addheader.c

@@ -10,7 +10,7 @@
     @file eax_addheader.c
     EAX implementation, add meta-data, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/eax/eax_decrypt.c

@@ -11,7 +11,7 @@
     @file eax_decrypt.c
     EAX implementation, decrypt block, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/eax/eax_decrypt_verify_memory.c

@@ -11,7 +11,7 @@
     @file eax_decrypt_verify_memory.c
     EAX implementation, decrypt block of memory, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/eax/eax_done.c

@@ -11,7 +11,7 @@
    @file eax_done.c
    EAX implementation, terminate session, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/eax/eax_encrypt.c

@@ -11,7 +11,7 @@
    @file eax_encrypt.c
    EAX implementation, encrypt block by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/eax/eax_encrypt_authenticate_memory.c

@@ -11,7 +11,7 @@
   @file eax_encrypt_authenticate_memory.c
   EAX implementation, encrypt a block of memory, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/eax/eax_init.c

@@ -11,7 +11,7 @@
    @file eax_init.c
    EAX implementation, initialized EAX state, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/eax/eax_test.c

@@ -11,7 +11,7 @@
     @file eax_test.c
     EAX implementation, self-test, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_EAX_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_add_aad.c

@@ -11,7 +11,7 @@
    @file gcm_add_aad.c
    GCM implementation, Add AAD data to the stream, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_add_iv.c

@@ -11,7 +11,7 @@
    @file gcm_add_iv.c
    GCM implementation, add IV data to the state, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_done.c

@@ -11,7 +11,7 @@
    @file gcm_done.c
    GCM implementation, Terminate the stream, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_gf_mult.c

@@ -11,7 +11,7 @@
    @file gcm_gf_mult.c
    GCM implementation, do the GF mult, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #if defined(LTC_GCM_TABLES) || defined(LTC_LRW_TABLES) || ((defined(LTC_GCM_MODE) || defined(LTC_GCM_MODE)) && defined(LTC_FAST))
 

+ 1 - 1
src/encauth/gcm/gcm_init.c

@@ -11,7 +11,7 @@
    @file gcm_init.c
    GCM implementation, initialize state, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_memory.c

@@ -11,7 +11,7 @@
    @file gcm_memory.c
    GCM implementation, process a packet, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_mult_h.c

@@ -11,7 +11,7 @@
    @file gcm_mult_h.c
    GCM implementation, do the GF mult, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #if defined(LTC_GCM_MODE)
 /**

+ 1 - 1
src/encauth/gcm/gcm_process.c

@@ -11,7 +11,7 @@
    @file gcm_process.c
    GCM implementation, process message data, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_reset.c

@@ -11,7 +11,7 @@
    @file gcm_reset.c
    GCM implementation, reset a used state so it can accept IV data, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/gcm/gcm_test.c

@@ -11,7 +11,7 @@
    @file gcm_test.c
    GCM implementation, testing, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_GCM_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_decrypt.c

@@ -11,7 +11,7 @@
    @file ocb_decrypt.c
    OCB implementation, decrypt data, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_decrypt_verify_memory.c

@@ -11,7 +11,7 @@
   @file ocb_decrypt_verify_memory.c
   OCB implementation, helper to decrypt block of memory, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_done_decrypt.c

@@ -11,7 +11,7 @@
    @file ocb_done_decrypt.c
    OCB implementation, terminate decryption, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_done_encrypt.c

@@ -11,7 +11,7 @@
    @file ocb_done_encrypt.c
    OCB implementation, terminate encryption, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_encrypt.c

@@ -11,7 +11,7 @@
    @file ocb_encrypt.c
    OCB implementation, encrypt data, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_encrypt_authenticate_memory.c

@@ -11,7 +11,7 @@
   @file ocb_encrypt_authenticate_memory.c
   OCB implementation, encrypt block of memory, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_init.c

@@ -11,7 +11,7 @@
    @file ocb_init.c
    OCB implementation, initialize state, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_ntz.c

@@ -12,7 +12,7 @@
    OCB implementation, internal function, by Tom St Denis
 */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_shift_xor.c

@@ -11,7 +11,7 @@
    @file ocb_shift_xor.c
    OCB implementation, internal function, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/ocb_test.c

@@ -11,7 +11,7 @@
    @file ocb_test.c
    OCB implementation, self-test by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb/s_ocb_done.c

@@ -11,7 +11,7 @@
    @file s_ocb_done.c
    OCB implementation, internal helper, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_add_aad.c

@@ -11,7 +11,7 @@
    @file ocb3_add_aad.c
    OCB implementation, add AAD data, by Karel Miko
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_decrypt.c

@@ -11,7 +11,7 @@
    @file ocb3_decrypt.c
    OCB implementation, decrypt data, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_decrypt_last.c

@@ -11,7 +11,7 @@
    @file ocb3_decrypt_last.c
    OCB implementation, internal helper, by Karel Miko
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_decrypt_verify_memory.c

@@ -11,7 +11,7 @@
   @file ocb3_decrypt_verify_memory.c
   OCB implementation, helper to decrypt block of memory, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_done.c

@@ -11,7 +11,7 @@
    @file ocb3_done.c
    OCB implementation, INTERNAL ONLY helper, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_encrypt.c

@@ -11,7 +11,7 @@
    @file ocb3_encrypt.c
    OCB implementation, encrypt data, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_encrypt_authenticate_memory.c

@@ -11,7 +11,7 @@
   @file ocb3_encrypt_authenticate_memory.c
   OCB implementation, encrypt block of memory, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_encrypt_last.c

@@ -11,7 +11,7 @@
    @file ocb3_encrypt_last.c
    OCB implementation, internal helper, by Karel Miko
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_init.c

@@ -11,7 +11,7 @@
    @file ocb3_init.c
    OCB implementation, initialize state, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_int_ntz.c

@@ -11,7 +11,7 @@
    @file ocb3_int_ntz.c
    OCB implementation, INTERNAL ONLY helper, by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_int_xor_blocks.c

@@ -11,7 +11,7 @@
    @file ocb3_int_xor_blocks.c
    OCB implementation, INTERNAL ONLY helper, by Karel Miko
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 1 - 1
src/encauth/ocb3/ocb3_test.c

@@ -11,7 +11,7 @@
    @file ocb3_test.c
    OCB implementation, self-test by Tom St Denis
 */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_OCB3_MODE
 

+ 47 - 1
src/hashes/blake2b.c

@@ -23,7 +23,7 @@
 */
 /* see also https://www.ietf.org/rfc/rfc7693.txt */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_BLAKE2B
 
@@ -199,6 +199,19 @@ static int blake2b_init_param(hash_state *md, const unsigned char *P)
    return CRYPT_OK;
 }
 
+/**
+   Initialize the hash/MAC state
+
+      Use this function to init for arbitrary sizes.
+
+      Give a key and keylen to init for MAC mode.
+
+   @param md      The hash state you wish to initialize
+   @param outlen  The desired output-length
+   @param key     The key of the MAC
+   @param keylen  The length of the key
+   @return CRYPT_OK if successful
+*/
 int blake2b_init(hash_state *md, unsigned long outlen, const unsigned char *key, unsigned long keylen)
 {
    unsigned char P[BLAKE2B_PARAM_SIZE];
@@ -237,12 +250,32 @@ int blake2b_init(hash_state *md, unsigned long outlen, const unsigned char *key,
    return CRYPT_OK;
 }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2b_160_init(hash_state *md) { return blake2b_init(md, 20, NULL, 0); }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2b_256_init(hash_state *md) { return blake2b_init(md, 32, NULL, 0); }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2b_384_init(hash_state *md) { return blake2b_init(md, 48, NULL, 0); }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2b_512_init(hash_state *md) { return blake2b_init(md, 64, NULL, 0); }
 
 #define G(r, i, a, b, c, d)                                                                                            \
@@ -328,6 +361,13 @@ static int blake2b_compress(hash_state *md, const unsigned char *buf)
 }
 #endif
 
+/**
+   Process a block of memory through the hash
+   @param md     The hash state
+   @param in     The data to hash
+   @param inlen  The length of the data (octets)
+   @return CRYPT_OK if successful
+*/
 int blake2b_process(hash_state *md, const unsigned char *in, unsigned long inlen)
 {
    LTC_ARGCHK(md != NULL);
@@ -360,6 +400,12 @@ int blake2b_process(hash_state *md, const unsigned char *in, unsigned long inlen
    return CRYPT_OK;
 }
 
+/**
+   Terminate the hash to get the digest
+   @param md  The hash state
+   @param out [out] The destination of the hash (size depending on the length used on init)
+   @return CRYPT_OK if successful
+*/
 int blake2b_done(hash_state *md, unsigned char *out)
 {
    unsigned char buffer[BLAKE2B_OUTBYTES] = { 0 };

+ 47 - 1
src/hashes/blake2s.c

@@ -23,7 +23,7 @@
 */
 /* see also https://www.ietf.org/rfc/rfc7693.txt */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_BLAKE2S
 
@@ -193,6 +193,19 @@ static int blake2s_init_param(hash_state *md, const unsigned char *P)
    return CRYPT_OK;
 }
 
+/**
+   Initialize the hash/MAC state
+
+      Use this function to init for arbitrary sizes.
+
+      Give a key and keylen to init for MAC mode.
+
+   @param md      The hash state you wish to initialize
+   @param outlen  The desired output-length
+   @param key     The key of the MAC
+   @param keylen  The length of the key
+   @return CRYPT_OK if successful
+*/
 int blake2s_init(hash_state *md, unsigned long outlen, const unsigned char *key, unsigned long keylen)
 {
    unsigned char P[BLAKE2S_PARAM_SIZE];
@@ -230,12 +243,32 @@ int blake2s_init(hash_state *md, unsigned long outlen, const unsigned char *key,
    return CRYPT_OK;
 }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2s_128_init(hash_state *md) { return blake2s_init(md, 16, NULL, 0); }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2s_160_init(hash_state *md) { return blake2s_init(md, 20, NULL, 0); }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2s_224_init(hash_state *md) { return blake2s_init(md, 28, NULL, 0); }
 
+/**
+   Initialize the hash state
+   @param md   The hash state you wish to initialize
+   @return CRYPT_OK if successful
+*/
 int blake2s_256_init(hash_state *md) { return blake2s_init(md, 32, NULL, 0); }
 
 #define G(r, i, a, b, c, d)                                                                                            \
@@ -316,6 +349,13 @@ static int blake2s_compress(hash_state *md, const unsigned char *buf)
 }
 #endif
 
+/**
+   Process a block of memory through the hash
+   @param md     The hash state
+   @param in     The data to hash
+   @param inlen  The length of the data (octets)
+   @return CRYPT_OK if successful
+*/
 int blake2s_process(hash_state *md, const unsigned char *in, unsigned long inlen)
 {
    LTC_ARGCHK(md != NULL);
@@ -348,6 +388,12 @@ int blake2s_process(hash_state *md, const unsigned char *in, unsigned long inlen
    return CRYPT_OK;
 }
 
+/**
+   Terminate the hash to get the digest
+   @param md  The hash state
+   @param out [out] The destination of the hash (size depending on the length used on init)
+   @return CRYPT_OK if successful
+*/
 int blake2s_done(hash_state *md, unsigned char *out)
 {
    unsigned char buffer[BLAKE2S_OUTBYTES] = { 0 };

+ 1 - 1
src/hashes/chc/chc.c

@@ -7,7 +7,7 @@
  * guarantee it works.
  */
 
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
   @file chc.c

+ 1 - 1
src/hashes/helper/hash_file.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifndef LTC_NO_FILE
 /**

+ 1 - 1
src/hashes/helper/hash_filehandle.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifndef LTC_NO_FILE
 /**

+ 1 - 1
src/hashes/helper/hash_memory.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 #ifdef LTC_HASH_HELPERS
 /**

+ 1 - 1
src/hashes/helper/hash_memory_multi.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 #include <stdarg.h>
 
 #ifdef LTC_HASH_HELPERS

+ 1 - 1
src/hashes/md2.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
    @param md2.c

+ 1 - 1
src/hashes/md4.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
    @param md4.c

+ 1 - 1
src/hashes/md5.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 
 /**

+ 1 - 1
src/hashes/rmd128.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
    @param rmd128.c

+ 1 - 1
src/hashes/rmd160.c

@@ -6,7 +6,7 @@
  * The library is free for all purposes without any express
  * guarantee it works.
  */
-#include "tomcrypt.h"
+#include "tomcrypt_private.h"
 
 /**
    @file rmd160.c

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików