|
@ -1,4 +1,4 @@ |
|
|
.\" $OpenBSD: bcrypt_pbkdf.3,v 1.3 2013/06/04 06:39:11 jmc Exp $ |
|
|
|
|
|
|
|
|
.\" $OpenBSD: bcrypt_pbkdf.3,v 1.4 2013/06/05 04:01:53 tedu Exp $ |
|
|
.\" |
|
|
.\" |
|
|
.\" Copyright (c) 2012 Ted Unangst <tedu@openbsd.org> |
|
|
.\" Copyright (c) 2012 Ted Unangst <tedu@openbsd.org> |
|
|
.\" |
|
|
.\" |
|
@ -14,14 +14,14 @@ |
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
|
.\" |
|
|
.\" |
|
|
.Dd $Mdocdate: June 4 2013 $ |
|
|
|
|
|
|
|
|
.Dd $Mdocdate: June 5 2013 $ |
|
|
.Dt BCRYPT_PBKDF 3 |
|
|
.Dt BCRYPT_PBKDF 3 |
|
|
.Os |
|
|
.Os |
|
|
.Sh NAME |
|
|
.Sh NAME |
|
|
.Nm bcrypt_pbkdf |
|
|
.Nm bcrypt_pbkdf |
|
|
.Nd bcrypt password-based key derivation function |
|
|
.Nd bcrypt password-based key derivation function |
|
|
.Sh SYNOPSIS |
|
|
.Sh SYNOPSIS |
|
|
.Fd #include <util.h> |
|
|
|
|
|
|
|
|
.In util.h |
|
|
.Ft int |
|
|
.Ft int |
|
|
.Fn bcrypt_pbkdf "const char *pass" "size_t pass_len" "const uint8_t *salt" \ |
|
|
.Fn bcrypt_pbkdf "const char *pass" "size_t pass_len" "const uint8_t *salt" \ |
|
|
"size_t salt_len" "uint8_t *key" "size_t key_len" "unsigned int rounds" |
|
|
"size_t salt_len" "uint8_t *key" "size_t key_len" "unsigned int rounds" |
|
|