From nobody Sat Apr 16 04:20:53 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 573335D5651; Sat, 16 Apr 2022 04:20:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KgKkZ3xyDz3LDf; Sat, 16 Apr 2022 04:20:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650082854; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sVlvsee/Qo8Otk/uTAQi+5VzZskpdOmHkACCWuUibjg=; b=g1XUPAigNsGPa0wNF5e41bLTy8dsWThA/qUYMa9CiWtwpPknf+GnhqqDoYu2kmEIWW48g2 2glar85+oe89PBWvYZNBhwiMKgd2fnwXhbw9TDVKqGoIEO0JFN3Cav7v6VNgMQ6fzH87GN V8kLFWKNv/GoKRJP9xZ/NcXY64yB8nsp3UYQ2yu9yXkDVNtNTNKJJbN0qWk3A5QcVycQMm DLrVMRnbrq8mBplLfQVk9Zz5sWEtJE4FFTV0Ew5U6RCTroZpdYTv6bpnzKMJYrECkZU25a L81sU02Zv4hEalo43L7Wf9RL+9mec4m3nlTaxG88Xkmi2m04gHW8uktYcVFbGg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CAE1122D0F; Sat, 16 Apr 2022 04:20:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23G4KrTQ098569; Sat, 16 Apr 2022 04:20:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23G4KrM6098568; Sat, 16 Apr 2022 04:20:53 GMT (envelope-from git) Date: Sat, 16 Apr 2022 04:20:53 GMT Message-Id: <202204160420.23G4KrM6098568@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 6916df3fc01a - main - security/py-tinyaes: Add py-tinyaes 1.0.3 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6916df3fc01a63dce046c1c324310b099a6593a6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650082854; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sVlvsee/Qo8Otk/uTAQi+5VzZskpdOmHkACCWuUibjg=; b=CRAQXKDUMJgUM0w71iNf/U+dU65Mc2Y6WC5tMXphNOfwzvuOiG0B1jG4ZUKkpF7QULWFQR yzEHnY+AIHTF2espHbHEzx4d8Tx+OQ0+xInbsSyQT8a7hjTnvGxOUqOMcpSRNTnqrKv0IQ nrGZEryxw9qdQYPbOn0yHVfElKp/xBMv8rM24kLnHLACqk0vszqIqnc2vMvn4NvG/w/FVt 4fEsTPTG0yaHtyJcFOfi2LHExVNNie9rX2Z66InuP2yy01C8S3A8bdyQjbBZS1SIgKyNAp T+mIjvz5nfgXTdfp8JAhvxcyBhkuXyj/+AsEC4VNtLoK/LCk7zqVL7XJpr7DZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650082854; a=rsa-sha256; cv=none; b=LppHzdN/J39B8y+yJ4DXHXVpbNobBHjCVH6msU0QR+cl0vr6CO8I9U34vSA978/bEcXSsv tLYU8DvWAaj9GRBRVqY90EPrE+FAjUa1Jp2hC4rNJ1fjkFlqWGfmqFq6ec0qOm7AZSxU56 0p3+htAa/mmh9uBp+wNCU6N2DFHb4/4EDDEhttPaO7sQ7F2DbiBh+oNGwog2OJgjbGAuhE XNeWII/AsWKNUY+ux2sClg95HYsCZvQy1OPm1ri2I0+YXOL6jGIZQl2HH3vd0ve3yog60U X+NmSsuk0SDiU4+WzziPJepV8Pgl7WqoqDaAdbfR10gd8dJ9ZobX2WAc8RHy7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6916df3fc01a63dce046c1c324310b099a6593a6 commit 6916df3fc01a63dce046c1c324310b099a6593a6 Author: Po-Chuan Hsieh AuthorDate: 2022-04-16 03:39:16 +0000 Commit: Po-Chuan Hsieh 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 + +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 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