Lines Matching refs:salt

324 char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int buflen)  in php_sha256_crypt_r()  argument
350 if (strncmp(sha256_salt_prefix, salt, sizeof(sha256_salt_prefix) - 1) == 0) { in php_sha256_crypt_r()
352 salt += sizeof(sha256_salt_prefix) - 1; in php_sha256_crypt_r()
355 if (strncmp(salt, sha256_rounds_prefix, sizeof(sha256_rounds_prefix) - 1) == 0) { in php_sha256_crypt_r()
356 const char *num = salt + sizeof(sha256_rounds_prefix) - 1; in php_sha256_crypt_r()
360 salt = endp + 1; in php_sha256_crypt_r()
370 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
385 if ((uintptr_t)salt % __alignof__(uint32_t) != 0) { in php_sha256_crypt_r()
387 salt = copied_salt = in php_sha256_crypt_r()
388 …memcpy(tmp_salt + __alignof__(uint32_t) - (uintptr_t)tmp_salt % __alignof__ (uint32_t), salt, salt… in php_sha256_crypt_r()
401 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
412 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
464 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
527 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
597 char * php_sha256_crypt(const char *key, const char *salt) in php_sha256_crypt() argument
607 + (int)strlen(salt) + 1 + 43 + 1); in php_sha256_crypt()
619 return php_sha256_crypt_r(key, salt, buffer, buflen); in php_sha256_crypt()
667 const char *salt; member
744 char *cp = php_sha256_crypt(tests2[cnt].input, tests2[cnt].salt); in main()