Browse Source

Merge pull request #233 from libtom/cleanup/2

Second general clean-up
Steffen Jaeckel 8 years ago
parent
commit
c14bcf4d30
100 changed files with 409 additions and 418 deletions
  1. 3 3
      build.sh
  2. 3 3
      check_source.sh
  3. 3 3
      coverage.sh
  4. 3 3
      coverage_more.sh
  5. 3 5
      demos/constants.c
  6. 12 3
      demos/hashsum.c
  7. 12 3
      demos/ltcrypt.c
  8. 13 0
      demos/openssl-enc.c
  9. 3 6
      demos/sizes.c
  10. 11 3
      demos/small.c
  11. 11 3
      demos/timing.c
  12. 11 3
      demos/tv_gen.c
  13. 5 5
      doc/crypt.tex
  14. 3 3
      doc/footer.html
  15. 3 3
      doc/header.html
  16. 1 1
      helper.pl
  17. 1 1
      makefile
  18. 13 13
      makefile.mingw
  19. 11 11
      makefile.msvc
  20. 5 5
      makefile.shared
  21. 15 10
      makefile.unix
  22. 13 11
      makefile_include.mk
  23. 3 3
      notes/etc/saferp_optimizer.c
  24. 3 3
      notes/etc/whirlgen.c
  25. 3 3
      notes/etc/whirltest.c
  26. 3 3
      run.sh
  27. 3 5
      src/ciphers/aes/aes.c
  28. 3 5
      src/ciphers/aes/aes_tab.c
  29. 3 5
      src/ciphers/anubis.c
  30. 3 5
      src/ciphers/blowfish.c
  31. 3 5
      src/ciphers/camellia.c
  32. 3 5
      src/ciphers/cast5.c
  33. 3 5
      src/ciphers/des.c
  34. 3 5
      src/ciphers/kasumi.c
  35. 3 5
      src/ciphers/khazad.c
  36. 3 5
      src/ciphers/kseed.c
  37. 3 5
      src/ciphers/multi2.c
  38. 3 5
      src/ciphers/noekeon.c
  39. 4 6
      src/ciphers/rc2.c
  40. 3 5
      src/ciphers/rc5.c
  41. 3 5
      src/ciphers/rc6.c
  42. 4 6
      src/ciphers/safer/safer.c
  43. 3 5
      src/ciphers/safer/safer_tab.c
  44. 3 5
      src/ciphers/safer/saferp.c
  45. 3 5
      src/ciphers/skipjack.c
  46. 3 5
      src/ciphers/twofish/twofish.c
  47. 3 5
      src/ciphers/twofish/twofish_tab.c
  48. 3 5
      src/ciphers/xtea.c
  49. 4 2
      src/encauth/ccm/ccm_add_aad.c
  50. 4 2
      src/encauth/ccm/ccm_add_nonce.c
  51. 4 2
      src/encauth/ccm/ccm_done.c
  52. 4 2
      src/encauth/ccm/ccm_init.c
  53. 3 5
      src/encauth/ccm/ccm_memory.c
  54. 4 2
      src/encauth/ccm/ccm_process.c
  55. 4 2
      src/encauth/ccm/ccm_reset.c
  56. 3 5
      src/encauth/ccm/ccm_test.c
  57. 4 0
      src/encauth/chachapoly/chacha20poly1305_add_aad.c
  58. 4 0
      src/encauth/chachapoly/chacha20poly1305_decrypt.c
  59. 4 0
      src/encauth/chachapoly/chacha20poly1305_done.c
  60. 4 0
      src/encauth/chachapoly/chacha20poly1305_encrypt.c
  61. 4 0
      src/encauth/chachapoly/chacha20poly1305_init.c
  62. 4 0
      src/encauth/chachapoly/chacha20poly1305_memory.c
  63. 4 0
      src/encauth/chachapoly/chacha20poly1305_setiv.c
  64. 4 0
      src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c
  65. 4 0
      src/encauth/chachapoly/chacha20poly1305_test.c
  66. 3 5
      src/encauth/eax/eax_addheader.c
  67. 3 5
      src/encauth/eax/eax_decrypt.c
  68. 3 5
      src/encauth/eax/eax_decrypt_verify_memory.c
  69. 3 5
      src/encauth/eax/eax_done.c
  70. 3 5
      src/encauth/eax/eax_encrypt.c
  71. 3 5
      src/encauth/eax/eax_encrypt_authenticate_memory.c
  72. 3 5
      src/encauth/eax/eax_init.c
  73. 3 5
      src/encauth/eax/eax_test.c
  74. 3 5
      src/encauth/gcm/gcm_add_aad.c
  75. 3 5
      src/encauth/gcm/gcm_add_iv.c
  76. 3 5
      src/encauth/gcm/gcm_done.c
  77. 3 5
      src/encauth/gcm/gcm_gf_mult.c
  78. 3 5
      src/encauth/gcm/gcm_init.c
  79. 3 5
      src/encauth/gcm/gcm_memory.c
  80. 3 5
      src/encauth/gcm/gcm_mult_h.c
  81. 3 5
      src/encauth/gcm/gcm_process.c
  82. 3 5
      src/encauth/gcm/gcm_reset.c
  83. 3 5
      src/encauth/gcm/gcm_test.c
  84. 3 5
      src/encauth/ocb/ocb_decrypt.c
  85. 3 5
      src/encauth/ocb/ocb_decrypt_verify_memory.c
  86. 3 5
      src/encauth/ocb/ocb_done_decrypt.c
  87. 3 5
      src/encauth/ocb/ocb_done_encrypt.c
  88. 3 5
      src/encauth/ocb/ocb_encrypt.c
  89. 3 5
      src/encauth/ocb/ocb_encrypt_authenticate_memory.c
  90. 3 5
      src/encauth/ocb/ocb_init.c
  91. 3 5
      src/encauth/ocb/ocb_ntz.c
  92. 3 5
      src/encauth/ocb/ocb_shift_xor.c
  93. 3 5
      src/encauth/ocb/ocb_test.c
  94. 3 5
      src/encauth/ocb/s_ocb_done.c
  95. 3 3
      src/encauth/ocb3/ocb3_add_aad.c
  96. 3 5
      src/encauth/ocb3/ocb3_decrypt.c
  97. 3 3
      src/encauth/ocb3/ocb3_decrypt_last.c
  98. 3 5
      src/encauth/ocb3/ocb3_decrypt_verify_memory.c
  99. 3 5
      src/encauth/ocb3/ocb3_done.c
  100. 3 5
      src/encauth/ocb3/ocb3_encrypt.c

