Skip to content

Commit

Permalink
new port: security/pygost
Browse files Browse the repository at this point in the history
PyGOST is pure Python 2.7/3.x GOST cryptographic functions library.
  • Loading branch information
Eugene Grosbein authored and Eugene Grosbein committed Apr 5, 2023
1 parent edc8695 commit 08e811b
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@
SUBDIR += py-zkg
SUBDIR += py-zope.password
SUBDIR += py-zxcvbn
SUBDIR += pygost
SUBDIR += qtkeychain
SUBDIR += quantis-kmod
SUBDIR += racoon2
Expand Down
25 changes: 25 additions & 0 deletions security/pygost/Makefile
Original file line number Diff line number Diff line change
@@ -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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions security/pygost/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1680282037
SHA256 (pygost-5.11.tar.zst) = 2e9900e74d11a59a8441a19a8e789a6b8eae7209ba8b74a4e28910ba90b85c66
SIZE (pygost-5.11.tar.zst) = 93974
29 changes: 29 additions & 0 deletions security/pygost/pkg-descr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 08e811b

Please sign in to comment.