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()
405 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
414 if ((uintptr_t)salt % __alignof__ (uint64_t) != 0) { in php_sha512_crypt_r()
416 …salt = copied_salt = memcpy(tmp + __alignof__(uint64_t) - (uintptr_t)tmp % __alignof__(uint64_t), … in php_sha512_crypt_r()
429 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
440 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
492 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
554 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
629 php_sha512_crypt(const char *key, const char *salt) { in php_sha512_crypt() argument
638 + strlen(salt) + 1 + 86 + 1); in php_sha512_crypt()
650 return php_sha512_crypt_r (key, salt, buffer, buflen); in php_sha512_crypt()
715 const char *salt; member
795 char *cp = php_sha512_crypt(tests2[cnt].input, tests2[cnt].salt); in main()