9330 stack overflow when creating a deeply nested dataset
[unleashed.git] / usr / src / man / man5 / crypt_sha256.5
blob3d264107f7e4442d47333645b995c34fb9e62bc7
1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CRYPT_SHA256 5 "May 8, 2008"
7 .SH NAME
8 crypt_sha256 \- password hashing module using SHA-256 message hash algorithm
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/lib/security/$ISA/crypt_sha256.so\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBcrypt_sha256\fR module is a one-way password hashing module for use with
19 \fBcrypt\fR(3C) that uses the SHA-256 message hash algorithm. The algorithm
20 identifier for \fBcrypt.conf\fR(4) and \fBpolicy.conf\fR(4) is \fB5\fR.
21 .sp
22 .LP
23 This module is designed to make it difficult to crack passwords that use brute
24 force attacks based on high speed SHA-256 implementations that use code
25 inlining, unrolled loops, and table lookup.
26 .sp
27 .LP
28 The maximum password length for \fBcrypt_sha256\fR is 255 characters.
29 .sp
30 .LP
31 The following options can be passed to the module by means of
32 \fBcrypt.conf\fR(4):
33 .sp
34 .ne 2
35 .na
36 \fB\fBrounds=\fR\fI<positive_number>\fR\fR
37 .ad
38 .sp .6
39 .RS 4n
40 Specifies the number of rounds of SHA-256 to use in generation of the salt; the
41 default number of rounds is 5000. Negative values have no effect and are
42 ignored. The minimum number of rounds cannot be below 1000.
43 .sp
44 The number of additional rounds is stored in the salt string returned by
45 \fBcrypt_gensalt\fR(3C). For example:
46 .sp
47 .in +2
48 .nf
49 $5,rounds=6000$nlxmTTpz$
50 .fi
51 .in -2
53 When \fBcrypt_gensalt\fR(3C) is being used to generate a new salt, if the
54 number of additional rounds configured in \fBcrypt.conf\fR(4) is greater than
55 that in the old salt, the value from \fBcrypt.conf\fR(4) is used instead. This
56 allows for migration to stronger (but more time-consuming) salts on password
57 change.
58 .RE
60 .SH ATTRIBUTES
61 .sp
62 .LP
63 See \fBattributes\fR(5) for descriptions of the following attributes:
64 .sp
66 .sp
67 .TS
68 box;
69 c | c
70 l | l .
71 ATTRIBUTE TYPE  ATTRIBUTE VALUE
73 Interface Stability     Committed
75 MT-Level        Safe
76 .TE
78 .SH SEE ALSO
79 .sp
80 .LP
81 \fBpasswd\fR(1), \fBcrypt\fR(3C), \fBcrypt_genhash_impl\fR(3C),
82 \fBcrypt_gensalt\fR(3C), \fBcrypt_gensalt_impl\fR(3C), \fBgetpassphrase\fR(3C),
83 \fBcrypt.conf\fR(4), \fBpasswd\fR(4), \fBpolicy.conf\fR(4), \fBattributes\fR(5)