kazuho / picohash

header-file-only implementation of various hash algorithms
89 stars 11 forks source link

Comparison to other projects? #5

Open pfalcon opened 4 years ago

pfalcon commented 4 years ago

Cute project! Any particular requirements went into its making? Aka, how does this compare to other similar projects? E.g. https://github.com/B-Con/crypto-algorithms seems to be rather similar - public domain, very explicit disclaimer, as an extra point, from-scratch implementation.

For example, my interest is finding minimal-size implementations, and there's no clear winner between 2 projects:

Command line: gcc -m32 -Os -c foo.c.

B-Con/crypto-algorithms

$ size *.o 
   text    data     bss     dec     hex filename
   1337       0       0    1337     539 sha1.o
   1591       0       0    1591     637 sha256.o

kazuho/picohash

$ size *.o 
   text    data     bss     dec     hex filename
   1082       0       0    1082     43a test-sha1.o
   1790       0       0    1790     6fe test-sha256.o

Would there be interest to collect minimal code size implementations in this project?