@@ -68,6 +68,12 @@ nodist_noinst_HEADERS = \
68
68
crypt-hashes.h \
69
69
crypt-symbol-vers.h
70
70
noinst_HEADERS = \
71
+ lib/alg-argon2.h \
72
+ lib/alg-argon2-blamka.h \
73
+ lib/alg-argon2-core.h \
74
+ lib/alg-argon2-encoding.h \
75
+ lib/alg-argon2-renames.h \
76
+ lib/alg-argon2-thread.h \
71
77
lib/alg-blake2b.h \
72
78
lib/alg-des.h \
73
79
lib/alg-gost3411-2012-const.h \
@@ -101,6 +107,11 @@ lib_LTLIBRARIES = \
101
107
libcrypt.la
102
108
103
109
libcrypt_la_SOURCES = \
110
+ lib/alg-argon2.c \
111
+ lib/alg-argon2-core.c \
112
+ lib/alg-argon2-encoding.c \
113
+ lib/alg-argon2-ref.c \
114
+ lib/alg-argon2-thread.c \
104
115
lib/alg-blake2b.c \
105
116
lib/alg-des-tables.c \
106
117
lib/alg-des.c \
@@ -116,6 +127,7 @@ libcrypt_la_SOURCES = \
116
127
lib/alg-sm3-hmac.c \
117
128
lib/alg-yescrypt-common.c \
118
129
lib/alg-yescrypt-opt.c \
130
+ lib/crypt-argon2.c \
119
131
lib/crypt-bcrypt.c \
120
132
lib/crypt-des.c \
121
133
lib/crypt-gensalt-static.c \
@@ -349,6 +361,9 @@ endif
349
361
# The list should otherwise be kept in alphabetical order.
350
362
351
363
check_PROGRAMS = \
364
+ test/ka-argon2d \
365
+ test/ka-argon2i \
366
+ test/ka-argon2id \
352
367
test/ka-bcrypt \
353
368
test/ka-bcrypt-a \
354
369
test/ka-bcrypt-x \
@@ -367,6 +382,7 @@ check_PROGRAMS = \
367
382
test/ka-sm3-yescrypt \
368
383
test/ka-sunmd5 \
369
384
test/ka-yescrypt \
385
+ test/alg-argon2 \
370
386
test/alg-blake2b \
371
387
test/alg-des \
372
388
test/alg-gost3411-2012 \
@@ -401,6 +417,9 @@ check_PROGRAMS = \
401
417
402
418
# All of the known-answer tests are compiled from the same source file,
403
419
# with different macros defined.
420
+ test_ka_argon2d_SOURCES = test/ka-tester.c
421
+ test_ka_argon2i_SOURCES = test/ka-tester.c
422
+ test_ka_argon2id_SOURCES = test/ka-tester.c
404
423
test_ka_bcrypt_SOURCES = test/ka-tester.c
405
424
test_ka_bcrypt_a_SOURCES = test/ka-tester.c
406
425
test_ka_bcrypt_x_SOURCES = test/ka-tester.c
@@ -420,6 +439,9 @@ test_ka_sm3_yescrypt_SOURCES = test/ka-tester.c
420
439
test_ka_sunmd5_SOURCES = test/ka-tester.c
421
440
test_ka_yescrypt_SOURCES = test/ka-tester.c
422
441
442
+ test_ka_argon2d_CPPFLAGS = $(AM_CPPFLAGS ) -DTEST_argon2d
443
+ test_ka_argon2i_CPPFLAGS = $(AM_CPPFLAGS ) -DTEST_argon2i
444
+ test_ka_argon2id_CPPFLAGS = $(AM_CPPFLAGS ) -DTEST_argon2id
423
445
test_ka_bcrypt_CPPFLAGS = $(AM_CPPFLAGS ) -DTEST_bcrypt
424
446
test_ka_bcrypt_a_CPPFLAGS = $(AM_CPPFLAGS ) -DTEST_bcrypt_a
425
447
test_ka_bcrypt_x_CPPFLAGS = $(AM_CPPFLAGS ) -DTEST_bcrypt_x
@@ -510,6 +532,9 @@ test_short_outbuf_LDADD = $(COMMON_TEST_OBJECTS)
510
532
test_preferred_method_LDADD = $(COMMON_TEST_OBJECTS )
511
533
test_special_char_salt_LDADD = $(COMMON_TEST_OBJECTS )
512
534
535
+ test_ka_argon2d_LDADD = $(COMMON_TEST_OBJECTS )
536
+ test_ka_argon2i_LDADD = $(COMMON_TEST_OBJECTS )
537
+ test_ka_argon2id_LDADD = $(COMMON_TEST_OBJECTS )
513
538
test_ka_bcrypt_LDADD = $(COMMON_TEST_OBJECTS )
514
539
test_ka_bcrypt_a_LDADD = $(COMMON_TEST_OBJECTS )
515
540
test_ka_bcrypt_x_LDADD = $(COMMON_TEST_OBJECTS )
@@ -537,6 +562,15 @@ test_ka_yescrypt_LDADD = $(COMMON_TEST_OBJECTS)
537
562
test_gensalt_LDADD = \
538
563
lib/libcrypt_la-util-xstrcpy.lo \
539
564
$(COMMON_TEST_OBJECTS )
565
+ test_alg_argon2_LDADD = \
566
+ lib/libcrypt_la-alg-argon2.lo \
567
+ lib/libcrypt_la-alg-argon2-core.lo \
568
+ lib/libcrypt_la-alg-argon2-encoding.lo \
569
+ lib/libcrypt_la-alg-argon2-ref.lo \
570
+ lib/libcrypt_la-alg-argon2-thread.lo \
571
+ lib/libcrypt_la-alg-blake2b.lo \
572
+ lib/libcrypt_la-util-xbzero.lo
573
+ # $(COMMON_TEST_OBJECTS)
540
574
test_alg_blake2b_LDADD = \
541
575
lib/libcrypt_la-alg-blake2b.lo \
542
576
lib/libcrypt_la-util-xbzero.lo \
0 commit comments