Skip to content

version 0.10.78 of openssl demands an IV in some ciphers which breaks tests #547

@ggirol-rc

Description

@ggirol-rc

I did this

on current master: 197cddf

cargo update --package openssl --precise 0.10.78 ; cargo test pin_uv
     Running unittests src/lib.rs (target/debug/deps/webauthn_authenticator_rs-82605c05f7d078e7)

running 5 tests
test ctap2::commands::client_pin::tests::get_pin_uv_auth_token_using_uv_with_permissions ... ok
test ctap2::pin_uv::tests::shared_secret ... FAILED
test ctap2::pin_uv::tests::shared_secret_pin_protocol_two ... ok
test ctap2::pin_uv::tests::pin_encryption_and_hashing ... FAILED
test ctap2::pin_uv::tests::select ... ok

failures:

---- ctap2::pin_uv::tests::shared_secret stdout ----

thread 'ctap2::pin_uv::tests::shared_secret' panicked at /home/ggirol/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openssl-0.10.78/src/symm.rs:623:9:
an IV is required for this cipher
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- ctap2::pin_uv::tests::pin_encryption_and_hashing stdout ----

thread 'ctap2::pin_uv::tests::pin_encryption_and_hashing' panicked at /home/ggirol/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openssl-0.10.78/src/symm.rs:623:9:
an IV is required for this cipher


failures:
    ctap2::pin_uv::tests::pin_encryption_and_hashing
    ctap2::pin_uv::tests::shared_secret

test result: FAILED. 3 passed; 2 failed; 0 ignored; 0 measured; 88 filtered out; finished in 0.00s

error: test failed, to rerun pass `-p webauthn-authenticator-rs --lib`

this is a regression from version 0.10.77:

cargo update --package openssl --precise 0.10.77 ; cargo test pin_uv

works fine

I expected the following

no test failed

What actually happened

test failed with openssl complaining an IV is required for this cipher

Version (and git commit)

197cddf

Operating System / Version

ubuntu 24.04, libssl 3.0.13-0ubuntu3.9

Any other comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions