]> git.codecow.com Git - Monocypher.git/commit
moved SHA-512 source files to src/optional
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 8 Oct 2017 20:19:45 +0000 (22:19 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 8 Oct 2017 20:19:45 +0000 (22:19 +0200)
commit590263d215add9bba312b19f3f994df7a838aaa7
tree8ceec34b8d04f5aad716691c9885595fe13bd907
parent2d8923c4f9c4e8ef3c32bfba07d4722ca6089db2
moved SHA-512 source files to src/optional

There are 2 reasons behind this change:

- The primary way to install Monocypher is to copy the source files
  into one's own project.  But it wasn't clear whether `sha512.c` and
  `sha512.h` are meant to be copied as well.

- Monocypher is advertised as a single source file library (or a 2
  files library if you count the header), and a casual glance may
  disagree.

Now things should be much clearer.

---

I made another slight change to the vector generation process: I
removed the optimisation options, which in conjunction with `-std=c99`
seem to trigger a bug in GCC 5.4.0 (it can't find a type definition).
Clang works.

Those optimisation options slowed down the whole process anyway, so no
loss there.
makefile
src/optional/sha512.c [moved from src/sha512.c with 100% similarity]
src/optional/sha512.h [moved from src/sha512.h with 100% similarity]
tests/gen/makefile