HomeSoftware Heritage

pw_hash: add more bcrypt tests

Description

pw_hash: add more bcrypt tests

  • check for invalid salt values for all bcrypt variants
  • check for valid return value on glibc 2.28

I am not entirely sure this cutoff is correct, but RHEL 8 runs glibc
2.28 and supports bcrypt, and Ubuntu 18.04 Bionic has glibc 2.27 and
does not. Ubuntu Focal 20.04 has glibc 2.31 and also supports bcrypt.
We will see what the test harness reports :-)

Details

Provenance
Kjetil Torgrim Homme <kjetil.homme@redpill-linpro.com>Authored on Mar 4 2021, 11:57 PM
olasdPushed on Dec 28 2021, 10:47 AM
Parents
rSPSTD5662521f1c42: pw_hash: use less confusing language for return type (doc)
Branches
Unknown
Tags
Unknown

Event Timeline

Kjetil Torgrim Homme <kjetil.homme@redpill-linpro.com> committed rSPSTDffc6d966db82: pw_hash: add more bcrypt tests (authored by Kjetil Torgrim Homme <kjetil.homme@redpill-linpro.com>).Apr 19 2021, 9:28 AM