<h3>Contribution description</h3>
<p>This add an implementation of PBKDF2 using sha256 hmac. Only one derived key length is supported (32) though it should not be hard to extend it.</p>
<h3>Testing procedure</h3>
<p>The testing is done with both random (with fixed seed) vectors and vectors from rfc7914. As usual, I ran into weirdness with interactive tests so I enabled it only for native. Using miniterm.py everything is fine (at least on samr21-xpro)</p>
<h3>Issues/PRs references</h3>
<p>Taken from <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="491692890" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/12191" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/12191/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/12191">#12191</a> .</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/12211'>https://github.com/RIOT-OS/RIOT/pull/12211</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>sys/hashes/pbkdf2: Add PBKDF2-sha256 implementation.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-0">sys/hashes/pbkdf2.c</a>
    (100)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-1">sys/include/hashes/pbkdf2.h</a>
    (48)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-2">tests/pbkdf2/Makefile</a>
    (17)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-3">tests/pbkdf2/README</a>
    (11)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-4">tests/pbkdf2/main.c</a>
    (137)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-5">tests/pbkdf2/tests/01-random.py</a>
    (45)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-6">tests/pbkdf2/tests/01-rfc.py</a>
    (40)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12211/files#diff-7">tests/pbkdf2/tests/test_base.py</a>
    (42)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12211.patch'>https://github.com/RIOT-OS/RIOT/pull/12211.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12211.diff'>https://github.com/RIOT-OS/RIOT/pull/12211.diff</a></li>
</ul>

<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/pull/12211?email_source=notifications&email_token=ABE7WYGYZJBYGNBTXD5CLMDQJJAMPA5CNFSM4IWEBUN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HK7VWDQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYG4F2CP4JOB3LDKD4LQJJAMPANCNFSM4IWEBUNQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYBQM54QQ56KFVHCB4TQJJAMPA5CNFSM4IWEBUN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HK7VWDQ.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/pull/12211?email_source=notifications\u0026email_token=ABE7WYGYZJBYGNBTXD5CLMDQJJAMPA5CNFSM4IWEBUN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HK7VWDQ",
"url": "https://github.com/RIOT-OS/RIOT/pull/12211?email_source=notifications\u0026email_token=ABE7WYGYZJBYGNBTXD5CLMDQJJAMPA5CNFSM4IWEBUN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HK7VWDQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>