Diff of the two buildlogs: -- --- b1/build.log 2025-02-03 08:32:28.558780699 +0000 +++ b2/build.log 2025-02-03 08:37:52.284189375 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Feb 2 20:29:17 -12 2025 -I: pbuilder-time-stamp: 1738571357 +I: Current time: Mon Feb 3 22:32:41 +14 2025 +I: pbuilder-time-stamp: 1738571561 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -26,52 +26,84 @@ dpkg-source: info: applying 0005-Drop-development-dependency-on-bundler.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/31586/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/D01_modify_environment starting +debug: Running on cbxi4a. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Feb 3 08:33 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='e78f4732f8144028b2ea81fd62b32b87' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='31586' - PS1='# ' - PS2='> ' + INVOCATION_ID=b681acda41bd4004b4f79374063a2471 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=11676 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.tJUm7bOr/pbuilderrc_C0ja --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.tJUm7bOr/b1 --logfile b1/build.log ruby-rbnacl_7.1.1-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.tJUm7bOr/pbuilderrc_mdXy --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.tJUm7bOr/b2 --logfile b2/build.log ruby-rbnacl_7.1.1-1.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64b 6.1.0-30-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/31586/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -288,7 +320,7 @@ Get: 167 http://deb.debian.org/debian unstable/main armhf ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [90.2 kB] Get: 168 http://deb.debian.org/debian unstable/main armhf ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 169 http://deb.debian.org/debian unstable/main armhf ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] -Fetched 55.4 MB in 1s (37.9 MB/s) +Fetched 55.4 MB in 3s (17.6 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal:armhf. (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 ... 19565 files and directories currently installed.) @@ -845,8 +877,8 @@ Setting up tzdata (2025a-1) ... Current default time zone: 'Etc/UTC' -Local time is now: Mon Feb 3 08:31:30 UTC 2025. -Universal Time is now: Mon Feb 3 08:31:30 UTC 2025. +Local time is now: Mon Feb 3 08:35:17 UTC 2025. +Universal Time is now: Mon Feb 3 08:35:17 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-minitest (5.25.4-1) ... @@ -999,7 +1031,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-rbnacl-7.1.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-rbnacl_7.1.1-1_source.changes +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-rbnacl-7.1.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-rbnacl_7.1.1-1_source.changes dpkg-buildpackage: info: source package ruby-rbnacl dpkg-buildpackage: info: source version 7.1.1-1 dpkg-buildpackage: info: source distribution unstable @@ -1094,238 +1130,364 @@ [Coveralls] Set up the SimpleCov formatter. [Coveralls] Using SimpleCov's default settings. -Randomized with seed 34330 +Randomized with seed 20178 RbNaCl::Boxes::Curve25519XSalsa20Poly1305::PublicKey - equality - equal keys are equal - equal keys are equal to the string - keys are not equal to another key - keys are not equal to zero + #to_bytes + returns the bytes of the key #to_s returns the bytes of the key serialization supports #inspect - supports #to_str supports #to_s + supports #to_str lexicographic sorting can be compared lexicographically to a key smaller than it can be compared lexicographically to a key larger than it - #to_bytes - returns the bytes of the key new - rejects a nil key - accepts a valid key rejects a short key + accepts a valid key + rejects a nil key + equality + equal keys are equal to the string + keys are not equal to another key + keys are not equal to zero + equal keys are equal -RbNaCl::SimpleBox - cryptography - bob - decrypts own message - decrypts a message from alice - decrypts a message with a 'random' nonce - instantiation - can be instantiated from an already existing box - raises TypeError when given nil secret keys in the pair - can be instantiated from a key-pair - raises TypeError when given a nil secret key - can be instantiated from a secret key - -RbNaCl::HMAC::SHA256 +RbNaCl::HMAC::SHA512 .new raises EncodingError on a key with wrong encoding - .verify - fails to validate a short authenticator - verify an authenticator - fails to validate an invalid authenticator + Instance methods + #verify + verifies an authenticator + fails to validate an invalid authenticator + fails to validate a short authenticator + fails to validate a long authenticator + #auth + produces an authenticator + .auth + produces an authenticator raises TypeError on a nil key - fails to validate a long authenticator .verify raises EncodingError on a key with wrong encoding .auth raises EncodingError on a key with wrong encoding + Instance methods + #update + returns hexdigest when produces an authenticator + #digest + returns an authenticator + #hexdigest + returns hex authenticator + .verify + verify an authenticator + raises TypeError on a nil key + fails to validate a short authenticator + fails to validate an invalid authenticator + fails to validate a long authenticator .new requires a key - accepts a key raises TypeError on a nil key + accepts a key + +RbNaCl::Sodium + .sodium_constant + retrieves the libsodium constant + when libsodium does not define the constant + raises an exception + with alternate constant name +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes + sets the alternate constant name + with fallback + when libsodium does not define the constant + uses the fallback + when libsodium defines the constant +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes +/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: already initialized constant SodiumExtendedClass::BYTES +/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: previous definition of BYTES was here + return the libsodium value + +RbNaCl::PasswordHash::SCrypt + calculates the correct digest for a reference password/salt + +RbNaCl::HMAC::SHA512256 .auth - raises TypeError on a nil key - produces an authenticator + raises EncodingError on a key with wrong encoding Instance methods - #hexdigest - returns hex authenticator #update returns hexdigest when produces an authenticator + #hexdigest + returns hex authenticator #digest returns an authenticator - Instance methods - #verify - fails to validate an invalid authenticator - fails to validate a short authenticator - fails to validate a long authenticator - verifies an authenticator - #auth - produces an authenticator - -RbNaCl::HMAC::SHA512 + .new + requires a key + raises TypeError on a nil key + accepts a key .verify fails to validate a short authenticator - raises TypeError on a nil key fails to validate a long authenticator fails to validate an invalid authenticator verify an authenticator + raises TypeError on a nil key Instance methods #auth produces an authenticator #verify - verifies an authenticator fails to validate a short authenticator fails to validate an invalid authenticator fails to validate a long authenticator - Instance methods - #hexdigest - returns hex authenticator - #update - returns hexdigest when produces an authenticator - #digest - returns an authenticator - .auth - raises EncodingError on a key with wrong encoding - .new - raises EncodingError on a key with wrong encoding - .new - accepts a key - requires a key - raises TypeError on a nil key + verifies an authenticator .verify raises EncodingError on a key with wrong encoding .auth produces an authenticator raises TypeError on a nil key + .new + raises EncodingError on a key with wrong encoding -RbNaCl::Boxes::Curve25519XSalsa20Poly1305::PrivateKey - generate - has the public key also set - returns a secret key +RbNaCl::AEAD::ChaCha20Poly1305Legacy + encrypt + raises on a short nonce + raises on a long nonce + works with an empty message + encrypts a message + works with an empty additional data + decrypt + raises when the additional data is corrupt + raises on a corrupt ciphertext + raises on a long nonce + raises on a truncated message to decrypt + decrypts a message + raises on a short nonce + raises when the additional data is truncated new - raises ArgumentError when given a short key - accepts a valid key - raises TypeError when given a nil key - #to_bytes - returns the bytes of the key + raises on a long key + raises on a short key + raises on a nil key + accepts strings + +RbNaCl::SecretBoxes::XSalsa20Poly1305 + open + raises on a corrupt ciphertext + raises on a long nonce + decrypts a message + raises on a short nonce + raises on a truncated message to decrypt + box + raises on a long nonce + raises on a short nonce + encrypts a message + new + raises on a short key + raises on a nil key + accepts strings + +RbNaCl::SimpleBox + cryptography + bob + decrypts a message with a 'random' nonce + decrypts own message + decrypts a message from alice + instantiation + can be instantiated from a secret key + raises TypeError when given a nil secret key + raises TypeError when given nil secret keys in the pair + can be instantiated from a key-pair + can be instantiated from an already existing box + +RbNaCl::Signatures::Ed25519::VerifyKey + verifies correct signatures + raises when asked to verify a nil signed message + raises when asked to verify too short signed message + serializes to bytes + raises when asked to verify a bad signature + raises when asked to verify a short signature + raises when asked to verify a bad signature, full version + verifies correct signatures, full version + initializes from bytes + serialization + supports #inspect + supports #to_s + supports #to_str equality - keys are not equal to another key - equal keys are equal to the string equal keys are equal keys are not equal to zero - #to_s - returns the raw bytes of the key + equal keys are equal to the string + keys are not equal to another key lexicographic sorting - can be compared lexicographically to a key smaller than it can be compared lexicographically to a key larger than it - public_key - returns a public key - returns the correct public key + can be compared lexicographically to a key smaller than it + +RbNaCl::Random + produces different random bytes + produces random bytes + +RbNaCl::AEAD::XChaCha20Poly1305IETF + decrypt + raises on a truncated message to decrypt + raises on a short nonce + raises when the additional data is corrupt + raises on a long nonce + raises when the additional data is truncated + raises on a corrupt ciphertext + decrypts a message + encrypt + raises on a short nonce + raises on a long nonce + encrypts a message + works with an empty message + works with an empty additional data + new + raises on a nil key + accepts strings + raises on a short key + raises on a long key + +RbNaCl::Signatures::Ed25519::SigningKey + generates keys + signs messages, full version + serializes to bytes + serializes the internal signing key to bytes + signs messages as bytes serialization supports #to_s supports #to_str supports #inspect + lexicographic sorting + can be compared lexicographically to a key larger than it + can be compared lexicographically to a key smaller than it + equality + equal keys are equal + keys are not equal to another key + equal keys are equal to the string + keys are not equal to zero RbNaCl::OneTimeAuths::Poly1305 .auth - raises TypeError on a nil key produces an authenticator - .verify - raises ArgumentError on a key which is too long + raises TypeError on a nil key .verify raises TypeError on a nil key - fails to validate an invalid authenticator - verify an authenticator fails to validate a long authenticator fails to validate a short authenticator + fails to validate an invalid authenticator + verify an authenticator + .verify + raises ArgumentError on a key which is too long Instance methods #verify - fails to validate a short authenticator - verifies an authenticator fails to validate an invalid authenticator + verifies an authenticator fails to validate a long authenticator + fails to validate a short authenticator #auth produces an authenticator - .new - raises TypeError on a nil key - requires a key - accepts a key .auth raises ArgumentError on a key which is too long .new raises ArgumentError on a key which is too long + .new + accepts a key + raises TypeError on a nil key + requires a key -RbNaCl::Sodium - .sodium_constant - retrieves the libsodium constant - when libsodium does not define the constant - raises an exception - with fallback - when libsodium does not define the constant - uses the fallback - when libsodium defines the constant -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes -/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: already initialized constant SodiumExtendedClass::BYTES -/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: previous definition of BYTES was here - return the libsodium value - with alternate constant name -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes - sets the alternate constant name - -RbNaCl::Signatures::Ed25519::VerifyKey - raises when asked to verify a short signature - initializes from bytes - raises when asked to verify too short signed message - raises when asked to verify a bad signature, full version - verifies correct signatures, full version - raises when asked to verify a bad signature - raises when asked to verify a nil signed message - verifies correct signatures - serializes to bytes +RbNaCl::Boxes::Curve25519XSalsa20Poly1305::PrivateKey + public_key + returns the correct public key + returns a public key + #to_s + returns the raw bytes of the key equality + keys are not equal to another key keys are not equal to zero equal keys are equal - keys are not equal to another key equal keys are equal to the string + generate + has the public key also set + returns a secret key + new + raises ArgumentError when given a short key + raises TypeError when given a nil key + accepts a valid key + lexicographic sorting + can be compared lexicographically to a key larger than it + can be compared lexicographically to a key smaller than it + #to_bytes + returns the bytes of the key serialization + supports #inspect + supports #to_s supports #to_str + +RbNaCl::GroupElements::Curve25519 + serializes to bytes + multiplies integers with the base point + multiplies integers with arbitrary points + detects degenerate keys + serialization supports #inspect + supports #to_str supports #to_s - lexicographic sorting - can be compared lexicographically to a key larger than it - can be compared lexicographically to a key smaller than it -RbNaCl::Random - produces random bytes - produces different random bytes +RbNaCl::HMAC::SHA256 + .auth + produces an authenticator + raises TypeError on a nil key + .verify + raises EncodingError on a key with wrong encoding + .new + raises TypeError on a nil key + accepts a key + requires a key + .auth + raises EncodingError on a key with wrong encoding + .new + raises EncodingError on a key with wrong encoding + Instance methods + #update + returns hexdigest when produces an authenticator + #digest + returns an authenticator + #hexdigest + returns hex authenticator + Instance methods + #auth + produces an authenticator + #verify + fails to validate an invalid authenticator + fails to validate a short authenticator + fails to validate a long authenticator + verifies an authenticator + .verify + raises TypeError on a nil key + verify an authenticator + fails to validate an invalid authenticator + fails to validate a short authenticator + fails to validate a long authenticator RbNaCl::Hash::Blake2b - calculates the correct hash for a reference string calculates the correct hash for an empty string - salted - calculates saltised hashes correctly with a short salt - calculates saltised hashes correctly - arbitrary length message API - calculates saltised hashes correctly - calculates saltised hashes correctly with a short salt + calculates the correct hash for a reference string + arbitrary length message API + raise CryptoError when digest called without reset / message + calculates hash for empty string when digest called directly after reset + calculates the correct hash for a reference string + calculates the correct hash for an empty string personalized calculates personalised hashes correctly with a short personal calculates personalised hashes correctly arbitrary length message API calculates personalised hashes correctly calculates personalised hashes correctly with a short personal - arbitrary length message API - raise CryptoError when digest called without reset / message - calculates hash for empty string when digest called directly after reset - calculates the correct hash for a reference string - calculates the correct hash for an empty string + salted + calculates saltised hashes correctly + calculates saltised hashes correctly with a short salt + arbitrary length message API + calculates saltised hashes correctly with a short salt + calculates saltised hashes correctly keyed doesn't accept empty strings as a key calculates keyed hashes correctly @@ -1333,145 +1495,324 @@ doesn't accept empty strings as a key calculates keyed hashes correctly -RbNaCl::AEAD::XChaCha20Poly1305IETF - encrypt +RbNaCl::AEAD::ChaCha20Poly1305IETF + decrypt raises on a long nonce - works with an empty message + raises when the additional data is corrupt + raises when the additional data is truncated + raises on a corrupt ciphertext + raises on a short nonce + decrypts a message + raises on a truncated message to decrypt + encrypt + raises on a short nonce encrypts a message works with an empty additional data - raises on a short nonce + raises on a long nonce + works with an empty message new - raises on a long key - raises on a short key raises on a nil key accepts strings - decrypt - raises on a long nonce - decrypts a message - raises on a truncated message to decrypt - raises when the additional data is corrupt - raises on a corrupt ciphertext - raises on a short nonce - raises when the additional data is truncated + raises on a short key + raises on a long key RbNaCl::Hash - sha512 - calculates the correct hash for an empty string - doesn't raise on a null byte - calculates the correct hash for a reference string sha256 calculates the correct hash for a reference string calculates the correct hash for an empty string doesn't raise on a null byte + sha512 + doesn't raise on a null byte + calculates the correct hash for a reference string + calculates the correct hash for an empty string -RbNaCl::Signatures::Ed25519::SigningKey - serializes the internal signing key to bytes - signs messages, full version +RbNaCl::Boxes::Sealed + open + raises on a corrupt ciphertext + raises on a truncated message to decrypt + box + roundtrips + new + raises TypeError on a nil private key + accepts public KeyPairs + accepts private key strings + raises TypeError on a nil public key + raises RbNaCl::LengthError on an invalid public key + accepts private KeyPairs + raises RbNaCl::LengthError on an invalid private key + accepts public key strings + +RbNaCl::Boxes::Curve25519XSalsa20Poly1305 + box + raises on a long nonce + raises on a short nonce + encrypts a message + new + raises TypeError on a nil public key + raises TypeError on a nil secret key + raises RbNaCl::LengthError on an invalid public key + accepts KeyPairs + accepts strings + raises RbNaCl::LengthError on an invalid secret key + open + raises on a corrupt ciphertext + raises on a truncated message to decrypt + raises on a short nonce + raises on a long nonce + decrypts a message + +RbNaCl::PasswordHash::Argon2 + calculates the correct argon2id digest for a reference password/salt + calculates the correct argon2i digest for a reference password/salt + fails on invalid passwords + calculates the correct argon2 default digest + verifies password + creates digest string + +RbNaCl::Util + .verify64! + confirms identical messages are identical + raises descriptively on a short message in position 2 + raises descriptively on a short message in position 1 + raises descriptively on a long message in position 1 + confirms non-identical messages are non-identical + raises descriptively on a long message in position 2 + check_length + rejects strings which are too short + rejects nil strings + accepts strings of the correct length + rejects strings which are too long + .verify32! + raises descriptively on a long message in position 1 + raises descriptively on a short message in position 1 + confirms identical messages are identical + raises descriptively on a long message in position 2 + confirms non-identical messages are non-identical + raises descriptively on a short message in position 2 + .verify64 + confirms identical messages are identical + confirms non-identical messages are non-identical + check_string + raises EncodingError when given strings with non-BINARY encoding + .verify16! + raises descriptively on a long message in position 2 + raises descriptively on a short message in position 1 + confirms identical messages are identical + raises descriptively on a short message in position 2 + confirms non-identical messages are non-identical + raises descriptively on a long message in position 1 + .verify32 + confirms identical messages are identical + confirms non-identical messages are non-identical + hex encoding + encodes to hex with bin2hex + decodes from hex with hex2bin + .verify16 + confirms non-identical messages are non-identical + confirms identical messages are identical + +Finished in 9.27 seconds (files took 4.44 seconds to load) +313 examples, 0 failures + +Randomized with seed 20178 + +[Coveralls] Outside the CI environment, not sending data. +/usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner + +┌──────────────────────────────────────────────────────────────────────────────┐ +│ Checking Rubygems dependency resolution on ruby3.1 │ +└──────────────────────────────────────────────────────────────────────────────┘ + +RUBYLIB=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/share/rubygems-integration/all:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0 ruby3.1 -e gem\ \"rbnacl\" + +┌──────────────────────────────────────────────────────────────────────────────┐ +│ Run tests for ruby3.1 from debian/ruby-tests.rake │ +└──────────────────────────────────────────────────────────────────────────────┘ + +RUBYLIB=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/share/rubygems-integration/all:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake +/usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation +[Coveralls] Set up the SimpleCov formatter. +[Coveralls] Using SimpleCov's default settings. + +Randomized with seed 63146 + +RbNaCl::SecretBoxes::XSalsa20Poly1305 + new + raises on a short key + accepts strings + raises on a nil key + box + encrypts a message + raises on a short nonce + raises on a long nonce + open + raises on a long nonce + raises on a corrupt ciphertext + raises on a truncated message to decrypt + raises on a short nonce + decrypts a message + +RbNaCl::GroupElements::Curve25519 + detects degenerate keys + multiplies integers with arbitrary points + multiplies integers with the base point serializes to bytes - generates keys - signs messages as bytes - lexicographic sorting - can be compared lexicographically to a key larger than it - can be compared lexicographically to a key smaller than it - equality - keys are not equal to another key - keys are not equal to zero - equal keys are equal to the string - equal keys are equal serialization supports #inspect supports #to_str supports #to_s -RbNaCl::AEAD::ChaCha20Poly1305IETF +RbNaCl::AEAD::XChaCha20Poly1305IETF encrypt - works with an empty message raises on a short nonce raises on a long nonce - encrypts a message works with an empty additional data + works with an empty message + encrypts a message new + raises on a long key raises on a short key accepts strings raises on a nil key - raises on a long key decrypt - raises on a short nonce - raises on a truncated message to decrypt + raises on a long nonce raises on a corrupt ciphertext - raises when the additional data is corrupt raises when the additional data is truncated + raises on a truncated message to decrypt decrypts a message - raises on a long nonce + raises on a short nonce + raises when the additional data is corrupt + +RbNaCl::Boxes::Curve25519XSalsa20Poly1305::PrivateKey + public_key + returns the correct public key + returns a public key + #to_bytes + returns the bytes of the key + new + raises ArgumentError when given a short key + accepts a valid key + raises TypeError when given a nil key + equality + equal keys are equal to the string + keys are not equal to zero + equal keys are equal + keys are not equal to another key + #to_s + returns the raw bytes of the key + lexicographic sorting + can be compared lexicographically to a key smaller than it + can be compared lexicographically to a key larger than it + serialization + supports #to_s + supports #to_str + supports #inspect + generate + returns a secret key + has the public key also set RbNaCl::Util - .verify64 - confirms identical messages are identical - confirms non-identical messages are non-identical - .verify64! + check_length + accepts strings of the correct length + rejects strings which are too short + rejects nil strings + rejects strings which are too long + .verify32! + raises descriptively on a short message in position 2 raises descriptively on a short message in position 1 + confirms identical messages are identical + raises descriptively on a long message in position 2 confirms non-identical messages are non-identical raises descriptively on a long message in position 1 + .verify32 + confirms non-identical messages are non-identical confirms identical messages are identical + .verify16! + raises descriptively on a short message in position 1 + raises descriptively on a long message in position 1 raises descriptively on a short message in position 2 - raises descriptively on a long message in position 2 - .verify16 confirms non-identical messages are non-identical + raises descriptively on a long message in position 2 confirms identical messages are identical check_string raises EncodingError when given strings with non-BINARY encoding - .verify32! - raises descriptively on a long message in position 2 - raises descriptively on a short message in position 1 - confirms non-identical messages are non-identical - raises descriptively on a short message in position 2 - raises descriptively on a long message in position 1 + .verify16 confirms identical messages are identical - .verify16! - raises descriptively on a short message in position 1 - raises descriptively on a long message in position 2 confirms non-identical messages are non-identical + hex encoding + encodes to hex with bin2hex + decodes from hex with hex2bin + .verify64! + raises descriptively on a short message in position 1 confirms identical messages are identical + confirms non-identical messages are non-identical raises descriptively on a short message in position 2 raises descriptively on a long message in position 1 - check_length - rejects strings which are too long - rejects nil strings - rejects strings which are too short - accepts strings of the correct length - .verify32 + raises descriptively on a long message in position 2 + .verify64 confirms identical messages are identical confirms non-identical messages are non-identical - hex encoding - encodes to hex with bin2hex - decodes from hex with hex2bin -RbNaCl::GroupElements::Curve25519 - detects degenerate keys - multiplies integers with the base point - multiplies integers with arbitrary points +RbNaCl::Hash::Blake2b + calculates the correct hash for a reference string + calculates the correct hash for an empty string + personalized + calculates personalised hashes correctly + calculates personalised hashes correctly with a short personal + arbitrary length message API + calculates personalised hashes correctly + calculates personalised hashes correctly with a short personal + keyed + calculates keyed hashes correctly + doesn't accept empty strings as a key + arbitrary length message API + doesn't accept empty strings as a key + calculates keyed hashes correctly + arbitrary length message API + calculates the correct hash for an empty string + calculates hash for empty string when digest called directly after reset + calculates the correct hash for a reference string + raise CryptoError when digest called without reset / message + salted + calculates saltised hashes correctly + calculates saltised hashes correctly with a short salt + arbitrary length message API + calculates saltised hashes correctly + calculates saltised hashes correctly with a short salt + +RbNaCl::Signatures::Ed25519::SigningKey + generates keys + serializes the internal signing key to bytes + signs messages as bytes serializes to bytes + signs messages, full version + lexicographic sorting + can be compared lexicographically to a key smaller than it + can be compared lexicographically to a key larger than it + equality + keys are not equal to another key + equal keys are equal + keys are not equal to zero + equal keys are equal to the string serialization supports #to_s - supports #to_str supports #inspect + supports #to_str -RbNaCl::HMAC::SHA512256 - .new - raises EncodingError on a key with wrong encoding +RbNaCl::HMAC::SHA512 Instance methods - #hexdigest - returns hex authenticator #update returns hexdigest when produces an authenticator + #hexdigest + returns hex authenticator #digest returns an authenticator - .verify - fails to validate a long authenticator - verify an authenticator + .new + requires a key + accepts a key raises TypeError on a nil key - fails to validate an invalid authenticator - fails to validate a short authenticator + .new + raises EncodingError on a key with wrong encoding Instance methods #verify fails to validate a long authenticator @@ -1482,181 +1823,151 @@ produces an authenticator .verify raises EncodingError on a key with wrong encoding + .verify + fails to validate a short authenticator + fails to validate a long authenticator + raises TypeError on a nil key + verify an authenticator + fails to validate an invalid authenticator .auth raises TypeError on a nil key produces an authenticator - .new - requires a key - raises TypeError on a nil key - accepts a key .auth raises EncodingError on a key with wrong encoding -RbNaCl::Boxes::Sealed - new - raises RbNaCl::LengthError on an invalid public key - accepts public key strings - accepts private key strings - raises TypeError on a nil private key - accepts public KeyPairs - raises RbNaCl::LengthError on an invalid private key - raises TypeError on a nil public key - accepts private KeyPairs - box - roundtrips - open - raises on a truncated message to decrypt - raises on a corrupt ciphertext - -RbNaCl::Boxes::Curve25519XSalsa20Poly1305 - box - raises on a short nonce - encrypts a message - raises on a long nonce - open - raises on a truncated message to decrypt - decrypts a message - raises on a long nonce - raises on a corrupt ciphertext - raises on a short nonce +RbNaCl::AEAD::ChaCha20Poly1305IETF new - raises TypeError on a nil public key - accepts KeyPairs - raises TypeError on a nil secret key - raises RbNaCl::LengthError on an invalid secret key - raises RbNaCl::LengthError on an invalid public key + raises on a long key + raises on a nil key accepts strings - -RbNaCl::AEAD::ChaCha20Poly1305Legacy - new raises on a short key - accepts strings - raises on a nil key - raises on a long key encrypt - raises on a long nonce raises on a short nonce works with an empty message + raises on a long nonce works with an empty additional data encrypts a message decrypt - decrypts a message - raises when the additional data is truncated - raises on a truncated message to decrypt raises on a corrupt ciphertext raises when the additional data is corrupt - raises on a short nonce + raises when the additional data is truncated raises on a long nonce + decrypts a message + raises on a short nonce + raises on a truncated message to decrypt -RbNaCl::PasswordHash::Argon2 - calculates the correct argon2i digest for a reference password/salt - calculates the correct argon2id digest for a reference password/salt - fails on invalid passwords - creates digest string - verifies password - calculates the correct argon2 default digest - -RbNaCl::PasswordHash::SCrypt - calculates the correct digest for a reference password/salt - -RbNaCl::SecretBoxes::XSalsa20Poly1305 +RbNaCl::AEAD::ChaCha20Poly1305Legacy + encrypt + works with an empty message + encrypts a message + works with an empty additional data + raises on a long nonce + raises on a short nonce new raises on a short key - accepts strings raises on a nil key - open + raises on a long key + accepts strings + decrypt raises on a short nonce - raises on a corrupt ciphertext - decrypts a message raises on a long nonce raises on a truncated message to decrypt - box - encrypts a message - raises on a short nonce - raises on a long nonce - -Finished in 2.64 seconds (files took 1.41 seconds to load) -313 examples, 0 failures - -Randomized with seed 34330 - -[Coveralls] Outside the CI environment, not sending data. -/usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner - -┌──────────────────────────────────────────────────────────────────────────────┐ -│ Checking Rubygems dependency resolution on ruby3.1 │ -└──────────────────────────────────────────────────────────────────────────────┘ - -RUBYLIB=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/share/rubygems-integration/all:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0 ruby3.1 -e gem\ \"rbnacl\" - -┌──────────────────────────────────────────────────────────────────────────────┐ -│ Run tests for ruby3.1 from debian/ruby-tests.rake │ -└──────────────────────────────────────────────────────────────────────────────┘ - -RUBYLIB=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/reproducible-path/ruby-rbnacl-7.1.1/debian/ruby-rbnacl/usr/share/rubygems-integration/all:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake -/usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -[Coveralls] Set up the SimpleCov formatter. -[Coveralls] Using SimpleCov's default settings. - -Randomized with seed 16558 - -RbNaCl::Hash - sha512 - doesn't raise on a null byte - calculates the correct hash for a reference string - calculates the correct hash for an empty string - sha256 - doesn't raise on a null byte - calculates the correct hash for an empty string - calculates the correct hash for a reference string - -RbNaCl::SimpleBox - cryptography - bob - decrypts a message from alice - decrypts own message - decrypts a message with a 'random' nonce - instantiation - can be instantiated from a key-pair - raises TypeError when given nil secret keys in the pair - can be instantiated from an already existing box - raises TypeError when given a nil secret key - can be instantiated from a secret key + raises when the additional data is corrupt + raises when the additional data is truncated + raises on a corrupt ciphertext + decrypts a message -RbNaCl::OneTimeAuths::Poly1305 +RbNaCl::HMAC::SHA256 + Instance methods + #hexdigest + returns hex authenticator + #update + returns hexdigest when produces an authenticator + #digest + returns an authenticator + Instance methods + #verify + fails to validate an invalid authenticator + fails to validate a long authenticator + fails to validate a short authenticator + verifies an authenticator + #auth + produces an authenticator + .new + raises EncodingError on a key with wrong encoding + .auth + raises EncodingError on a key with wrong encoding + .auth + produces an authenticator + raises TypeError on a nil key .verify - verify an authenticator - fails to validate a short authenticator - fails to validate a long authenticator fails to validate an invalid authenticator + fails to validate a long authenticator raises TypeError on a nil key + fails to validate a short authenticator + verify an authenticator + .verify + raises EncodingError on a key with wrong encoding + .new + requires a key + accepts a key + raises TypeError on a nil key + +RbNaCl::Sodium + .sodium_constant + retrieves the libsodium constant + with alternate constant name +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes + sets the alternate constant name + with fallback + when libsodium defines the constant +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes +/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes +/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: already initialized constant SodiumExtendedClass::BYTES +/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: previous definition of BYTES was here + return the libsodium value + when libsodium does not define the constant + uses the fallback + when libsodium does not define the constant + raises an exception + +RbNaCl::OneTimeAuths::Poly1305 Instance methods - #auth - produces an authenticator #verify - fails to validate an invalid authenticator verifies an authenticator - fails to validate a long authenticator fails to validate a short authenticator - .auth - raises ArgumentError on a key which is too long + fails to validate an invalid authenticator + fails to validate a long authenticator + #auth + produces an authenticator .new raises ArgumentError on a key which is too long .new - accepts a key raises TypeError on a nil key + accepts a key requires a key .verify + fails to validate a long authenticator + fails to validate an invalid authenticator + verify an authenticator + raises TypeError on a nil key + fails to validate a short authenticator + .verify raises ArgumentError on a key which is too long .auth raises TypeError on a nil key produces an authenticator + .auth + raises ArgumentError on a key which is too long -RbNaCl::HMAC::SHA256 - .new - requires a key +RbNaCl::HMAC::SHA512256 + .verify + verify an authenticator + fails to validate a short authenticator + fails to validate an invalid authenticator raises TypeError on a nil key - accepts a key + fails to validate a long authenticator .auth produces an authenticator raises TypeError on a nil key @@ -1666,423 +1977,148 @@ #verify fails to validate a short authenticator verifies an authenticator - fails to validate a long authenticator fails to validate an invalid authenticator + fails to validate a long authenticator .new - raises EncodingError on a key with wrong encoding + requires a key + accepts a key + raises TypeError on a nil key Instance methods - #update - returns hexdigest when produces an authenticator #hexdigest returns hex authenticator #digest returns an authenticator + #update + returns hexdigest when produces an authenticator .auth raises EncodingError on a key with wrong encoding - .verify - fails to validate an invalid authenticator - raises TypeError on a nil key - verify an authenticator - fails to validate a long authenticator - fails to validate a short authenticator + .new + raises EncodingError on a key with wrong encoding .verify raises EncodingError on a key with wrong encoding +RbNaCl::Hash + sha512 + calculates the correct hash for a reference string + calculates the correct hash for an empty string + doesn't raise on a null byte + sha256 + calculates the correct hash for a reference string + doesn't raise on a null byte + calculates the correct hash for an empty string + RbNaCl::PasswordHash::Argon2 - creates digest string - calculates the correct argon2id digest for a reference password/salt calculates the correct argon2i digest for a reference password/salt - fails on invalid passwords + calculates the correct argon2id digest for a reference password/salt verifies password calculates the correct argon2 default digest + creates digest string + fails on invalid passwords -RbNaCl::GroupElements::Curve25519 - multiplies integers with arbitrary points +RbNaCl::Signatures::Ed25519::VerifyKey + initializes from bytes + raises when asked to verify a bad signature, full version + verifies correct signatures + raises when asked to verify a short signature + verifies correct signatures, full version + raises when asked to verify a nil signed message + raises when asked to verify a bad signature serializes to bytes - multiplies integers with the base point - detects degenerate keys + raises when asked to verify too short signed message serialization + supports #to_s supports #to_str supports #inspect - supports #to_s + equality + keys are not equal to zero + equal keys are equal + equal keys are equal to the string + keys are not equal to another key + lexicographic sorting + can be compared lexicographically to a key larger than it + can be compared lexicographically to a key smaller than it RbNaCl::Boxes::Curve25519XSalsa20Poly1305::PublicKey - #to_bytes - returns the bytes of the key - new - accepts a valid key - rejects a short key - rejects a nil key serialization + supports #to_str supports #inspect supports #to_s - supports #to_str - #to_s - returns the bytes of the key equality - equal keys are equal to the string keys are not equal to zero - equal keys are equal keys are not equal to another key + equal keys are equal to the string + equal keys are equal + new + rejects a short key + accepts a valid key + rejects a nil key + #to_bytes + returns the bytes of the key lexicographic sorting can be compared lexicographically to a key smaller than it can be compared lexicographically to a key larger than it + #to_s + returns the bytes of the key RbNaCl::Random - produces different random bytes produces random bytes - -RbNaCl::Hash::Blake2b - calculates the correct hash for an empty string - calculates the correct hash for a reference string - keyed - calculates keyed hashes correctly - doesn't accept empty strings as a key - arbitrary length message API - calculates keyed hashes correctly - doesn't accept empty strings as a key - personalized - calculates personalised hashes correctly with a short personal - calculates personalised hashes correctly - arbitrary length message API - calculates personalised hashes correctly - calculates personalised hashes correctly with a short personal - salted - calculates saltised hashes correctly - calculates saltised hashes correctly with a short salt - arbitrary length message API - calculates saltised hashes correctly with a short salt - calculates saltised hashes correctly - arbitrary length message API - calculates hash for empty string when digest called directly after reset - raise CryptoError when digest called without reset / message - calculates the correct hash for a reference string - calculates the correct hash for an empty string - -RbNaCl::Sodium - .sodium_constant - retrieves the libsodium constant - when libsodium does not define the constant - raises an exception - with fallback - when libsodium defines the constant -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes -/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: already initialized constant SodiumExtendedClass::BYTES -/build/reproducible-path/ruby-rbnacl-7.1.1/lib/rbnacl/sodium.rb:44: warning: previous definition of BYTES was here - return the libsodium value - when libsodium does not define the constant - uses the fallback - with alternate constant name -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes -/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0/gems/ffi-1.17.0/lib/ffi/function.rb:65: warning: method redefined; discarding old crypto_auth_hmacsha512_bytes - sets the alternate constant name - -RbNaCl::SecretBoxes::XSalsa20Poly1305 - open - decrypts a message - raises on a long nonce - raises on a corrupt ciphertext - raises on a short nonce - raises on a truncated message to decrypt - box - raises on a long nonce - raises on a short nonce - encrypts a message - new - accepts strings - raises on a short key - raises on a nil key + produces different random bytes RbNaCl::Boxes::Sealed box roundtrips open - raises on a corrupt ciphertext raises on a truncated message to decrypt + raises on a corrupt ciphertext new - raises TypeError on a nil private key - accepts public KeyPairs raises TypeError on a nil public key - accepts private KeyPairs - raises RbNaCl::LengthError on an invalid private key raises RbNaCl::LengthError on an invalid public key + raises RbNaCl::LengthError on an invalid private key accepts private key strings + accepts public KeyPairs + accepts private KeyPairs accepts public key strings - -RbNaCl::HMAC::SHA512256 - Instance methods - #verify - fails to validate an invalid authenticator - verifies an authenticator - fails to validate a short authenticator - fails to validate a long authenticator - #auth - produces an authenticator - .new - accepts a key - raises TypeError on a nil key - requires a key - .auth - raises EncodingError on a key with wrong encoding - .verify - raises EncodingError on a key with wrong encoding - .verify - fails to validate a long authenticator - verify an authenticator - fails to validate an invalid authenticator - raises TypeError on a nil key - fails to validate a short authenticator - Instance methods - #hexdigest - returns hex authenticator - #update - returns hexdigest when produces an authenticator - #digest - returns an authenticator - .new - raises EncodingError on a key with wrong encoding - .auth - raises TypeError on a nil key - produces an authenticator - -RbNaCl::Util - .verify32 - confirms non-identical messages are non-identical - confirms identical messages are identical - .verify64 - confirms non-identical messages are non-identical - confirms identical messages are identical - .verify16 - confirms non-identical messages are non-identical - confirms identical messages are identical - check_string - raises EncodingError when given strings with non-BINARY encoding - hex encoding - encodes to hex with bin2hex - decodes from hex with hex2bin - .verify32! - confirms identical messages are identical - raises descriptively on a long message in position 2 - confirms non-identical messages are non-identical - raises descriptively on a long message in position 1 - raises descriptively on a short message in position 1 - raises descriptively on a short message in position 2 - check_length - rejects strings which are too short - accepts strings of the correct length - rejects nil strings - rejects strings which are too long - .verify16! - raises descriptively on a long message in position 2 - confirms non-identical messages are non-identical - raises descriptively on a short message in position 2 - confirms identical messages are identical - raises descriptively on a long message in position 1 - raises descriptively on a short message in position 1 - .verify64! - raises descriptively on a long message in position 2 - raises descriptively on a short message in position 2 - confirms non-identical messages are non-identical - raises descriptively on a long message in position 1 - confirms identical messages are identical - raises descriptively on a short message in position 1 + raises TypeError on a nil private key RbNaCl::Boxes::Curve25519XSalsa20Poly1305 + box + encrypts a message + raises on a short nonce + raises on a long nonce new + raises TypeError on a nil public key raises TypeError on a nil secret key - accepts strings raises RbNaCl::LengthError on an invalid public key - raises TypeError on a nil public key - raises RbNaCl::LengthError on an invalid secret key accepts KeyPairs + accepts strings + raises RbNaCl::LengthError on an invalid secret key open raises on a corrupt ciphertext raises on a long nonce - raises on a short nonce - raises on a truncated message to decrypt decrypts a message - box - raises on a short nonce - encrypts a message - raises on a long nonce - -RbNaCl::Boxes::Curve25519XSalsa20Poly1305::PrivateKey - #to_bytes - returns the bytes of the key - serialization - supports #inspect - supports #to_str - supports #to_s - generate - returns a secret key - has the public key also set - public_key - returns the correct public key - returns a public key - equality - keys are not equal to another key - keys are not equal to zero - equal keys are equal to the string - equal keys are equal - lexicographic sorting - can be compared lexicographically to a key larger than it - can be compared lexicographically to a key smaller than it - #to_s - returns the raw bytes of the key - new - raises TypeError when given a nil key - accepts a valid key - raises ArgumentError when given a short key - -RbNaCl::AEAD::ChaCha20Poly1305Legacy - encrypt raises on a short nonce - raises on a long nonce - works with an empty additional data - encrypts a message - works with an empty message - decrypt raises on a truncated message to decrypt - decrypts a message - raises on a corrupt ciphertext - raises when the additional data is corrupt - raises when the additional data is truncated - raises on a short nonce - raises on a long nonce - new - raises on a nil key - accepts strings - raises on a short key - raises on a long key RbNaCl::PasswordHash::SCrypt calculates the correct digest for a reference password/salt -RbNaCl::AEAD::XChaCha20Poly1305IETF - decrypt - decrypts a message - raises on a long nonce - raises when the additional data is truncated - raises on a short nonce - raises on a corrupt ciphertext - raises when the additional data is corrupt - raises on a truncated message to decrypt - encrypt - encrypts a message - raises on a long nonce - raises on a short nonce - works with an empty additional data - works with an empty message - new - raises on a short key - raises on a nil key - accepts strings - raises on a long key - -RbNaCl::Signatures::Ed25519::VerifyKey - raises when asked to verify too short signed message - verifies correct signatures - raises when asked to verify a bad signature, full version - raises when asked to verify a nil signed message - initializes from bytes - raises when asked to verify a bad signature - raises when asked to verify a short signature - serializes to bytes - verifies correct signatures, full version - serialization - supports #to_s - supports #to_str - supports #inspect - lexicographic sorting - can be compared lexicographically to a key smaller than it - can be compared lexicographically to a key larger than it - equality - keys are not equal to another key - equal keys are equal to the string - equal keys are equal - keys are not equal to zero - -RbNaCl::Signatures::Ed25519::SigningKey - signs messages as bytes - signs messages, full version - serializes to bytes - generates keys - serializes the internal signing key to bytes - equality - keys are not equal to zero - keys are not equal to another key - equal keys are equal - equal keys are equal to the string - serialization - supports #to_str - supports #to_s - supports #inspect - lexicographic sorting - can be compared lexicographically to a key smaller than it - can be compared lexicographically to a key larger than it - -RbNaCl::HMAC::SHA512 - .new - raises TypeError on a nil key - requires a key - accepts a key - .verify - raises EncodingError on a key with wrong encoding - Instance methods - #verify - verifies an authenticator - fails to validate a long authenticator - fails to validate a short authenticator - fails to validate an invalid authenticator - #auth - produces an authenticator - .auth - raises EncodingError on a key with wrong encoding - .new - raises EncodingError on a key with wrong encoding - .verify - verify an authenticator - fails to validate an invalid authenticator - fails to validate a long authenticator - raises TypeError on a nil key - fails to validate a short authenticator - Instance methods - #digest - returns an authenticator - #hexdigest - returns hex authenticator - #update - returns hexdigest when produces an authenticator - .auth - produces an authenticator - raises TypeError on a nil key - -RbNaCl::AEAD::ChaCha20Poly1305IETF - encrypt - encrypts a message - works with an empty additional data - raises on a short nonce - raises on a long nonce - works with an empty message - new - raises on a long key - accepts strings - raises on a nil key - raises on a short key - decrypt - raises on a corrupt ciphertext - raises when the additional data is truncated - raises on a short nonce - raises on a truncated message to decrypt - raises when the additional data is corrupt - decrypts a message - raises on a long nonce +RbNaCl::SimpleBox + cryptography + bob + decrypts a message from alice + decrypts own message + decrypts a message with a 'random' nonce + instantiation + can be instantiated from a key-pair + can be instantiated from an already existing box + can be instantiated from a secret key + raises TypeError when given nil secret keys in the pair + raises TypeError when given a nil secret key -Finished in 2.64 seconds (files took 1.28 seconds to load) +Finished in 9.14 seconds (files took 3.75 seconds to load) 313 examples, 0 failures -Randomized with seed 16558 +Randomized with seed 63146 [Coveralls] Outside the CI environment, not sending data. @@ -2116,12 +2152,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/11676/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/31586 and its subdirectories -I: Current time: Sun Feb 2 20:32:24 -12 2025 -I: pbuilder-time-stamp: 1738571544 +I: removing directory /srv/workspace/pbuilder/11676 and its subdirectories +I: Current time: Mon Feb 3 22:37:47 +14 2025 +I: pbuilder-time-stamp: 1738571867