+ 3 - 3
build.sh

@@ -54,6 +54,6 @@ if [ -a testok.txt ] && [ -f testok.txt ]; then
 fi
 fi
 exit 1
 exit 1
 
 
-# $Source$
-# $Revision$
-# $Date$
+# ref:         $Format:%D$
+# git commit:  $Format:%H$
+# commit time: $Format:%ai$

+ 3 - 3
check_source.sh

@@ -10,6 +10,6 @@ echo "checking..."
 
 
 exit 0
 exit 0
 
 
-# $Source$
-# $Revision$
-# $Date$
+# ref:         $Format:%D$
+# git commit:  $Format:%H$
+# commit time: $Format:%ai$

+ 3 - 3
coverage.sh

@@ -46,6 +46,6 @@ fi
 
 
 exit 0
 exit 0
 
 
-# $Source$
-# $Revision$
-# $Date$
+# ref:         $Format:%D$
+# git commit:  $Format:%H$
+# commit time: $Format:%ai$

+ 3 - 3
coverage_more.sh

@@ -19,6 +19,6 @@ fi
 
 
 exit 0
 exit 0
 
 
-# $Source$
-# $Revision$
-# $Date$
+# ref:         $Format:%D$
+# git commit:  $Format:%H$
+# commit time: $Format:%ai$

+ 3 - 5
demos/constants.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -49,6 +47,6 @@ int main(void) {
 }
 }
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 12 - 3
demos/hashsum.c

@@ -1,3 +1,12 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
+
 /*
 /*
  * Written by Daniel Richards <[email protected]> 6/7/2002
  * Written by Daniel Richards <[email protected]> 6/7/2002
  * hash.c: This app uses libtomcrypt to hash either stdin or a file
  * hash.c: This app uses libtomcrypt to hash either stdin or a file
@@ -260,6 +269,6 @@ int main(int argc, char **argv)
    return EXIT_SUCCESS;
    return EXIT_SUCCESS;
 }
 }
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 12 - 3
demos/ltcrypt.c

@@ -1,3 +1,12 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
+
 /* encrypt V1.1 Fri Oct 18 04:28:03 NZDT 2002 */
 /* encrypt V1.1 Fri Oct 18 04:28:03 NZDT 2002 */
 /* File de/encryption, using libtomcrypt */
 /* File de/encryption, using libtomcrypt */
 /* Written by Daniel Richards <[email protected]> */
 /* Written by Daniel Richards <[email protected]> */
@@ -190,6 +199,6 @@ int main(int argc, char *argv[])
    return 0;
    return 0;
 }
 }
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 13 - 0
demos/openssl-enc.c

@@ -1,3 +1,12 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
+
 /*
 /*
  * Demo to do the rough equivalent of:
  * Demo to do the rough equivalent of:
  *
  *
@@ -382,3 +391,7 @@ int main(int argc, char *argv[]) {
    fclose(infd); fclose(outfd);
    fclose(infd); fclose(outfd);
    return 0;
    return 0;
 }
 }
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 6
demos/sizes.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -42,7 +40,6 @@ int main(void) {
     return 0;
     return 0;
 }
 }
 
 
-
-/* $Source:  $ */
-/* $Revision:  $ */
-/* $Date:  $ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 11 - 3
demos/small.c

@@ -1,3 +1,11 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
 /* small demo app that just includes a cipher/hash/prng */
 /* small demo app that just includes a cipher/hash/prng */
 #include <tomcrypt.h>
 #include <tomcrypt.h>
 
 
