Home
last modified time | relevance | path

Searched refs:crypt_alg_magic (Results 1 – 2 of 2) sorted by last modified time

/illumos-gate/usr/src/lib/crypt_modules/sha256/
H A Dcrypt_sha.c78 static const char crypt_alg_magic[] = "$5"; variable
88 static const char crypt_alg_magic[] = "$6"; variable
94 static const int crypt_alg_magic_len = sizeof (crypt_alg_magic) - 1;
187 if (strncmp((char *)salt, crypt_alg_magic, crypt_alg_magic_len) == 0) { in crypt_genhash_impl()
297 "%s$rounds=%zu$", crypt_alg_magic, rounds); in crypt_genhash_impl()
300 "%s$", crypt_alg_magic); in crypt_genhash_impl()
410 crypt_alg_magic, saltrounds) >= gsbufflen) in crypt_gensalt_impl()
414 "%s$", crypt_alg_magic) >= gsbufflen) in crypt_gensalt_impl()
/illumos-gate/usr/src/lib/crypt_modules/bsdmd5/
H A Dbsdmd5.c51 static const char crypt_alg_magic[] = "$1$"; variable
81 const int crypt_alg_magic_len = strlen(crypt_alg_magic); in crypt_genhash_impl()
87 if (strncmp((char *)sp, crypt_alg_magic, crypt_alg_magic_len) == 0) { in crypt_genhash_impl()
103 MD5Update(&ctx, (uchar_t *)crypt_alg_magic, strlen(crypt_alg_magic)); in crypt_genhash_impl()
130 (void) strlcpy(ctbuffer, crypt_alg_magic, ctbufflen); in crypt_genhash_impl()
198 (void) strlcpy(gsbuffer, crypt_alg_magic, gsbufflen); in crypt_gensalt_impl()
207 to64(&gsbuffer[strlen(crypt_alg_magic)], rndval, sizeof (rndval)); in crypt_gensalt_impl()