Date: Sat, 16 Apr 2022 04:20:53 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 6916df3fc01a - main - security/py-tinyaes: Add py-tinyaes 1.0.3 Message-ID: <202204160420.23G4KrM6098568@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6916df3fc01a63dce046c1c324310b099a6593a6 commit 6916df3fc01a63dce046c1c324310b099a6593a6 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-04-16 03:39:16 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-04-16 04:19:04 +0000 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 --- security/Makefile | 1 + security/py-tinyaes/Makefile | 21 +++++++++++++++++++++ security/py-tinyaes/distinfo | 3 +++ security/py-tinyaes/pkg-descr | 11 +++++++++++ 4 files changed, 36 insertions(+) diff --git a/security/Makefile b/security/Makefile index b78c14522d4c..02a89b045220 100644 --- a/security/Makefile +++ b/security/Makefile @@ -977,6 +977,7 @@ SUBDIR += py-stix2 SUBDIR += py-stix2-patterns SUBDIR += py-taxii2-client + SUBDIR += py-tinyaes SUBDIR += py-tls-parser SUBDIR += py-tlslite SUBDIR += py-tlslite-ng diff --git a/security/py-tinyaes/Makefile b/security/py-tinyaes/Makefile new file mode 100644 index 000000000000..700008fb46cb --- /dev/null +++ b/security/py-tinyaes/Makefile @@ -0,0 +1,21 @@ +# 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> diff --git a/security/py-tinyaes/distinfo b/security/py-tinyaes/distinfo new file mode 100644 index 000000000000..3748cd72611b --- /dev/null +++ b/security/py-tinyaes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1649423652 +SHA256 (tinyaes-1.0.3.tar.gz) = 4655f32282b13a3241a8087b984909855a99772a9c0d8dfcce740c76e5085ddc +SIZE (tinyaes-1.0.3.tar.gz) = 42781 diff --git a/security/py-tinyaes/pkg-descr b/security/py-tinyaes/pkg-descr new file mode 100644 index 000000000000..31e2a3bfd2b0 --- /dev/null +++ b/security/py-tinyaes/pkg-descr @@ -0,0 +1,11 @@ +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204160420.23G4KrM6098568>