@@ -9,6 +17,6 @@ int main(void)
    return 0;
    return 0;
 }
 }
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 11 - 3
demos/timing.c

@@ -1,3 +1,11 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
 #include <tomcrypt.h>
 #include <tomcrypt.h>
 
 
 #if defined(_WIN32)
 #if defined(_WIN32)
@@ -1454,6 +1462,6 @@ return EXIT_SUCCESS;
 
 
 }
 }
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 11 - 3
demos/tv_gen.c

@@ -1,3 +1,11 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
 #include <tomcrypt.h>
 #include <tomcrypt.h>
 
 
 void hash_gen(void)
 void hash_gen(void)
@@ -784,6 +792,6 @@ int main(void)
    return 0;
    return 0;
 }
 }
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 5 - 5
doc/crypt.tex

@@ -51,13 +51,13 @@
 \newcommand{\mysection}[1]    % Re-define the chaptering command to use
 \newcommand{\mysection}[1]    % Re-define the chaptering command to use
 	{                   % THESE headers.
 	{                   % THESE headers.
 	\section{#1}
 	\section{#1}
-   \markboth{\textsf{www.libtom.org}}{\thesection ~ {#1}}
+   \markboth{\textsf{www.libtom.net}}{\thesection ~ {#1}}
 	}
 	}
 
 
 \newcommand{\mystarsection}[1]    % Re-define the chaptering command to use
 \newcommand{\mystarsection}[1]    % Re-define the chaptering command to use
 	{                   % THESE headers.
 	{                   % THESE headers.
 	\section*{#1}
 	\section*{#1}
-   \markboth{\textsf{www.libtom.org}}{{#1}}
+   \markboth{\textsf{www.libtom.net}}{{#1}}
 	}
 	}
 \pagestyle{empty}
 \pagestyle{empty}
 \begin{document}
 \begin{document}
@@ -7312,6 +7312,6 @@ Since the function is given the entire RSA key (for private keys only) CRT is po
 
 
 \end{document}
 \end{document}
 
 
-% $Source$
-% $Revision$
-% $Date$
+% ref:         $Format:%D$
+% git commit:  $Format:%H$
+% commit time: $Format:%ai$

+ 3 - 3
doc/footer.html

@@ -4,7 +4,7 @@ Docs using <img src="doxygen.png" alt="doxygen" align="middle" border=0>
 <a href="http://jlcooke.ca/tom/hidden_image.png">
 <a href="http://jlcooke.ca/tom/hidden_image.png">
 
 
 <!--
 <!--
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
 -->
 -->

+ 3 - 3
doc/header.html

@@ -6,7 +6,7 @@
 <!-- Generated by Doxygen 1.3.8 -->
 <!-- Generated by Doxygen 1.3.8 -->
 
 
 <!--
 <!--
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
 -->
 -->

+ 1 - 1
helper.pl

@@ -135,7 +135,7 @@ MARKER
 /* commit time: $Format:%ai$ */
 /* commit time: $Format:%ai$ */
 MARKER
 MARKER
   my @all_files;
   my @all_files;
-  find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'src');
+  find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'demos', 'src', 'tests');
   for my $f (@all_files) {
   for my $f (@all_files) {
     my $txt = read_file($f);
     my $txt = read_file($f);
     if ($txt !~ /^\Q$first_comment\E/s) {
     if ($txt !~ /^\Q$first_comment\E/s) {

+ 1 - 1
makefile

@@ -23,7 +23,7 @@ endif
 
 
 # ranlib tools
 # ranlib tools
 ifndef RANLIB
 ifndef RANLIB
-RANLIB:=$(PREFIX)ranlib
+RANLIB:=$(CROSS_COMPILE)ranlib
 endif
 endif
 INSTALL_CMD = install
 INSTALL_CMD = install
 
 

+ 13 - 13
makefile.mingw

@@ -7,7 +7,7 @@
 #
 #
 # gmake -f makefile.mingw all
 # gmake -f makefile.mingw all
 # test.exe
 # test.exe
-# gmake -f makefile.mingw DESTDIR=c:\devel\libtom install
+# gmake -f makefile.mingw PREFIX=c:\devel\libtom install
 #
 #
 #Or:
 #Or:
 #
 #
@@ -15,7 +15,7 @@
 #
 #
 
 
 #The following can be overridden from command line e.g. make -f makefile.mingw CC=gcc ARFLAGS=rcs
 #The following can be overridden from command line e.g. make -f makefile.mingw CC=gcc ARFLAGS=rcs
-DESTDIR   = c:\mingw
+PREFIX    = c:\mingw
 CC        = gcc
 CC        = gcc
 AR        = ar
 AR        = ar
 ARFLAGS   = r
 ARFLAGS   = r
@@ -262,20 +262,20 @@ clean:
 
 
 #Install the library + headers
 #Install the library + headers
 install: $(LIBMAIN_S) $(LIBMAIN_I) $(LIBMAIN_D)
 install: $(LIBMAIN_S) $(LIBMAIN_I) $(LIBMAIN_D)
-	cmd /c if not exist "$(DESTDIR)\bin" mkdir "$(DESTDIR)\bin"
-	cmd /c if not exist "$(DESTDIR)\lib" mkdir "$(DESTDIR)\lib"
-	cmd /c if not exist "$(DESTDIR)\include" mkdir "$(DESTDIR)\include"
-	copy /Y $(LIBMAIN_S) "$(DESTDIR)\lib"
-	copy /Y $(LIBMAIN_I) "$(DESTDIR)\lib"
-	copy /Y $(LIBMAIN_D) "$(DESTDIR)\bin"
-	copy /Y src\headers\tomcrypt*.h "$(DESTDIR)\include"
+	cmd /c if not exist "$(PREFIX)\bin" mkdir "$(PREFIX)\bin"
+	cmd /c if not exist "$(PREFIX)\lib" mkdir "$(PREFIX)\lib"
+	cmd /c if not exist "$(PREFIX)\include" mkdir "$(PREFIX)\include"
+	copy /Y $(LIBMAIN_S) "$(PREFIX)\lib"
+	copy /Y $(LIBMAIN_I) "$(PREFIX)\lib"
+	copy /Y $(LIBMAIN_D) "$(PREFIX)\bin"
+	copy /Y src\headers\tomcrypt*.h "$(PREFIX)\include"
 
 
 #Install useful tools
 #Install useful tools
 install_bins: hashsum
 install_bins: hashsum
-	cmd /c if not exist "$(DESTDIR)\bin" mkdir "$(DESTDIR)\bin"
-	copy /Y hashsum.exe "$(DESTDIR)\bin"
+	cmd /c if not exist "$(PREFIX)\bin" mkdir "$(PREFIX)\bin"
+	copy /Y hashsum.exe "$(PREFIX)\bin"
 
 
 #Install documentation
 #Install documentation
 install_docs: doc/crypt.pdf
 install_docs: doc/crypt.pdf
-	cmd /c if not exist "$(DESTDIR)\doc" mkdir "$(DESTDIR)\doc"
-	copy /Y doc\crypt.pdf "$(DESTDIR)\doc"
+	cmd /c if not exist "$(PREFIX)\doc" mkdir "$(PREFIX)\doc"
+	copy /Y doc\crypt.pdf "$(PREFIX)\doc"

+ 11 - 11
makefile.msvc

@@ -7,7 +7,7 @@
 #
 #
 # nmake -f makefile.msvc all
 # nmake -f makefile.msvc all
 # test.exe
 # test.exe
-# nmake -f makefile.msvc DESTDIR=c:\devel\libtom install
+# nmake -f makefile.msvc PREFIX=c:\devel\libtom install
 #
 #
 #Or:
 #Or:
 #
 #
@@ -15,7 +15,7 @@
 #
 #
 
 
 #The following can be overridden from command line e.g. make -f makefile.msvc CC=gcc ARFLAGS=rcs
 #The following can be overridden from command line e.g. make -f makefile.msvc CC=gcc ARFLAGS=rcs
-DESTDIR   = c:\devel
+PREFIX    = c:\devel
 CFLAGS    = /Ox /DUSE_LTM /DLTM_DESC /I../libtommath
 CFLAGS    = /Ox /DUSE_LTM /DLTM_DESC /I../libtommath
 EXTRALIBS = ../libtommath/tommath.lib
 EXTRALIBS = ../libtommath/tommath.lib
 
 
@@ -249,18 +249,18 @@ clean:
 
 
 #Install the library + headers
 #Install the library + headers
 install: $(LIBMAIN_S)
 install: $(LIBMAIN_S)
-	cmd /c if not exist "$(DESTDIR)\bin" mkdir "$(DESTDIR)\bin"
-	cmd /c if not exist "$(DESTDIR)\lib" mkdir "$(DESTDIR)\lib"
-	cmd /c if not exist "$(DESTDIR)\include" mkdir "$(DESTDIR)\include"
-	copy /Y $(LIBMAIN_S) "$(DESTDIR)\lib"
-	copy /Y src\headers\tomcrypt*.h "$(DESTDIR)\include"
+	cmd /c if not exist "$(PREFIX)\bin" mkdir "$(PREFIX)\bin"
+	cmd /c if not exist "$(PREFIX)\lib" mkdir "$(PREFIX)\lib"
+	cmd /c if not exist "$(PREFIX)\include" mkdir "$(PREFIX)\include"
+	copy /Y $(LIBMAIN_S) "$(PREFIX)\lib"
+	copy /Y src\headers\tomcrypt*.h "$(PREFIX)\include"
 
 
 #Install useful tools
 #Install useful tools
 install_bins: hashsum
 install_bins: hashsum
-	cmd /c if not exist "$(DESTDIR)\bin" mkdir "$(DESTDIR)\bin"
-	copy /Y hashsum.exe "$(DESTDIR)\bin"
+	cmd /c if not exist "$(PREFIX)\bin" mkdir "$(PREFIX)\bin"
+	copy /Y hashsum.exe "$(PREFIX)\bin"
 
 
 #Install documentation
 #Install documentation
 install_docs: doc/crypt.pdf
 install_docs: doc/crypt.pdf
-	cmd /c if not exist "$(DESTDIR)\doc" mkdir "$(DESTDIR)\doc"
-	copy /Y doc\crypt.pdf "$(DESTDIR)\doc"
+	cmd /c if not exist "$(PREFIX)\doc" mkdir "$(PREFIX)\doc"
+	copy /Y doc\crypt.pdf "$(PREFIX)\doc"

+ 5 - 5
makefile.shared

@@ -11,7 +11,7 @@
 #
 #
 # CFLAGS="-DUSE_LTM -DLTM_DESC -I/path/to/libtommath" make -f makefile.shared all EXTRALIBS=/path/to/libtommath/libtommath.a
 # CFLAGS="-DUSE_LTM -DLTM_DESC -I/path/to/libtommath" make -f makefile.shared all EXTRALIBS=/path/to/libtommath/libtommath.a
 # ./test
 # ./test
-# make -f makefile.shared DESTDIR=/opt/libtom install
+# make -f makefile.shared PREFIX=/opt/libtom install
 #
 #
 
 
 PLATFORM := $(shell uname | sed -e 's/_.*//')
 PLATFORM := $(shell uname | sed -e 's/_.*//')
@@ -46,7 +46,7 @@ $(LIBNAME): $(OBJECTS)
 	$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `find ./src -type f -name "*.lo" | LC_ALL=C sort` $(EXTRALIBS) -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT)
 	$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `find ./src -type f -name "*.lo" | LC_ALL=C sort` $(EXTRALIBS) -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT)
 
 
 install: .common_install
 install: .common_install
-	sed -e 's,^prefix=.*,prefix=$(DESTDIR),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > libtomcrypt.pc
+	sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > libtomcrypt.pc
 	install -d $(LIBPATH)/pkgconfig
 	install -d $(LIBPATH)/pkgconfig
 	install -m 644 libtomcrypt.pc $(LIBPATH)/pkgconfig/
 	install -m 644 libtomcrypt.pc $(LIBPATH)/pkgconfig/
 
 
@@ -69,6 +69,6 @@ endef
 
 
 $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))
 $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))
 
 
-# $Source$
-# $Revision$
-# $Date$
+# ref:         $Format:%D$
+# git commit:  $Format:%H$
+# commit time: $Format:%ai$

+ 15 - 10
makefile.unix

@@ -15,7 +15,7 @@
 #
 #
 # make -f makefile.unix CFLAGS="-O3 -DUSE_LTM -DLTM_DESC -I/path/to/libtommath" EXTRALIBS=/path/to/libtommath/libtommath.a all
 # make -f makefile.unix CFLAGS="-O3 -DUSE_LTM -DLTM_DESC -I/path/to/libtommath" EXTRALIBS=/path/to/libtommath/libtommath.a all
 # ./test
 # ./test
-# make -f makefile.unix DESTDIR=/opt/libtom install
+# make -f makefile.unix PREFIX=/opt/libtom install
 #
 #
 #Or if you are using Intel C compiler you might need something like:
 #Or if you are using Intel C compiler you might need something like:
 #
 #
@@ -23,7 +23,12 @@
 #
 #
 
 
 #The following can be overridden from command line e.g. "make -f makefile.unix CC=gcc ARFLAGS=rcs"
 #The following can be overridden from command line e.g. "make -f makefile.unix CC=gcc ARFLAGS=rcs"
-DESTDIR   = /usr/local
+DESTDIR   =
+PREFIX    = /usr/local
+LIBPATH   = $(DESTDIR)$(PREFIX)/lib
+INCPATH   = $(DESTDIR)$(PREFIX)/include
+DATAPATH  = $(DESTDIR)$(PREFIX)/share/doc/libtomcrypt/pdf
+BINPATH   = $(DESTDIR)$(PREFIX)/bin
 CC        = cc
 CC        = cc
 AR        = ar
 AR        = ar
 ARFLAGS   = r
 ARFLAGS   = r
@@ -266,17 +271,17 @@ clean:
 
 
 #Install the library + headers
 #Install the library + headers
 install: $(LIBMAIN_S) $(HEADERS)
 install: $(LIBMAIN_S) $(HEADERS)
-	@mkdir -p $(DESTDIR)/include $(DESTDIR)/lib/pkgconfig
-	@cp $(LIBMAIN_S) $(DESTDIR)/lib/
-	@cp $(HEADERS) $(DESTDIR)/include/
-	@sed -e 's,^prefix=.*,prefix=$(DESTDIR),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(DESTDIR)/lib/pkgconfig/libtomcrypt.pc
+	@mkdir -p $(INCPATH) $(LIBPATH)/pkgconfig
+	@cp $(LIBMAIN_S) $(LIBPATH)/
+	@cp $(HEADERS) $(INCPATH)/
+	@sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(LIBPATH)/pkgconfig/libtomcrypt.pc
 
 
 #Install useful tools
 #Install useful tools
 install_bins: hashsum
 install_bins: hashsum
-	@mkdir -p $(DESTDIR)/bin
-	@cp hashsum $(DESTDIR)/bin/
+	@mkdir -p $(BINPATH)
+	@cp hashsum $(BINPATH)/
 
 
 #Install documentation
 #Install documentation
 install_docs: doc/crypt.pdf
 install_docs: doc/crypt.pdf
-	@mkdir -p $(DESTDIR)/share/doc/libtomcrypt/pdf
-	@cp doc/crypt.pdf $(DESTDIR)/share/doc/libtomcrypt/pdf/
+	@mkdir -p $(DATAPATH)
+	@cp doc/crypt.pdf $(DATAPATH)/

+ 13 - 11
makefile_include.mk

@@ -8,15 +8,15 @@ VERSION=1.17
 VERSION_LT=0:117
 VERSION_LT=0:117
 
 
 # Compiler and Linker Names
 # Compiler and Linker Names
-ifndef PREFIX
-  PREFIX:=
+ifndef CROSS_COMPILE
+  CROSS_COMPILE:=
 endif
 endif
 
 
 ifeq ($(CC),cc)
 ifeq ($(CC),cc)
-  CC := $(PREFIX)gcc
+  CC := $(CROSS_COMPILE)gcc
 endif
 endif
-LD:=$(PREFIX)ld
-AR:=$(PREFIX)ar
+LD:=$(CROSS_COMPILE)ld
+AR:=$(CROSS_COMPILE)ar
 
 
 # Archiver [makes .a files]
 # Archiver [makes .a files]
 #AR=ar
 #AR=ar
@@ -130,11 +130,12 @@ TIMINGS=demos/timing.o
 #INCPATH  The directory to install the header files for libtomcrypt.
 #INCPATH  The directory to install the header files for libtomcrypt.
 #DATAPATH The directory to install the pdf docs.
 #DATAPATH The directory to install the pdf docs.
 #BINPATH  The directory to install the binaries provided.
 #BINPATH  The directory to install the binaries provided.
-DESTDIR  ?= /usr/local
-LIBPATH  ?= $(DESTDIR)/lib
-INCPATH  ?= $(DESTDIR)/include
-DATAPATH ?= $(DESTDIR)/share/doc/libtomcrypt/pdf
-BINPATH  ?= $(DESTDIR)/bin
+DESTDIR  ?=
+PREFIX   ?= /usr/local
+LIBPATH  ?= $(DESTDIR)$(PREFIX)/lib
+INCPATH  ?= $(DESTDIR)$(PREFIX)/include
+DATAPATH ?= $(DESTDIR)$(PREFIX)/share/doc/libtomcrypt/pdf
+BINPATH  ?= $(DESTDIR)$(PREFIX)/bin
 
 
 #Who do we install as?
 #Who do we install as?
 ifdef INSTALL_USER
 ifdef INSTALL_USER
@@ -357,11 +358,12 @@ doc/crypt.pdf:
 
 
 install_all: install install_bins install_docs install_test
 install_all: install install_bins install_docs install_test
 
 
+INSTALL_OPTS ?= -m 644
 
 
 .common_install: $(LIBNAME)
 .common_install: $(LIBNAME)
 	install -d $(INCPATH)
 	install -d $(INCPATH)
 	install -d $(LIBPATH)
 	install -d $(LIBPATH)
-	$(INSTALL_CMD) -m 644 $(LIBNAME) $(LIBPATH)/$(LIBNAME)
+	$(INSTALL_CMD) $(INSTALL_OPTS) $(LIBNAME) $(LIBPATH)/$(LIBNAME)
 	install -m 644 $(HEADERS) $(INCPATH)
 	install -m 644 $(HEADERS) $(INCPATH)
 
 
 .common_install_bins: $(USEFUL_DEMOS)
 .common_install_bins: $(USEFUL_DEMOS)

+ 3 - 3
notes/etc/saferp_optimizer.c

@@ -172,6 +172,6 @@ printf("   }\n}\n\n");
 }
 }
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 3
notes/etc/whirlgen.c

@@ -90,6 +90,6 @@ int main(void)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 3
notes/etc/whirltest.c

@@ -14,6 +14,6 @@ int main(void)
 }
 }
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 3
run.sh

@@ -44,6 +44,6 @@ fi
 
 
 exit 0
 exit 0
 
 
-# $Source$
-# $Revision$
-# $Date$
+# ref:         $Format:%D$
+# git commit:  $Format:%H$
+# commit time: $Format:%ai$

+ 3 - 5
src/ciphers/aes/aes.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /* AES implementation by Tom St Denis
 /* AES implementation by Tom St Denis
@@ -755,6 +753,6 @@ int ECB_KS(int *keysize)
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/aes/aes_tab.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 /* The precomputed tables for AES */
 /* The precomputed tables for AES */
 /*
 /*
@@ -1027,6 +1025,6 @@ static const ulong32 rcon[] = {
 
 
 #endif /* __LTC_AES_TAB_C__ */
 #endif /* __LTC_AES_TAB_C__ */
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/anubis.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -1554,6 +1552,6 @@ int anubis_keysize(int *keysize)
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/blowfish.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 /**
 /**
   @file blowfish.c
   @file blowfish.c
@@ -590,6 +588,6 @@ int blowfish_keysize(int *keysize)
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/camellia.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -737,6 +735,6 @@ int camellia_keysize(int *keysize)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/cast5.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
  /**
  /**
@@ -716,6 +714,6 @@ int cast5_keysize(int *keysize)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/des.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -2080,6 +2078,6 @@ int des3_keysize(int *keysize)
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/kasumi.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -314,6 +312,6 @@ int kasumi_test(void)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/khazad.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -851,6 +849,6 @@ int khazad_keysize(int *keysize)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/kseed.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -387,6 +385,6 @@ int kseed_keysize(int *keysize)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/multi2.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -316,6 +314,6 @@ int multi2_keysize(int *keysize)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/noekeon.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 /**
 /**
    @file noekeon.c
    @file noekeon.c
@@ -340,6 +338,6 @@ int noekeon_keysize(int *keysize)
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 6
src/ciphers/rc2.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 /**********************************************************************\
 /**********************************************************************\
 * To commemorate the 1996 RSA Data Security Conference, the following  *
 * To commemorate the 1996 RSA Data Security Conference, the following  *
@@ -18,7 +16,7 @@
 * Thanks to CodeView, SoftIce, and D86 for helping bring this code to  *
 * Thanks to CodeView, SoftIce, and D86 for helping bring this code to  *
 * the public.                                                          *
 * the public.                                                          *
 \**********************************************************************/
 \**********************************************************************/
-#include <tomcrypt.h>
+#include "tomcrypt.h"
 
 
 /**
 /**
   @file rc2.c
   @file rc2.c
@@ -414,6 +412,6 @@ int rc2_keysize(int *keysize)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/rc5.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -318,6 +316,6 @@ int rc5_keysize(int *keysize)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/rc6.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -344,6 +342,6 @@ int rc6_keysize(int *keysize)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 6
src/ciphers/safer/safer.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /*******************************************************************************
 /*******************************************************************************
@@ -28,7 +26,7 @@
 *
 *
 *******************************************************************************/
 *******************************************************************************/
 
 
-#include <tomcrypt.h>
+#include "tomcrypt.h"
 
 
 #ifdef LTC_SAFER
 #ifdef LTC_SAFER
 
 
@@ -489,6 +487,6 @@ int safer_sk128_test(void)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/safer/safer_tab.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -61,6 +59,6 @@ static const unsigned char safer_lbox[256] = {
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/safer/saferp.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -564,6 +562,6 @@ int saferp_keysize(int *keysize)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/skipjack.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -339,6 +337,6 @@ int skipjack_keysize(int *keysize)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/twofish/twofish.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
  /**
  /**
@@ -710,6 +708,6 @@ int twofish_keysize(int *keysize)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/twofish/twofish_tab.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
  /**
  /**
@@ -493,6 +491,6 @@ static const ulong32 rs_tab7[256] = {
 #endif /* __LTC_TWOFISH_TAB_C__ */
 #endif /* __LTC_TWOFISH_TAB_C__ */
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/ciphers/xtea.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -273,6 +271,6 @@ int xtea_keysize(int *keysize)
 
 
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 2
src/encauth/ccm/ccm_add_aad.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -59,3 +57,7 @@ int ccm_add_aad(ccm_state *ccm,
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 2
src/encauth/ccm/ccm_add_nonce.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -109,3 +107,7 @@ int ccm_add_nonce(ccm_state *ccm,
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 2
src/encauth/ccm/ccm_done.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -61,3 +59,7 @@ int ccm_done(ccm_state *ccm,
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 2
src/encauth/ccm/ccm_init.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -77,3 +75,7 @@ int ccm_init(ccm_state *ccm, int cipher,
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ccm/ccm_memory.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -402,6 +400,6 @@ error:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 2
src/encauth/ccm/ccm_process.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -84,3 +82,7 @@ int ccm_process(ccm_state *ccm,
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 2
src/encauth/ccm/ccm_reset.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -31,3 +29,7 @@ int ccm_reset(ccm_state *ccm)
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ccm/ccm_test.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 #include "tomcrypt.h"
 #include "tomcrypt.h"
 
 
@@ -243,6 +241,6 @@ int ccm_test(void)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_add_aad.c

@@ -32,3 +32,7 @@ int chacha20poly1305_add_aad(chacha20poly1305_state *st, const unsigned char *in
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_decrypt.c

@@ -43,3 +43,7 @@ int chacha20poly1305_decrypt(chacha20poly1305_state *st, const unsigned char *in
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_done.c

@@ -40,3 +40,7 @@ int chacha20poly1305_done(chacha20poly1305_state *st, unsigned char *tag, unsign
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_encrypt.c

@@ -42,3 +42,7 @@ int chacha20poly1305_encrypt(chacha20poly1305_state *st, const unsigned char *in
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_init.c

@@ -24,3 +24,7 @@ int chacha20poly1305_init(chacha20poly1305_state *st, const unsigned char *key,
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_memory.c

@@ -68,3 +68,7 @@ LBL_ERR:
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_setiv.c

@@ -62,3 +62,7 @@ int chacha20poly1305_setiv(chacha20poly1305_state *st, const unsigned char *iv,
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c

@@ -34,3 +34,7 @@ int chacha20poly1305_setiv_rfc7905(chacha20poly1305_state *st, const unsigned ch
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 4 - 0
src/encauth/chachapoly/chacha20poly1305_test.c

@@ -128,3 +128,7 @@ int chacha20poly1305_test(void)
 }
 }
 
 
 #endif
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_addheader.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 /**
 /**
     @file eax_addheader.c
     @file eax_addheader.c
@@ -33,6 +31,6 @@ int eax_addheader(eax_state *eax, const unsigned char *header,
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_decrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -45,6 +43,6 @@ int eax_decrypt(eax_state *eax, const unsigned char *ct, unsigned char *pt,
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_decrypt_verify_memory.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -103,6 +101,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_done.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -89,6 +87,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_encrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -46,6 +44,6 @@ int eax_encrypt(eax_state *eax, const unsigned char *pt, unsigned char *ct,
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_encrypt_authenticate_memory.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -77,6 +75,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_init.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -139,6 +137,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/eax/eax_test.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -277,6 +275,6 @@ int eax_test(void)
 
 
 #endif /* LTC_EAX_MODE */
 #endif /* LTC_EAX_MODE */
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_add_aad.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -119,6 +117,6 @@ int gcm_add_aad(gcm_state *gcm,
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_add_iv.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -89,6 +87,6 @@ int gcm_add_iv(gcm_state *gcm,
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_done.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -78,6 +76,6 @@ int gcm_done(gcm_state *gcm,
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_gf_mult.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -215,7 +213,7 @@ void gcm_gf_mult(const unsigned char *a, const unsigned char *b, unsigned char *
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
 
 

+ 3 - 5
src/encauth/gcm/gcm_init.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -102,6 +100,6 @@ int gcm_init(gcm_state *gcm, int cipher,
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_memory.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -103,6 +101,6 @@ LTC_ERR:
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_mult_h.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -54,6 +52,6 @@ void gcm_mult_h(gcm_state *gcm, unsigned char *I)
 }
 }
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_process.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -152,6 +150,6 @@ int gcm_process(gcm_state *gcm,
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_reset.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -39,6 +37,6 @@ int gcm_reset(gcm_state *gcm)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/gcm/gcm_test.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -408,6 +406,6 @@ int gcm_test(void)
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_decrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -74,6 +72,6 @@ int ocb_decrypt(ocb_state *ocb, const unsigned char *ct, unsigned char *pt)
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_decrypt_verify_memory.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -81,6 +79,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_done_decrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -75,6 +73,6 @@ LBL_ERR:
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_done_encrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -41,6 +39,6 @@ int ocb_done_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned long ptle
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_encrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -67,6 +65,6 @@ int ocb_encrypt(ocb_state *ocb, const unsigned char *pt, unsigned char *ct)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_encrypt_authenticate_memory.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -79,6 +77,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_init.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -136,6 +134,6 @@ int ocb_init(ocb_state *ocb, int cipher,
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_ntz.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -37,6 +35,6 @@ int ocb_ntz(unsigned long x)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_shift_xor.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -34,6 +32,6 @@ void ocb_shift_xor(ocb_state *ocb, unsigned char *Z)
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/ocb_test.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -232,6 +230,6 @@ int ocb_test(void)
    -- The setup is somewhat complicated...
    -- The setup is somewhat complicated...
 */
 */
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb/s_ocb_done.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -143,6 +141,6 @@ error:
 #endif
 #endif
 
 
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

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

@@ -76,6 +76,6 @@ int ocb3_add_aad(ocb3_state *ocb, const unsigned char *aad, unsigned long aadlen
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb3/ocb3_decrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -81,6 +79,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

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

@@ -100,6 +100,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb3/ocb3_decrypt_verify_memory.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -107,6 +105,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb3/ocb3_done.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -87,6 +85,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

+ 3 - 5
src/encauth/ocb3/ocb3_encrypt.c

@@ -5,8 +5,6 @@
  *
  *
  * The library is free for all purposes without any express
  * The library is free for all purposes without any express
  * guarantee it works.
  * guarantee it works.
- *
- * Tom St Denis, [email protected], http://libtom.org
  */
  */
 
 
 /**
 /**
@@ -81,6 +79,6 @@ LBL_ERR:
 
 
 #endif
 #endif
 
 
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */

Some files were not shown because too many files changed in this diff