rsadowski 21240129e3 Import security/argon2
$ pkg/DESCR
C implementation of Argon2, the password-hashing function that won the Password
Hashing Competition (PHC).

Argon2 is a password-hashing function that summarizes the state of the art in
the design of memory-hard functions and can be used to hash passwords for
credential storage, key derivation, or other applications.

It has a simple design aimed at the highest memory filling rate and effective
use of multiple computing units, while still providing defense against tradeoff
attacks (by exploiting the cache and memory organization of the recent
processors).

tweaks from landry@ and sthen@. ok landry@
2018-03-05 09:23:43 +00:00

37 lines
935 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2018/03/05 09:23:43 rsadowski Exp $
COMMENT = C implementation of Argon2 - password hashing function
GH_ACCOUNT = P-H-C
GH_PROJECT = phc-winner-argon2
GH_TAGNAME = 20171227
DISTNAME = argon2-${GH_TAGNAME}
SHARED_LIBS += argon2 0.0 # 0.0
CATEGORIES = security
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
# CC0 License or the Apache 2.0
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c pthread
MAKE_FLAGS = CC="$(CC)" INSTALL="$(INSTALL)" OPTTARGET=none \
PREFIX="${TRUEPREFIX}" ABI_VERSION="${LIBargon2_VERSION}"
TEST_FLAGS = OPTTARGET=none
USE_GMAKE = Yes
TEST_TARGET = test
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/argon2
${INSTALL_DATA} ${WRKSRC}/{LICENSE,README.md,argon2-specs.pdf} \
${PREFIX}/share/doc/argon2/
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
${INSTALL_DATA} ${WRKBUILD}/libargon2.pc ${PREFIX}/lib/pkgconfig
.include <bsd.port.mk>