Searched refs:ctbuffer (Results 1 – 6 of 6) sorted by relevance
/titanic_50/usr/src/lib/crypt_modules/bsdmd5/ |
H A D | bsdmd5.c | 70 crypt_genhash_impl(char *ctbuffer, in crypt_genhash_impl() argument 130 (void) strlcpy(ctbuffer, crypt_alg_magic, ctbufflen); in crypt_genhash_impl() 131 (void) strncat(ctbuffer, (const char *)sp, sl); in crypt_genhash_impl() 132 (void) strlcat(ctbuffer, "$", ctbufflen); in crypt_genhash_impl() 164 p = ctbuffer + strlen(ctbuffer); in crypt_genhash_impl() 177 return (ctbuffer); in crypt_genhash_impl()
|
/titanic_50/usr/src/lib/crypt_modules/bsdbf/ |
H A D | bsdbf.c | 57 crypt_genhash_impl(char *ctbuffer, in crypt_genhash_impl() argument 63 (void) strlcpy(ctbuffer, bcrypt(plaintext, salt), ctbufflen); in crypt_genhash_impl() 64 return (ctbuffer); in crypt_genhash_impl()
|
/titanic_50/usr/src/lib/crypt_modules/sha256/ |
H A D | crypt_sha.c | 163 crypt_genhash_impl(char *ctbuffer, in crypt_genhash_impl() argument 296 (void) snprintf(ctbuffer, ctbufflen, in crypt_genhash_impl() 299 (void) snprintf(ctbuffer, ctbufflen, in crypt_genhash_impl() 302 (void) strncat(ctbuffer, (const char *)salt, salt_len); in crypt_genhash_impl() 303 (void) strlcat(ctbuffer, "$", ctbufflen); in crypt_genhash_impl() 305 p = ctbuffer + strlen(ctbuffer); in crypt_genhash_impl() 306 ctbufflen -= strlen(ctbuffer); in crypt_genhash_impl() 351 return (ctbuffer); in crypt_genhash_impl()
|
H A D | test.c | 105 char ctbuffer[CRYPT_MAXCIPHERTEXTLEN]; in main() local 106 size_t ctbufflen = sizeof (ctbuffer); in main() 119 cp = crypt_genhash_impl(ctbuffer, ctbufflen, in main()
|
/titanic_50/usr/src/lib/crypt_modules/sunmd5/ |
H A D | sunmd5.c | 242 crypt_genhash_impl(char *ctbuffer, in crypt_genhash_impl() argument 444 (void) snprintf(ctbuffer, ctbufflen, "%s$", puresalt); in crypt_genhash_impl() 445 p = ctbuffer + strlen(ctbuffer); in crypt_genhash_impl() 463 return (ctbuffer); in crypt_genhash_impl()
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | crypt.c | 147 char *ctbuffer; in crypt() local 152 ctbuffer = tsdalloc(_T_CRYPT, CRYPT_MAXCIPHERTEXTLEN, NULL); in crypt() 153 if (ctbuffer == NULL) in crypt() 155 bzero(ctbuffer, CRYPT_MAXCIPHERTEXTLEN); in crypt() 164 return (_unix_crypt(plaintext, salt, ctbuffer)); in crypt() 188 ciphertext = _unix_crypt(plaintext, salt, ctbuffer); in crypt() 190 ciphertext = alg->a_genhash(ctbuffer, CRYPT_MAXCIPHERTEXTLEN, in crypt()
|