Skip to content

Commit

Permalink
update with freebsd f74d1fffcb030edab4568c710378f8093cc45a74
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Dec 1, 2024
1 parent 8b99aed commit fbe6276
Show file tree
Hide file tree
Showing 11 changed files with 2,415 additions and 315 deletions.
48 changes: 15 additions & 33 deletions tools/tools/crypto/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# $FreeBSD: src/tools/tools/crypto/Makefile,v 1.8 2004/09/07 18:35:00 sam Exp $
#
# Copyright (c) 2018 Conrad Meyer <[email protected]>
# Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
# All rights reserved.
#
Expand All @@ -25,40 +25,22 @@
# SUCH DAMAGE.
#

ALL= cryptotest cryptokeytest cryptostats \
ubsecstats hifnstats ipsecstats safestats
BINDIR= /usr/local/bin
PROGS= cryptocheck cryptotest cryptokeytest cryptostats \
hifnstats ipsecstats safestats
MAN=
BINDIR?= /usr/local/bin

all: ${ALL}
# cryptocheck: test symmetric crypto functions
LIBADD.cryptocheck+= crypto util

# program to test asymmetric crypto functions
cryptokeytest: cryptokeytest.c
${CC} -o cryptokeytest cryptokeytest.c -lcrypto
# cryptokeytest: test asymmetric crypto functions
LIBADD.cryptokeytest+= crypto

# program to dump statistics kept by the core crypto code
cryptostats: cryptostats.c
${CC} -o cryptostats cryptostats.c
# cryptostats: dump statistics kept by the core crypto code
# hifnstats: print statistics kept by the HIFN driver
# safestats: statistics kept by the SafeNet driver
# ipsecstats: print statistics kept by fast ipsec

# program to print statistics kept by the Broadcom driver
ubsecstats: ubsecstats.c
${CC} -o ubsecstats ubsecstats.c
CLEANFILES+= core a.out

# program to print statistics kept by the HIFN driver
hifnstats: hifnstats.c
${CC} -o hifnstats hifnstats.c

# program to print statistics kept by the SafeNet driver
safestats: safestats.c
${CC} -o safestats safestats.c

# program to print statistics kept by fast ipsec
ipsecstats: ipsecstats.c
${CC} -o ipsecstats ipsecstats.c

clean:
rm -f ${ALL} core a.out

install: ${ALL}
for i in ${ALL}; do \
install $$i ${DESTDIR}${BINDIR}; \
done
.include <bsd.progs.mk>
1 change: 0 additions & 1 deletion tools/tools/crypto/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$FreeBSD: src/tools/tools/crypto/README,v 1.1 2002/12/14 06:23:58 sam Exp $

The cryptotest program repeatedly encrypts and decrypts a buffer
with the built-in iv and key, using hardware crypto. At the end,
Expand Down
Loading

0 comments on commit fbe6276

Please sign in to comment.