mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
f7781d030c
Add lua bindings to hashing functions. sha256 is available. sha256.new craetes a new object. sha256.update updates the digest. sha256.digest returns the digest as a binary string and resets the context. sha256.hexdigest returns the digest as a string of hex digits and then resets the cotnext. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43872
15 lines
183 B
Makefile
15 lines
183 B
Makefile
SHLIB_NAME= hash.so
|
|
SHLIBDIR= ${LIBDIR}/flua
|
|
|
|
SRCS+= lhash.c
|
|
|
|
CFLAGS+= \
|
|
-I${SRCTOP}/contrib/lua/src \
|
|
-I${SRCTOP}/lib/liblua \
|
|
|
|
LIBADD+= md
|
|
|
|
MAN= hash.3lua
|
|
|
|
.include <bsd.lib.mk>
|