Permalink
Browse files

Initial commit

  • Loading branch information...
David McGrew
David McGrew committed Jul 5, 2017
0 parents commit 5915e7e687f5de4189010b1e21c712706c8880ba
Showing with 12,371 additions and 0 deletions.
  1. +121 −0 Makefile
  2. +624 −0 README
  3. +176 −0 common_defs.h
  4. +692 −0 demo.c
  5. +23 −0 endian.c
  6. +4 −0 endian.h
  7. +120 −0 hash.c
  8. +54 −0 hash.h
  9. +156 −0 hss.c
  10. +402 −0 hss.h
  11. +551 −0 hss_alloc.c
  12. +337 −0 hss_aux.c
  13. +59 −0 hss_aux.h
  14. +47 −0 hss_common.c
  15. +21 −0 hss_common.h
  16. +174 −0 hss_compute.c
  17. +280 −0 hss_derive.c
  18. +81 −0 hss_derive.h
  19. +929 −0 hss_generate.c
  20. +236 −0 hss_internal.h
  21. +350 −0 hss_keygen.c
  22. +153 −0 hss_param.c
  23. +136 −0 hss_reserve.c
  24. +20 −0 hss_reserve.h
  25. +758 −0 hss_sign.c
  26. +213 −0 hss_sign_inc.c
  27. +81 −0 hss_sign_inc.h
  28. +131 −0 hss_thread.h
  29. +298 −0 hss_thread_pthread.c
  30. +59 −0 hss_thread_single.c
  31. +156 −0 hss_verify.c
  32. +18 −0 hss_verify.h
  33. +203 −0 hss_verify_inc.c
  34. +82 −0 hss_verify_inc.h
  35. +49 −0 hss_zeroize.c
  36. +5 −0 hss_zeroize.h
  37. +29 −0 license.txt
  38. +79 −0 lm_common.c
  39. +20 −0 lm_common.h
  40. +59 −0 lm_ots.h
  41. +99 −0 lm_ots_common.c
  42. +15 −0 lm_ots_common.h
  43. +167 −0 lm_ots_sign.c
  44. +122 −0 lm_ots_verify.c
  45. +18 −0 lm_ots_verify.h
  46. +107 −0 lm_verify.c
  47. +12 −0 lm_verify.h
  48. +660 −0 programming.notes
  49. +183 −0 sha256.c
  50. +37 −0 sha256.h
  51. +97 −0 test_h25.c
  52. +122 −0 test_hss.c
  53. +16 −0 test_hss.h
  54. +442 −0 test_keygen.c
  55. +178 −0 test_keyload.c
  56. +191 −0 test_load.c
  57. +250 −0 test_sign.c
  58. +362 −0 test_sign_inc.c
  59. +275 −0 test_stat.c
  60. +388 −0 test_testvector.c
  61. +183 −0 test_thread.c
  62. +244 −0 test_verify.c
  63. +217 −0 test_verify_inc.c
