Source: python-pgpy Version: python-pgpy Severity: serious Tags: upstream ftbfs
https://ci.debian.net/packages/p/python-pgpy/testing/amd64/51527640/ 77s ____________ ERROR at setup of TestPGPKey.test_add_subkey_to_pubkey ____________ 77s 77s @pytest.fixture(scope='module') 77s def temp_subkey(): 77s > return PGPKey.new(PubKeyAlgorithm.RSAEncryptOrSign, 512) 77s 77s tests/test_10_exceptions.py:60: 77s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 77s /usr/lib/python3/dist-packages/pgpy/pgp.py:1610: in new 77s key._key = PrivKeyV4.new(key_algorithm, key_size, created=created) 77s /usr/lib/python3/dist-packages/pgpy/packet/packets.py:899: in new 77s pk.keymaterial._generate(key_size) 77s /usr/lib/python3/dist-packages/pgpy/packet/fields.py:1314: in _generate 77s pk = rsa.generate_private_key(65537, key_size, default_backend()) 77s /usr/lib/python3/dist- packages/cryptography/hazmat/primitives/asymmetric/rsa.py:142: in generate_private_key 77s _verify_rsa_parameters(public_exponent, key_size) 77s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 77s 77s public_exponent = 65537, key_size = 512 77s 77s def _verify_rsa_parameters(public_exponent: int, key_size: int) -> None: 77s if public_exponent not in (3, 65537): 77s raise ValueError( 77s "public_exponent must be either 3 (for legacy compatibility) or " 77s "65537. Almost everyone should choose 65537 here!" 77s ) 77s 77s if key_size < 1024: 77s > raise ValueError("key_size must be at least 1024-bits.") 77s E ValueError: key_size must be at least 1024-bits. "generate_private_key() now enforces a minimum RSA key size of 1024-bit." (https://cryptography.io/en/latest/changelog/#v43-0-0) The test seems to use 512. -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (101, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.9.12-amd64 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled