tedu
97919939ff
zero tmpout too. reminded by related diff from tim
4 years ago
tedu
030f5c6e7b
overwrite the key in failure modes in case the caller doesn't check.
ok deraadt
4 years ago
tedu
94520ae40e
rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,
nor are they the same size.
9 years ago
deraadt
474792cd61
declare a local version of MIN(), call it MINIMUM()
9 years ago
deraadt
c7195d4619
Do not need sys/param.h
9 years ago
djm
0f0ceb5483
typo in comment: ouput => output
9 years ago
tedu
1d810a359a
include stdint.h for standard ints. from Jean-Philippe Ouellet
10 years ago
deraadt
1a1b9e989b
sys/types.h rather than sys/param.h, where applicable. avoid overreach.
10 years ago
tedu
09f67ccdde
fix an error in the stride calculations. the math only works for multiples
of the stride. don't overwrite past the end of the buffer, and also save
that amount for later so the array is completely filled. ok deraadt djm
reported by Dmitry Chestnykh (dchest)
10 years ago
tedu
a0c81f7a45
explicit_bzero where useful
10 years ago
tedu
daca58aea1
tweak comment
10 years ago
tedu
c86cc50f44
fix a colossal cockup due to pointer/array confusion.
code isn't used yet, thankfully.
first observed by djm running regress. ok deraadt djm
11 years ago
tedu
c2b93759b2
revert. check is < 1, not < 0.
11 years ago
tedu
277ec73d81
oops, rounds is unsigned now
11 years ago
tedu
64a805d564
Add bcrypt_pbkdf, a password based key derivation function using bcrypt.
Technically, it's a slight variant of bcrypt better suited for use as a
pluggable hash with PKCS #5 PBKDF2.
ok djm
(also tweak pkcs5_pbkdf2() prototype to have consistent types.)
11 years ago