121 Makefile
@@ -0,0 +1,121 @@
AR = /usr/bin/ar
CC = /usr/bin/gcc
CFLAGS = -Wall -O3
all: hss_lib.a \
hss_lib_thread.a \
hss_verify.a \
demo \
test_hss
hss_lib.a: hss.o hss_alloc.o hss_aux.o hss_common.o \
hss_compute.o hss_generate.o hss_keygen.o hss_param.o hss_reserve.o \
hss_sign.o hss_sign_inc.o hss_thread_single.o \
hss_verify.o hss_verify_inc.o hss_derive.o \
hss_derive.o hss_zeroize.o lm_common.o \
lm_ots_common.o lm_ots_sign.o lm_ots_verify.o lm_verify.o endian.o \
hash.o sha256.o
$(AR) rcs $@ $^
hss_lib_thread.a: hss.o hss_alloc.o hss_aux.o hss_common.o \
hss_compute.o hss_generate.o hss_keygen.o hss_param.o hss_reserve.o \
hss_sign.o hss_sign_inc.o hss_thread_pthread.o \
hss_verify.o hss_verify_inc.o \
hss_derive.o hss_zeroize.o lm_common.o \
lm_ots_common.o lm_ots_sign.o lm_ots_verify.o lm_verify.o endian.o \
hash.o sha256.o
$(AR) rcs $@ $^
hss_verify.a: hss_verify.o hss_verify_inc.o hss_common.o hss_thread_single.o \
hss_zeroize.o lm_common.o lm_ots_common.o lm_ots_verify.o lm_verify.o \
endian.o hash.o sha256.o
$(AR) rcs $@ $^
demo: demo.c hss_lib_thread.a
$(CC) $(CFLAGS) demo.c hss_lib_thread.a -lcrypto -lpthread -o demo
test_1: test_1.c lm_ots_common.o lm_ots_sign.o lm_ots_verify.o endian.o hash.o sha256.o hss_zeroize.o
$(CC) $(CFLAGS) -o test_1 test_1.c lm_ots_common.o lm_ots_sign.o lm_ots_verify.o endian.o hash.o sha256.o hss_zeroize.o -lcrypto
test_hss: test_hss.c test_hss.h test_testvector.c test_stat.c test_keygen.c test_load.c test_sign.c test_sign_inc.c test_verify.c test_verify_inc.c test_keyload.c test_thread.c test_h25.c hss.h hss_lib_thread.a
$(CC) $(CFLAGS) test_hss.c test_testvector.c test_stat.c test_keygen.c test_sign.c test_sign_inc.c test_load.c test_verify.c test_verify_inc.c test_keyload.c test_thread.c test_h25.c hss_lib_thread.a -lcrypto -lpthread -o test_hss
hss.o: hss.c hss.h common_defs.h hash.h endian.h hss_internal.h hss_aux.h hss_derive.h
$(CC) $(CFLAGS) -c hss.c -o $@
hss_alloc.o: hss_alloc.c hss.h hss_internal.h lm_common.h
$(CC) $(CFLAGS) -c hss_alloc.c -o $@
hss_aux.o: hss_aux.c hss_aux.h hss_internal.h common_defs.h lm_common.h endian.h hash.h
$(CC) $(CFLAGS) -c hss_aux.c -o $@
hss_common.o: hss_common.c common_defs.h hss_common.h lm_common.h
$(CC) $(CFLAGS) -c hss_common.c -o $@
hss_compute.o: hss_compute.c hss_internal.h hash.h hss_thread.h lm_ots_common.h lm_ots.h endian.h hss_derive.h
$(CC) $(CFLAGS) -c hss_compute.c -o $@
hss_derive.o: hss_derive.c hss_derive.h hss_internal.h hash.h endian.h
$(CC) $(CFLAGS) -c hss_derive.c -o $@
hss_generate.o: hss_generate.c hss.h hss_internal.h hss_aux.h hash.h hss_thread.h hss_reserve.h lm_ots_common.h endian.h
$(CC) $(CFLAGS) -c hss_generate.c -o $@
hss_keygen.o: hss_keygen.c hss.h common_defs.h hss_internal.h hss_aux.h endian.h hash.h hss_thread.h lm_common.h lm_ots_common.h
$(CC) $(CFLAGS) -c hss_keygen.c -o $@
hss_param.o: hss_param.c hss.h hss_internal.h endian.h hss_zeroize.h
$(CC) $(CFLAGS) -c hss_param.c -o $@
hss_reserve.o: hss_reserve.c common_defs.h hss_internal.h hss_reserve.h endian.h
$(CC) $(CFLAGS) -c hss_reserve.c -o $@
hss_sign.o: hss_sign.c common_defs.h hss.h hash.h endian.h hss_internal.h hss_aux.h hss_thread.h hss_reserve.h lm_ots.h lm_ots_common.h hss_derive.h
$(CC) $(CFLAGS) -c hss_sign.c -o $@
hss_sign_inc.o: hss_sign_inc.c hss.h common_defs.h hss.h hash.h endian.h hss_internal.h hss_aux.h hss_reserve.h hss_derive.h lm_ots.h lm_ots_common.h hss_sign_inc.h
$(CC) $(CFLAGS) -c hss_sign_inc.c -o $@
hss_thread_single.o: hss_thread_single.c hss_thread.h
$(CC) $(CFLAGS) -c hss_thread_single.c -o $@
hss_thread_pthread.o: hss_thread_pthread.c hss_thread.h
$(CC) $(CFLAGS) -c hss_thread_pthread.c -o $@
hss_verify.o: hss_verify.c hss_verify.h common_defs.h lm_verify.h lm_common.h lm_ots_verify.h hash.h endian.h hss_thread.h
$(CC) $(CFLAGS) -c hss_verify.c -o $@
hss_verify_inc.o: hss_verify_inc.c hss_verify_inc.h common_defs.h lm_verify.h lm_common.h lm_ots_verify.h hash.h endian.h hss_thread.h
$(CC) $(CFLAGS) -c hss_verify_inc.c -o $@
hss_zeroize.o: hss_zeroize.c hss_zeroize.h
$(CC) $(CFLAGS) -c hss_zeroize.c -o $@
lm_common.o: lm_common.c lm_common.h hash.h common_defs.h lm_ots_common.h
$(CC) $(CFLAGS) -c lm_common.c -o $@
lm_ots_common.o: lm_ots_common.c common_defs.h hash.h
$(CC) $(CFLAGS) -c lm_ots_common.c -o $@
lm_ots_sign.o: lm_ots_sign.c common_defs.h lm_ots.h lm_ots_common.h hash.h endian.h hss_zeroize.h hss_derive.h
$(CC) $(CFLAGS) -c lm_ots_sign.c -o $@
lm_ots_verify.o: lm_ots_verify.c lm_ots_verify.h lm_ots_common.h hash.h endian.h common_defs.h
$(CC) $(CFLAGS) -c lm_ots_verify.c -o $@
lm_verify.o: lm_verify.c lm_verify.h lm_common.h lm_ots_common.h lm_ots_verify.h hash.h endian.h common_defs.h
$(CC) $(CFLAGS) -c lm_verify.c -o $@
endian.o: endian.c endian.h
$(CC) $(CFLAGS) -c endian.c -o $@
hash.o: hash.c hash.h sha256.h hss_zeroize.h
$(CC) $(CFLAGS) -c hash.c -o $@
sha256.o: sha256.c sha256.h endian.h
$(CC) $(CFLAGS) -c sha256.c -o $@
clean:
-rm *.o *.a demo test_hss
Oops, something went wrong.

0 comments on commit 5915e7e

Please sign in to comment.