Lines Matching refs:salt
360 php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) { in php_sha512_crypt_r() argument
384 if (strncmp(sha512_salt_prefix, salt, sizeof(sha512_salt_prefix) - 1) == 0) { in php_sha512_crypt_r()
386 salt += sizeof(sha512_salt_prefix) - 1; in php_sha512_crypt_r()
389 if (strncmp(salt, sha512_rounds_prefix, sizeof(sha512_rounds_prefix) - 1) == 0) { in php_sha512_crypt_r()
390 const char *num = salt + sizeof(sha512_rounds_prefix) - 1; in php_sha512_crypt_r()
395 salt = endp + 1; in php_sha512_crypt_r()
401 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
410 if ((salt - (char *) 0) % __alignof__ (uint64_t) != 0) { in php_sha512_crypt_r()
412 …salt = copied_salt = memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_… in php_sha512_crypt_r()
425 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
436 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
488 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
550 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
625 php_sha512_crypt(const char *key, const char *salt) { in php_sha512_crypt() argument
634 + strlen(salt) + 1 + 86 + 1); in php_sha512_crypt()
646 return php_sha512_crypt_r (key, salt, buffer, buflen); in php_sha512_crypt()
711 const char *salt; member
791 char *cp = php_sha512_crypt(tests2[cnt].input, tests2[cnt].salt); in main()