<h4>Description</h4>
<p>Function <code>blake2s</code> returns a wrong hash value on AVR architecture. The problem was found when testing PR <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="487778883" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/12135" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/12135/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/12135">#12135</a></p>
<h4>Steps to reproduce the issue</h4>
<p>Flash <code>tests/pkg_libb2</code> on an Arduino Mega2560 board and test it.</p>
<pre><code>make BOARD=arduino-mega2560 -C tests/pkg_libb2 PORT=/dev/ttyUSB0 flash term
</code></pre>
<h4>Expected results</h4>
<p>The test should succeed with following output:</p>
<pre><code>This is RIOT! (Version: 2019.10-devel-556-g93fa4)
..
OK (2 tests)
</code></pre>
<h4>Actual results</h4>
<p>The test fails with following output:</p>
<pre><code>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
..
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/issues/12168?email_source=notifications&email_token=ABE7WYHHOIDX4LK3LQMLP7LQH6SDPA5CNFSM4ITRHSB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJHPQ3Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYBRATDPOAGFCXKUAKTQH6SDPANCNFSM4ITRHSBQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYFIADMQMJUBES4WHOLQH6SDPA5CNFSM4ITRHSB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJHPQ3Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/issues/12168?email_source=notifications\u0026email_token=ABE7WYHHOIDX4LK3LQMLP7LQH6SDPA5CNFSM4ITRHSB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJHPQ3Q",
"url": "https://github.com/RIOT-OS/RIOT/issues/12168?email_source=notifications\u0026email_token=ABE7WYHHOIDX4LK3LQMLP7LQH6SDPA5CNFSM4ITRHSB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJHPQ3Q",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>