Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/p/python-rsa/python-rsa_4.0-4_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/python-rsa-4.0-4y0o_f8v_/python-rsa_4.0-4_all.buildinfo Get source package info: python-rsa=4.0-4 Source URL: http://snapshot.notset.fr/mr/package/python-rsa/4.0-4/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11.1 automake=1:1.16.2-1 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.47 bash=5.0-6 binutils=2.34-6 binutils-common=2.34-6 binutils-x86-64-linux-gnu=2.34-6 bsdmainutils=11.1.2+b1 bsdutils=1:2.34-0.1 build-essential=12.8 bzip2=1.0.8-2 coreutils=8.30-3+b1 cpp=4:9.2.1-3.1 cpp-9=9.3.0-10 dash=0.5.10.2-7 debconf=1.5.74 debhelper=13 debianutils=4.9.1 dh-autoreconf=19 dh-python=4.20200315 dh-strip-nondeterminism=1.8.0-1 diffutils=1:3.7-3 dpkg=1.19.7 dpkg-dev=1.19.7 dwz=0.13-5 fdisk=2.34-0.1 file=1:5.38-4 findutils=4.7.0-1 g++=4:9.2.1-3.1 g++-9=9.3.0-10 gcc=4:9.2.1-3.1 gcc-10-base=10-20200418-1 gcc-9=9.3.0-10 gcc-9-base=9.3.0-10 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 grep=3.4-1 groff-base=1.22.4-4 gzip=1.10-2 hostname=3.23 init-system-helpers=1.57 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-7 libarchive-zip-perl=1.68-1 libasan5=9.3.0-10 libatomic1=10-20200418-1 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3 libaudit1=1:2.8.5-3+b1 libbinutils=2.34-6 libblkid1=2.34-0.1 libbsd0=0.10.0-1 libbz2-1.0=1.0.8-2 libc-bin=2.30-4 libc-dev-bin=2.30-4 libc6=2.30-4 libc6-dev=2.30-4 libcap-ng0=0.7.9-2.1+b2 libcc1-0=10-20200418-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.16-1 libcrypt1=1:4.4.16-1 libctf-nobfd0=2.34-6 libctf0=2.34-6 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.251 libdebhelper-perl=13 libdpkg-perl=1.19.7 libelf1=0.176-1.1 libexpat1=2.2.9-1 libfdisk1=2.34-0.1 libffi7=3.3-4 libfile-stripnondeterminism-perl=1.8.0-1 libgcc-9-dev=9.3.0-10 libgcc-s1=10-20200418-1 libgcrypt20=1.8.5-5 libgdbm-compat4=1.18.1-5 libgdbm6=1.18.1-5 libglib2.0-0=2.64.2-1 libgmp10=2:6.2.0+dfsg-4 libgomp1=10-20200418-1 libgpg-error0=1.37-1 libicu63=63.2-3 libisl22=0.22.1-1 libitm1=10-20200418-1 liblsan0=10-20200418-1 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-4 libmagic1=1:5.38-4 libmount1=2.34-0.1 libmpc3=1.1.0-1 libmpdec2=2.4.2-3 libmpfr6=4.0.2-1 libncursesw6=6.2-1 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libpcre2-8-0=10.34-7 libpcre3=2:8.39-12+b1 libperl5.30=5.30.0-10 libpipeline1=1.5.2-2 libpython3-stdlib=3.8.2-3 libpython3.8-minimal=3.8.2-1+b1 libpython3.8-stdlib=3.8.2-1+b1 libquadmath0=10-20200418-1 libreadline8=8.0-4 libseccomp2=2.4.3-1+b1 libselinux1=3.0-1+b3 libsigsegv2=2.12-2 libsmartcols1=2.34-0.1 libsqlite3-0=3.31.1-5 libssl1.1=1.1.1g-1 libstdc++-9-dev=9.3.0-10 libstdc++6=10-20200418-1 libsub-override-perl=0.09-2 libsystemd0=245.5-1 libtinfo6=6.2-1 libtool=2.4.6-14 libtsan0=10-20200418-1 libubsan1=10-20200418-1 libuchardet0=0.0.6-3 libudev1=245.5-1 libunistring2=0.9.10-2 libuuid1=2.34-0.1 libxml2=2.9.10+dfsg-5 linux-libc-dev=5.5.17-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.2.1-1.2 man-db=2.9.1-1 mawk=1.3.4.20200120-2 mime-support=3.64 ncurses-base=6.2-1 ncurses-bin=6.2-1 patch=2.7.6-6 perl=5.30.0-10 perl-base=5.30.0-10 perl-modules-5.30=5.30.0-10 po-debconf=1.0.21 python3=3.8.2-3 python3-all=3.8.2-3 python3-distutils=3.8.2-2 python3-lib2to3=3.8.2-2 python3-linecache2=1.0.0-4 python3-minimal=3.8.2-3 python3-mock=3.0.5-2 python3-pbr=5.4.5-3 python3-pkg-resources=45.2.0-1 python3-pyasn1=0.4.2-4 python3-setuptools=45.2.0-1 python3-six=1.14.0-3 python3-traceback2=1.4.0-6 python3-unittest2=1.1.0-6.1 python3.8=3.8.2-1+b1 python3.8-minimal=3.8.2-1+b1 readline-common=8.0-4 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-3 tar=1.30+dfsg-7 util-linux=2.34-0.1 xz-utils=5.2.4-1+b1 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20200425T031815Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d python-rsa=4.0-4 && mkdir -p /build/python-rsa-hNCADt && dpkg-source --no-check -x /*.dsc /build/python-rsa-hNCADt/python-rsa-4.0 && chown -R builduser:builduser /build/python-rsa-hNCADt" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/python-rsa-hNCADt/python-rsa-4.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1587786536" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/python-rsa-hNCADt /tmp/python-rsa-4.0-4y0o_f8v_ bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20200425T031815Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.NNgQEZbYs4 as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.NNgQEZbYs4 Reading package lists... Building dependency tree... util-linux is already the newest version (2.34-0.1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 132 kB of archives. After this operation, 393 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20200425T031815Z unstable/main amd64 libfakeroot amd64 1.24-1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20200425T031815Z unstable/main amd64 fakeroot amd64 1.24-1 [85.9 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 132 kB in 0s (1106 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4504 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.24-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.24-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.24-1_amd64.deb ... Unpacking fakeroot (1.24-1) ... Setting up libfakeroot:amd64 (1.24-1) ... Setting up fakeroot (1.24-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.30-4) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20200425T031815Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.NNgQEZbYs4 Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20200425T031815Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 19s (1182 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.NNgQEZbYs4 I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d python-rsa=4.0-4 && mkdir -p /build/python-rsa-hNCADt && dpkg-source --no-check -x /*.dsc /build/python-rsa-hNCADt/python-rsa-4.0 && chown -R builduser:builduser /build/python-rsa-hNCADt"' exec /tmp/mmdebstrap.NNgQEZbYs4 Reading package lists... NOTICE: 'python-rsa' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/python-team/modules/python-rsa.git Please use: git clone https://salsa.debian.org/python-team/modules/python-rsa.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 43.2 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main python-rsa 4.0-4 (dsc) [2047 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main python-rsa 4.0-4 (tar) [37.4 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main python-rsa 4.0-4 (diff) [3764 B] Fetched 43.2 kB in 0s (2955 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'python-rsa_4.0-4.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting python-rsa in /build/python-rsa-hNCADt/python-rsa-4.0 dpkg-source: info: unpacking python-rsa_4.0.orig.tar.gz dpkg-source: info: unpacking python-rsa_4.0-4.debian.tar.xz I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/python-rsa-hNCADt/python-rsa-4.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1587786536" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap.NNgQEZbYs4 dpkg-buildpackage: info: source package python-rsa dpkg-buildpackage: info: source version 4.0-4 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by TANIGUCHI Takaki dpkg-source --before-build . dpkg-source: info: using options from python-rsa-4.0/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/ fakeroot debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:217: python3.8 setup.py clean running clean removing '/build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.8' does not exist -- can't clean it dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules build-indep dh build-indep --with python3 --buildsystem=pybuild dh_update_autotools_config -i -O--buildsystem=pybuild dh_autoreconf -i -O--buildsystem=pybuild dh_auto_configure -i -O--buildsystem=pybuild I: pybuild base:217: python3.8 setup.py config running config dh_auto_build -i -O--buildsystem=pybuild I: pybuild base:217: /usr/bin/python3 setup.py build running build running build_py creating /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/machine_size.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/cli.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/randnum.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/prime.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/__init__.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/core.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/util.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/common.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/pkcs1_v2.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/pem.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/pkcs1.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/transform.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/_compat.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/asn1.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/key.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa copying rsa/parallel.py -> /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa dh_auto_test -i -O--buildsystem=pybuild I: pybuild base:217: cd /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build; python3.8 -m unittest discover -v test_empty_decrypt (tests.test_cli.EncryptDecryptTest) ... ok test_empty_encrypt (tests.test_cli.EncryptDecryptTest) ... ok test_encrypt_decrypt (tests.test_cli.EncryptDecryptTest) ... ok test_encrypt_decrypt_unhappy (tests.test_cli.EncryptDecryptTest) ... ok test_keygen_no_args (tests.test_cli.KeygenTest) ... ok test_keygen_priv_out_der (tests.test_cli.KeygenTest) ... ok test_keygen_priv_out_pem (tests.test_cli.KeygenTest) ... ok test_keygen_priv_stdout (tests.test_cli.KeygenTest) ... ok test_keygen_pub_out_pem (tests.test_cli.KeygenTest) ... ok test_private_to_public (tests.test_cli.PrivatePublicTest) ... ok test_empty_sign (tests.test_cli.SignVerifyTest) ... ok test_empty_verify (tests.test_cli.SignVerifyTest) ... ok test_sign_verify (tests.test_cli.SignVerifyTest) ... ok test_sign_verify_unhappy (tests.test_cli.SignVerifyTest) ... ok test_bad_type (tests.test_common.TestBitSize) ... ok test_negative_values (tests.test_common.TestBitSize) ... ok test_values (tests.test_common.TestBitSize) ... ok test_zero (tests.test_common.TestBitSize) ... ok test_struct_error_when_out_of_bounds (tests.test_common.TestByte) ... ok test_values (tests.test_common.TestByte) ... ok test_bad_type (tests.test_common.TestByteSize) ... ok test_values (tests.test_common.TestByteSize) ... ok test_zero (tests.test_common.TestByteSize) ... ok test_normal (tests.test_common.TestInverse) ... ok test_not_relprime (tests.test_common.TestInverse) ... ok test_byte (tests.test_compat.TestByte) ... ok test_byte_literal (tests.test_compat.TestByte) ... ok test_raises_StructError_on_overflow (tests.test_compat.TestByte) ... ok test_xor_bytes (tests.test_compat.TestBytes) ... ok test_xor_bytes_commutative (tests.test_compat.TestBytes) ... ok test_xor_bytes_length (tests.test_compat.TestBytes) ... ok test_enc_dec (tests.test_integers.IntegerTest) ... ok test_sign_verify (tests.test_integers.IntegerTest) ... ok test_blinding (tests.test_key.BlindingTest) Test blinding and unblinding. ... ok test_hash_possible (tests.test_key.HashTest) ... ok test_custom_exponent (tests.test_key.KeyGenTest) ... ok test_custom_getprime_func (tests.test_key.KeyGenTest) ... ok test_default_exponent (tests.test_key.KeyGenTest) ... ok test_exponents_coefficient_calculation (tests.test_key.KeyGenTest) ... ok test_load_malformed_private_key (tests.test_load_save_keys.DerTest) Test loading malformed private DER keys. ... ok test_load_private_key (tests.test_load_save_keys.DerTest) Test loading private DER keys. ... ok test_load_public_key (tests.test_load_save_keys.DerTest) Test loading public DER keys. ... ok test_save_private_key (tests.test_load_save_keys.DerTest) Test saving private DER keys. ... ok test_save_public_key (tests.test_load_save_keys.DerTest) Test saving public DER keys. ... ok test_load_from_disk (tests.test_load_save_keys.PemTest) Test loading a PEM file from disk. ... ok test_load_private_key (tests.test_load_save_keys.PemTest) Test loading private PEM files. ... ok test_load_public_key (tests.test_load_save_keys.PemTest) Test loading public PEM files. ... ok test_save_private_key (tests.test_load_save_keys.PemTest) Test saving private PEM files. ... ok test_save_public_key (tests.test_load_save_keys.PemTest) Test saving public PEM files. ... ok test_private_key (tests.test_load_save_keys.PickleTest) ... ok test_public_key (tests.test_load_save_keys.PickleTest) ... ok test_parallel_primegen (tests.test_parallel.ParallelTest) ... Usage: python3.8 -m unittest [options] private_key Decrypts a file. The original file must be shorter than the key length in order to have been encrypted. Options: -h, --help show this help message and exit -i INPUT, --input=INPUT Name of the file to decrypt. Reads from stdin if not specified. -o OUTPUT, --output=OUTPUT Name of the file to write the decrypted file to. Written to stdout if this option is not present. --keyform=KEYFORM Key format of the private key - default PEM Usage: python3.8 -m unittest [options] public_key Encrypts a file. The file must be shorter than the key length in order to be encrypted. Options: -h, --help show this help message and exit -i INPUT, --input=INPUT Name of the file to encrypt. Reads from stdin if not specified. -o OUTPUT, --output=OUTPUT Name of the file to write the encrypted file to. Written to stdout if this option is not present. --keyform=KEYFORM Key format of the public key - default PEM Usage: python3.8 -m unittest [options] keysize Generates a new RSA keypair of "keysize" bits. Options: -h, --help show this help message and exit --pubout=PUBOUT Output filename for the public key. The public key is not saved if this option is not present. You can use pyrsa- priv2pub to create the public key file later. -o OUT, --out=OUT Output filename for the private key. The key is written to stdout if this option is not present. --form=FORM key format of the private and public keys - default PEM Usage: python3.8 -m unittest [options] private_key hash_method Signs a file, outputs the signature. Choose the hash method from MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 Options: -h, --help show this help message and exit -i INPUT, --input=INPUT Name of the file to sign. Reads from stdin if not specified. -o OUTPUT, --output=OUTPUT Name of the file to write the signature to. Written to stdout if this option is not present. --keyform=KEYFORM Key format of the private key - default PEM Usage: python3.8 -m unittest [options] public_key signature_file Verifies a signature, exits with status 0 upon success, prints an error message and exits with status 1 upon error. Options: -h, --help show this help message and exit -i INPUT, --input=INPUT Name of the file to verify. Reads from stdin if not specified. --keyform=KEYFORM Key format of the public key - default PEM Message: 42 Encrypted: 785485694672611657 Decrypted: 42 Signed: 1882513945569255640 Verified: 42 ok test_bytes_private (tests.test_pem.TestByteInput) ... ok test_bytes_public (tests.test_pem.TestByteInput) ... ok test_bytes_private (tests.test_pem.TestByteOutput) ... ok test_bytes_public (tests.test_pem.TestByteOutput) ... ok test_bytes_private (tests.test_pem.TestBytesAndStrings) ... ok test_bytes_public (tests.test_pem.TestBytesAndStrings) ... ok test_unicode_private (tests.test_pem.TestBytesAndStrings) ... ok test_unicode_public (tests.test_pem.TestBytesAndStrings) ... ok test_values (tests.test_pem.TestMarkers) ... ok test_decoding_failure (tests.test_pkcs1.BinaryTest) ... ok test_enc_dec (tests.test_pkcs1.BinaryTest) ... ok test_randomness (tests.test_pkcs1.BinaryTest) Encrypting the same message twice should result in different ... ok test_alter_message (tests.test_pkcs1.SignatureTest) Altering the message should let the verification fail. ... ok test_find_signature_hash (tests.test_pkcs1.SignatureTest) Test happy flow of sign and find_signature_hash ... ok test_hash_sign_verify (tests.test_pkcs1.SignatureTest) Test happy flow of hash, sign, and verify ... ok test_multiple_signings (tests.test_pkcs1.SignatureTest) Signing the same message twice should return the same signatures. ... ok test_sign_different_key (tests.test_pkcs1.SignatureTest) Signing with another key should let the verification fail. ... ok test_sign_verify (tests.test_pkcs1.SignatureTest) Test happy flow of sign and verify ... ok test_split_hash_sign (tests.test_pkcs1.SignatureTest) Hashing and then signing should match with directly signing the message. ... ok test_invalid_hasher (tests.test_pkcs1_v2.MGFTest) Tests an invalid hasher generates an exception ... ok test_invalid_length (tests.test_pkcs1_v2.MGFTest) ... ok test_oaep_int_db_mask (tests.test_pkcs1_v2.MGFTest) ... ok test_get_primality_testing_rounds (tests.test_prime.PrimeTest) Test round calculation for primality testing. ... ok test_is_prime (tests.test_prime.PrimeTest) Test some common primes. ... ok test_mersenne_primes (tests.test_prime.PrimeTest) Tests first known Mersenne primes. ... ok test_miller_rabin_primality_testing (tests.test_prime.PrimeTest) Uses monkeypatching to ensure certain random numbers. ... ok test_enc_dec (tests.test_strings.StringTest) ... ok test_accuracy (tests.test_transform.Test_int2bytes) ... ok test_chunk_size (tests.test_transform.Test_int2bytes) ... ok test_codec_identity (tests.test_transform.Test_int2bytes) ... ok test_correctness_against_base_implementation (tests.test_transform.Test_int2bytes) ... ok test_raises_OverflowError_when_chunk_size_is_insufficient (tests.test_transform.Test_int2bytes) ... ok test_raises_TypeError_when_not_integer (tests.test_transform.Test_int2bytes) ... ok test_raises_ValueError_when_negative_integer (tests.test_transform.Test_int2bytes) ... ok test_zero (tests.test_transform.Test_int2bytes) ... ok ---------------------------------------------------------------------- Ran 87 tests in 4.828s OK Message: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01' Encrypted: b'=\xff\x01\xf8\xd7\xf3i\x97\xf2\x91\x827\xf0\xca985\x80\t& Z\xfajsT\x98GS\xadF\x84' Decrypted: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01' Message: b'Euro=\xe2\x82\xac ABCDEFGHIJKLMNOPQRSTUVWXYZ' Encrypted: b'Gn!\r\x15\x82\xe6nB\xcc\x08\xbb >\xc9\xec\\-\xf9Ij\x16\xc0>\xf0\xf9\xe5\x0f\xffM\x9c\xea\x90\xf1:Y\xe0\t\xd7\xf7\x85\x1c\xf8\x06\x19tRe' Decrypted: b'Euro=\xe2\x82\xac ABCDEFGHIJKLMNOPQRSTUVWXYZ' create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-indep dh binary-indep --with python3 --buildsystem=pybuild dh_testroot -i -O--buildsystem=pybuild dh_prep -i -O--buildsystem=pybuild dh_auto_install -i -O--buildsystem=pybuild I: pybuild base:217: /usr/bin/python3 setup.py install --root /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa running install running build running build_py running install_lib creating /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr creating /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib creating /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8 creating /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages creating /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/machine_size.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/cli.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/randnum.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/prime.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__init__.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/core.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/util.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/common.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/pkcs1_v2.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/pem.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/pkcs1.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/transform.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/_compat.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa creating /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/asn1.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/machine_size.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/transform.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/pem.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/__init__.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/key.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/common.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/util.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/pkcs1_v2.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/core.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/randnum.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/pkcs1.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/prime.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/parallel.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/cli.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/__pycache__/_compat.cpython-38.pyc -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__pycache__ copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/asn1.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/key.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa copying /build/python-rsa-hNCADt/python-rsa-4.0/.pybuild/cpython3_3.8/build/rsa/parallel.py -> /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/machine_size.py to machine_size.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/cli.py to cli.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/randnum.py to randnum.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/prime.py to prime.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/__init__.py to __init__.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/core.py to core.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/util.py to util.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/common.py to common.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/pkcs1_v2.py to pkcs1_v2.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/pem.py to pem.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/pkcs1.py to pkcs1.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/transform.py to transform.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/_compat.py to _compat.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/asn1.py to asn1.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/key.py to key.cpython-38.pyc byte-compiling /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa/parallel.py to parallel.cpython-38.pyc running install_egg_info running egg_info writing rsa.egg-info/PKG-INFO writing dependency_links to rsa.egg-info/dependency_links.txt writing entry points to rsa.egg-info/entry_points.txt writing requirements to rsa.egg-info/requires.txt writing top-level names to rsa.egg-info/top_level.txt reading manifest file 'rsa.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'rsa.egg-info/SOURCES.txt' Copying rsa.egg-info to /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/lib/python3.8/dist-packages/rsa-4.0.egg-info Skipping SOURCES.txt running install_scripts Installing pyrsa-decrypt script to /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/bin Installing pyrsa-encrypt script to /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/bin Installing pyrsa-keygen script to /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/bin Installing pyrsa-priv2pub script to /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/bin Installing pyrsa-sign script to /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/bin Installing pyrsa-verify script to /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/bin debian/rules override_dh_install make[1]: Entering directory '/build/python-rsa-hNCADt/python-rsa-4.0' dh_install for i in /build/python-rsa-hNCADt/python-rsa-4.0/debian/python3-rsa/usr/bin/pyrsa-* ; do \ mv ${i} ${i/pyrsa/py3rsa} ;\ done make[1]: Leaving directory '/build/python-rsa-hNCADt/python-rsa-4.0' dh_installdocs -i -O--buildsystem=pybuild dh_installchangelogs -i -O--buildsystem=pybuild dh_installman -i -O--buildsystem=pybuild dh_python3 -i -O--buildsystem=pybuild dh_installinit -i -O--buildsystem=pybuild dh_installsystemduser -i -O--buildsystem=pybuild dh_perl -i -O--buildsystem=pybuild dh_link -i -O--buildsystem=pybuild dh_strip_nondeterminism -i -O--buildsystem=pybuild dh_compress -i -O--buildsystem=pybuild dh_fixperms -i -O--buildsystem=pybuild dh_missing -i -O--buildsystem=pybuild dh_installdeb -i -O--buildsystem=pybuild dh_gencontrol -i -O--buildsystem=pybuild dh_md5sums -i -O--buildsystem=pybuild dh_builddeb -i -O--buildsystem=pybuild dpkg-deb: building package 'python3-rsa' in '../python3-rsa_4.0-4_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../python-rsa_4.0-4_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build . dpkg-source: info: using options from python-rsa-4.0/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/ dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/python-rsa-hNCADt /tmp/python-rsa-4.0-4y0o_f8v_ I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.NNgQEZbYs4... I: success in 268.2185 seconds md5: python3-rsa_4.0-4_all.deb: OK sha1: python3-rsa_4.0-4_all.deb: OK sha256: python3-rsa_4.0-4_all.deb: OK Checksums: OK