summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa/softraid.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Retry on incorrect passphrase for softraid crypto boot.jsing2018-08-101-2/+2
| | | | | | | | | | | | | | | | | | | Historically, the softraid crypto support in the boot loaders has only given one attempt to provide the correct passphrase. There were a few reasons for this, including the fact that pkcs5_pbkdf2() allows an empty passphrase and that returning EPERM allowed for another attempt. With the event of KARL and the need for bsd.booted with hibernate resumption, this becomes much more of an issue - if you get the passphrase wrong you fail to resume. There are also other situations like using /etc/boot.conf to switch serial console, but an incorrect passphrase results in the config not being read. Also, bcrypt_pbkdf() does not permit empty passphrases. This reworks the softraid crypto support in the boot loaders so that it loops requesting a valid passphrase until one is provided, or an empty passphrase is entered (at which point it will abort). ok mortimer@ tb@
* Provide initial libsa softraid - this is currently just the data structuresjsing2016-09-111-0/+39
and softraid crypto key handling code.