From nobody Wed Apr 5 20:11:17 2023 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 4PsG3p3c6qz445Z6; Wed, 5 Apr 2023 20:11:18 +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 4PsG3p0SGsz4MSM; Wed, 5 Apr 2023 20:11:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680725478; 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=fWgRGnS3QffSX71wn/6VhDGxhelkOkaCvTr1EtbSvvg=; b=S+PKD+ALSAwJ7SXBxMgXRJSDUy7CXeVr9cmmh03bpIJbCvqMtdQhVv/STeBEPYXvcgUE8D jNfJE1jtfu+kVD5nP5cTfGkZTQ5AjGDXhwS2R+FTkNd4WVk++VGnsbuI6hXxEt610N09jb A7YZCkFTYBbzQX20DTAxmwsvx6yQUbiJ8DkBnwdfu2/BpSUEAfN0Ob+nRbJB24vgxi3JKy fBYPwyes3P72qy1p/O87RQgMVUgprOIrZnWT6rXZpStlR3rz+jf7S+E0ifGb2n2AHega7C SsEHD67fthyT1gJWEBpO6S5B6zs/NPelolaU/WQQqaLdvL6qCUvBjf00QgQqmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680725478; 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=fWgRGnS3QffSX71wn/6VhDGxhelkOkaCvTr1EtbSvvg=; b=bi17DETCtlSMwipgRiUnrhAv4FXpAuQ7kXb+CXe9nLrAlds1RhIwdeX9kcITyXMnvFhZUP drp/r+uHd+nSAbaqDg05B3OnVYB1HKL3FXUZ6wtul6N/PJKz3TxCquzbZ5+g7OlAFaGV1E 5YUlyGJHJQq/woNVNwklMc3iCDzeHqk1a84SlveSFNFG3u1Hs5sIJCEgCLlxivxUezs2xa kuxqr2MQ5SMKrkAzQRioTBc1ClIMRK/JsVRZx9hIfwPOkHp1+LK2WWHH3e11NrQuNcgtmN 9EWf6jASwpISd3DKDH8woi6uvDODdLAiwLvnwFDMou5ch3kGmHgPi1G08PgBhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680725478; a=rsa-sha256; cv=none; b=WiUDUkapwgXB06+on9d+dT6VOtRCIdfP5aBiUWMdNlgvOkYaCOMA+WUgemwtfw57BW/weM B9/x5jeL0nQ049iVL4Wx5rvtHLlABMaqWJeBXR8T06Sf8EwVUnrb1R+GTOmizokSITzmZp YeAFDUbiKgV2HoWFZDrACtbDdGwBfwanCQa5cgzH0pFF47WwrZuP3PaJAuQ4HQCNKvH1z0 8Q/EGRGpKGgyOqkc84F9/x588fsWWGhWQxgS2oouDPAfRYO4QP6yOUyVHiVSwanePf3uCR cX2wk3fVrtbP0F+FRIXK55clRm0t5eMZ2fuGCGGbgx77gDsS0kVCWuRRUEmVCw== 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 4PsG3n6HpnzcM7; Wed, 5 Apr 2023 20:11:17 +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 335KBHhZ057829; Wed, 5 Apr 2023 20:11:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 335KBHaZ057828; Wed, 5 Apr 2023 20:11:17 GMT (envelope-from git) Date: Wed, 5 Apr 2023 20:11:17 GMT Message-Id: <202304052011.335KBHaZ057828@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Eugene Grosbein Subject: git: 08e811b21810 - main - new port: security/pygost 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: eugen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 08e811b21810363333719a62794f035c0dab73c9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=08e811b21810363333719a62794f035c0dab73c9 commit 08e811b21810363333719a62794f035c0dab73c9 Author: Eugene Grosbein AuthorDate: 2023-04-05 20:04:12 +0000 Commit: Eugene Grosbein CommitDate: 2023-04-05 20:04:12 +0000 new port: security/pygost PyGOST is pure Python 2.7/3.x GOST cryptographic functions library. --- security/Makefile | 1 + security/pygost/Makefile | 25 +++++++++++++++++++++++++ security/pygost/distinfo | 3 +++ security/pygost/pkg-descr | 29 +++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) diff --git a/security/Makefile b/security/Makefile index 8f8a52918d47..88021d3ad285 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1031,6 +1031,7 @@ SUBDIR += py-zkg SUBDIR += py-zope.password SUBDIR += py-zxcvbn + SUBDIR += pygost SUBDIR += qtkeychain SUBDIR += quantis-kmod SUBDIR += racoon2 diff --git a/security/pygost/Makefile b/security/pygost/Makefile new file mode 100644 index 000000000000..34badf62edbc --- /dev/null +++ b/security/pygost/Makefile @@ -0,0 +1,25 @@ +PORTNAME= pygost +PORTVERSION= 5.11 +CATEGORIES= security python +MASTER_SITES= http://www.pygost.cypherpunks.ru/ \ + http://www.grosbein.net/freebsd/distfiles/ \ + LOCAL/eugen +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +EXTRACT_SUFX= .tar.zst + +MAINTAINER= eugen@FreeBSD.org +COMMENT= Pure Python 2.7/3.x GOST cryptographic functions library +WWW= http://www.pygost.cypherpunks.ru/ + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyderasn>=9.3:devel/py-pyderasn@${PY_FLAVOR} + +USES= tar:zst python +USE_PYTHON= autoplist concurrent distutils optsuffix + +NO_ARCH= yes +PYDISTUTILS_INSTALLARGS+= --install-data ${DOCSDIR} + +.include diff --git a/security/pygost/distinfo b/security/pygost/distinfo new file mode 100644 index 000000000000..cf0ad0a15321 --- /dev/null +++ b/security/pygost/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1680282037 +SHA256 (pygost-5.11.tar.zst) = 2e9900e74d11a59a8441a19a8e789a6b8eae7209ba8b74a4e28910ba90b85c66 +SIZE (pygost-5.11.tar.zst) = 93974 diff --git a/security/pygost/pkg-descr b/security/pygost/pkg-descr new file mode 100644 index 000000000000..efb7dd2a3669 --- /dev/null +++ b/security/pygost/pkg-descr @@ -0,0 +1,29 @@ +PyGOST is pure Python 2.7/3.x GOST cryptographic functions library. +Currently supported algorithms are: + +GOST 28147-89 (RFC 5830) block cipher with ECB, CNT (CTR), CFB, MAC, + CBC (RFC 4357) modes of operation +various 28147-89-related S-boxes included +GOST R 34.11-94 hash function (RFC 5831) +GOST R 34.11-94 based PBKDF2 function +GOST R 34.11-2012 Streebog hash function (RFC 6986) +GOST R 34.11-2012 based PBKDF2 function (R 50.1.111-2016) +GOST R 34.10-2001 (RFC 5832) public key signature function +GOST R 34.10-2012 (RFC 7091) public key signature function +various 34.10 curve parameters included +Coordinates conversion from twisted Edwards to Weierstrass form and vice versa +VKO GOST R 34.10-2001 key agreement function (RFC 4357) +VKO GOST R 34.10-2012 key agreement function (RFC 7836) +28147-89 and CryptoPro key wrapping (RFC 4357) +28147-89 CryptoPro key meshing for CFB and CBC modes (RFC 4357) +RFC 4491 (using GOST algorithms with X.509) compatibility helpers +GOST R 34.12-2015 128-bit block cipher Kuznechik (RFC 7801) +GOST R 34.12-2015 64-bit block cipher Magma +GOST R 34.13-2015 padding methods and block cipher modes of operation (ECB, + CTR, OFB, CBC, CFB, MAC), ISO 10126 padding +MGM AEAD mode for 64 and 128 bit ciphers (RFC 9058) +CTR-ACPKM, OMAC-ACPKM-Master modes of operation (R 1323565.1.017-2018) +KExp15/KImp15 key export/import functions (R 1323565.1.017-2018) +KDF_GOSTR3411_2012_256, KDF_TREE_GOSTR3411_2012_256 (R 50.1.113-2016) +KEG export key generation function (R 1323565.1.020-2018) +PEP247-compatible hash/MAC functions