Lines Matching +full:num +full:- +full:vectors
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
29 * SHA256-based Unix crypt implementation. Released into the Public Domain by
71 const char *num; in crypt_sha256() local
80 if (strncmp(sha256_salt_prefix, salt, sizeof(sha256_salt_prefix) - 1) == 0) in crypt_sha256()
82 salt += sizeof(sha256_salt_prefix) - 1; in crypt_sha256()
84 if (strncmp(salt, sha256_rounds_prefix, sizeof(sha256_rounds_prefix) - 1) in crypt_sha256()
86 num = salt + sizeof(sha256_rounds_prefix) - 1; in crypt_sha256()
87 srounds = strtoul(num, &endp, 10); in crypt_sha256()
127 for (cnt = key_len; cnt > 32; cnt -= 32) in crypt_sha256()
154 for (cnt = key_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
172 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
252 /* Test vectors from FIPS 180-2: appendix B.1. */
258 /* Test vectors from FIPS 180-2: appendix B.2. */
264 /* Test vectors from the NESSIE project. */
390 /* Test vector from FIPS 180-2: appendix B.3. */ in main()