avsm c8b85477b3 initial import of cryptokit-1.2
--

The Cryptokit library for Objective Caml provides a variety of
cryptographic primitives that can be used to implement cryptographic
protocols in security-sensitive applications.  The primitives
provided include:

- Symmetric-key ciphers: AES, DES, Triple-DES, ARCfour,
  in ECB, CBC, CFB and OFB modes.
- Public-key cryptography: RSA encryption, Diffie-Hellman key
  agreement.
- Hash functions and MACs: SHA-1, MD5, and MACs based on 
  AES and DES.
- Random number generation.
- Encodings and compression: Base64, hexadecimal, Zlib compression.

Additional ciphers and hashes can easily be used in conjunction
with the library.  In particular, basic mechanisms such as chaining
modes, output buffering, and padding are provided by generic classes
that can easily be composed with user-provided ciphers.  More
generally, the library promotes a "Lego"-like style of constructing
and composing transformations over character streams.
2003-07-21 02:39:46 +00:00

36 lines
990 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2003/07/21 02:39:46 avsm Exp $
COMMENT= "cryptographic framework for the Objective-ML language"
CATEGORIES= security
DISTNAME= cryptokit-1.2
MASTER_SITES= http://caml.inria.fr/distrib/bazar-ocaml/
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
HOMEPAGE= http://pauillac.inria.fr/~xleroy/software.html
# GPL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
BUILD_DEPENDS= :ocaml-*:lang/ocaml
OCAML_LIBDIR= ${PREFIX}/lib/ocaml
DOC_DIR= ${PREFIX}/share/doc/cryptokit
MAKE_FLAGS= CFLAGS="${CFLAGS} -DHAVE_ZLIB"
FAKE_FLAGS= INSTALLDIR="${DESTDIR}${OCAML_LIBDIR}"
REGRESS_TARGET= test
do-install:
${INSTALL_DATA_DIR} ${OCAML_LIBDIR}
${INSTALL_DATA_DIR} ${DOC_DIR}
.for i in cryptokit.cmi cryptokit.cma cryptokit.mli libcryptokit.a
${INSTALL_DATA} ${WRKBUILD}/${i} ${OCAML_LIBDIR}
.endfor
${LOCALBASE}/bin/ocamldoc -html -I ${WRKSRC} -d ${DOC_DIR} ${WRKSRC}/cryptokit.mli
.include <bsd.port.mk>