python-rsa: bump to 4.9.1

Changelog: https://github.com/sybrenstuvel/python-rsa/blob/main/CHANGELOG.md
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-04-01 14:49:18 +03:00
committed by Alexandru Ardelean
parent 1b53e6c07f
commit 349bf45ee1
2 changed files with 25 additions and 2 deletions

View File

@@ -1,11 +1,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=python-rsa
PKG_VERSION:=4.9
PKG_VERSION:=4.9.1
PKG_RELEASE:=1
PYPI_NAME:=rsa
PKG_HASH:=e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21
PKG_HASH:=e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75
PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
PKG_LICENSE:=Apache-2.0

23
lang/python/python-rsa/test.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
[ "$1" = python3-rsa ] || exit 0
python3 - << 'EOF'
import rsa
# Generate keys
(pub, priv) = rsa.newkeys(512)
# Sign and verify
message = b"Hello OpenWrt"
signature = rsa.sign(message, priv, "SHA-256")
verified = rsa.verify(message, signature, pub)
assert verified == "SHA-256", f"expected SHA-256, got {verified}"
# Encrypt and decrypt
encrypted = rsa.encrypt(message, pub)
decrypted = rsa.decrypt(encrypted, priv)
assert decrypted == message, f"decryption failed"
EOF