Skip to content

blake2b gives a wrong value on powerpc-unknown-linux-gnu #356

Closed
@linkmauve

Description

@linkmauve

In xmpp-rs, we have a test which started to fail on this platform after bumping the RustCrypto crates to 0.10:

---- ecaps2::tests::test_blake2b_512 stdout ----
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `[107, 235, 164, 173, 234, 235, 170, 225, 55, 10, 138, 151, 244, 209, 149, 32, 75, 79, 184, 110, 158, 195, 195, 113, 25, 50, 170, 193, 54, 212, 114, 249, 126, 45, 33, 153, 72, 91, 165, 232, 190, 247, 148, 234, 206, 56, 34, 151, 206, 131, 216, 50, 100, 195, 84, 131,
143, 218, 125, 57, 112, 138, 100, 98]`,
 right: `[186, 128, 165, 63, 152, 28, 77, 13, 106, 39, 151, 182, 159, 18, 246, 233, 76, 33, 47, 20, 104, 90, 196, 183, 75, 18, 187, 111, 219, 255, 162, 209, 125, 135, 197, 57, 42, 171, 121, 45, 194, 82, 213, 222, 69, 51, 204, 149, 24, 211, 138, 168, 219, 241, 146, 90, 185,
35, 134, 237, 212, 0, 153, 35]`', parsers/src/ecaps2.rs:479:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The same test runs fine on amd64, as can be seen in our CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions