1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
.\" $NetBSD: hcrypto_misc.3,v 1.3 2023/06/19 21:41:39 christos Exp $
.\"
.TH "hcrypto_misc" 3 "Tue Nov 15 2022" "Version 7.8.0" "Heimdal crypto library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
hcrypto_misc \- hcrypto miscellaneous functions
.SH SYNOPSIS
.br
.PP
.SS "Functions"
.in +1c
.ti -1c
.RI "int \fBPKCS5_PBKDF2_HMAC\fP (const void *password, size_t password_len, const void *salt, size_t salt_len, unsigned long iter, const EVP_MD *md, size_t keylen, void *key)"
.br
.ti -1c
.RI "int \fBPKCS5_PBKDF2_HMAC_SHA1\fP (const void *password, size_t password_len, const void *salt, size_t salt_len, unsigned long iter, size_t keylen, void *key)"
.br
.in -1c
.SH "Detailed Description"
.PP
.SH "Function Documentation"
.PP
.SS "int PKCS5_PBKDF2_HMAC (const void * password, size_t password_len, const void * salt, size_t salt_len, unsigned long iter, const EVP_MD * md, size_t keylen, void * key)"
As descriped in PKCS5, convert a password, salt, and iteration counter into a crypto key\&.
.PP
\fBParameters\fP
.RS 4
\fIpassword\fP Password\&.
.br
\fIpassword_len\fP Length of password\&.
.br
\fIsalt\fP Salt
.br
\fIsalt_len\fP Length of salt\&.
.br
\fIiter\fP iteration counter\&.
.br
\fImd\fP the digest function\&.
.br
\fIkeylen\fP the output key length\&.
.br
\fIkey\fP the output key\&.
.RE
.PP
\fBReturns\fP
.RS 4
1 on success, non 1 on failure\&.
.RE
.PP
.SS "int PKCS5_PBKDF2_HMAC_SHA1 (const void * password, size_t password_len, const void * salt, size_t salt_len, unsigned long iter, size_t keylen, void * key)"
As descriped in PKCS5, convert a password, salt, and iteration counter into a crypto key\&.
.PP
\fBParameters\fP
.RS 4
\fIpassword\fP Password\&.
.br
\fIpassword_len\fP Length of password\&.
.br
\fIsalt\fP Salt
.br
\fIsalt_len\fP Length of salt\&.
.br
\fIiter\fP iteration counter\&.
.br
\fIkeylen\fP the output key length\&.
.br
\fIkey\fP the output key\&.
.RE
.PP
\fBReturns\fP
.RS 4
1 on success, non 1 on failure\&.
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Heimdal crypto library from the source code\&.
|