Skip to content

pkg/libb2: blake2s doesn't work on AVR #12168

@gschorcht

Description

@gschorcht

Description

Function blake2s returns a wrong hash value on AVR architecture. The problem was found when testing PR #12135

Steps to reproduce the issue

Flash tests/pkg_libb2 on an Arduino Mega2560 board and test it.

make BOARD=arduino-mega2560 -C tests/pkg_libb2 PORT=/dev/ttyUSB0 flash term

Expected results

The test should succeed with following output:

This is RIOT! (Version: 2019.10-devel-556-g93fa4)
..
OK (2 tests)

Actual results

The test fails with following output:

This is RIOT! (Version: 2019.10-devel-556-g93fa4)
.
2019-09-04 14:19:43,660 - INFO # blake2_tests.test_blake2s (tests/pkg_libb2/main.c 56) memcmp(b2s, hash, sizeof hash) == 0
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: pkgArea: External package portsPlatform: AVRPlatform: This PR/issue effects AVR-based platformsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions