freebsd-ports/security/py-tinyaes/Makefile
Po-Chuan Hsieh 6916df3fc0
security/py-tinyaes: Add py-tinyaes 1.0.3
tinyaes is a few lines Cython wrapper for the tiny-AES-c library, a Small
portable AES128/192/256 in C.

The library offers a few modes, CTR mode is the only one currently wrapped.
Given the C API works modifying a buffer in-place, the wrapper offers:
- CTR_xcrypt_buffer(..) that works on all bytes convertible types, and
  encrypting a copy of the buffer,
- CTR_xcrypt_buffer_inplace(..) that works on bytearrays only, modifying the
  buffer in-place.

WWW: https://github.com/naufraghi/tinyaes-py
2022-04-16 12:19:04 +08:00

21 lines
489 B
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= tinyaes
PORTVERSION= 1.0.3
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Tiny-AES-c wrapper in Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= python:3.7+
USE_PYTHON= autoplist concurrent cython distutils
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>