You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 9 години
преди 7 години
преди 9 години
преди 9 години
преди 7 години
преди 6 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 6 години
преди 7 години
преди 7 години
преди 9 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. CC = /usr/bin/gcc
  2. CFLAGS = -Wall -g -O3 -Wextra -Wpedantic
  3. LDLIBS = -lcrypto
  4. SOURCES = params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss.c xmss_core.c xmss_commons.c utils.c
  5. HEADERS = params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss.h xmss_core.h xmss_commons.h utils.h
  6. SOURCES_FAST = $(subst xmss_core.c,xmss_core_fast.c,$(SOURCES))
  7. HEADERS_FAST = $(subst xmss_core.c,xmss_core_fast.c,$(HEADERS))
  8. TESTS = test/wots \
  9. test/oid \
  10. test/speed \
  11. test/xmss_determinism \
  12. test/xmss \
  13. test/xmss_fast \
  14. test/xmssmt \
  15. test/xmssmt_fast \
  16. UI = ui/xmss_keypair \
  17. ui/xmss_sign \
  18. ui/xmss_open \
  19. ui/xmssmt_keypair \
  20. ui/xmssmt_sign \
  21. ui/xmssmt_open \
  22. ui/xmss_keypair_fast \
  23. ui/xmss_sign_fast \
  24. ui/xmss_open_fast \
  25. ui/xmssmt_keypair_fast \
  26. ui/xmssmt_sign_fast \
  27. ui/xmssmt_open_fast \
  28. all: tests ui
  29. tests: $(TESTS)
  30. ui: $(UI)
  31. test: $(TESTS:=.exec)
  32. .PHONY: clean test
  33. test/%.exec: test/%
  34. @$<
  35. test/xmss_fast: test/xmss.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
  36. $(CC) -DXMSS_SIGNATURES=1024 $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
  37. test/xmss: test/xmss.c $(SOURCES) $(OBJS) $(HEADERS)
  38. $(CC) $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
  39. test/xmssmt_fast: test/xmss.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
  40. $(CC) -DXMSSMT -DXMSS_SIGNATURES=1024 $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
  41. test/xmssmt: test/xmss.c $(SOURCES) $(OBJS) $(HEADERS)
  42. $(CC) -DXMSSMT $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
  43. test/speed: test/speed.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
  44. $(CC) -DXMSSMT -DXMSS_VARIANT=\"XMSSMT-SHA2_20/2_256\" $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
  45. test/%: test/%.c $(SOURCES) $(OBJS) $(HEADERS)
  46. $(CC) $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
  47. ui/xmss_%_fast: ui/%.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
  48. $(CC) $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
  49. ui/xmssmt_%_fast: ui/%.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
  50. $(CC) -DXMSSMT $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
  51. ui/xmss_%: ui/%.c $(SOURCES) $(OBJS) $(HEADERS)
  52. $(CC) $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
  53. ui/xmssmt_%: ui/%.c $(SOURCES) $(OBJS) $(HEADERS)
  54. $(CC) -DXMSSMT $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
  55. clean:
  56. -$(RM) $(TESTS)
  57. -$(RM) $(UI)