Lines Matching refs:salt

319 char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int buflen)  in php_sha256_crypt_r()  argument
345 if (strncmp(sha256_salt_prefix, salt, sizeof(sha256_salt_prefix) - 1) == 0) { in php_sha256_crypt_r()
347 salt += sizeof(sha256_salt_prefix) - 1; in php_sha256_crypt_r()
350 if (strncmp(salt, sha256_rounds_prefix, sizeof(sha256_rounds_prefix) - 1) == 0) { in php_sha256_crypt_r()
351 const char *num = salt + sizeof(sha256_rounds_prefix) - 1; in php_sha256_crypt_r()
355 salt = endp + 1; in php_sha256_crypt_r()
365 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
380 if ((uintptr_t)salt % __alignof__(uint32_t) != 0) { in php_sha256_crypt_r()
382 salt = copied_salt = in php_sha256_crypt_r()
383 …memcpy(tmp_salt + __alignof__(uint32_t) - (uintptr_t)tmp_salt % __alignof__ (uint32_t), salt, salt… in php_sha256_crypt_r()
396 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
407 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
459 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
522 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
592 char * php_sha256_crypt(const char *key, const char *salt) in php_sha256_crypt() argument
602 + (int)strlen(salt) + 1 + 43 + 1); in php_sha256_crypt()
614 return php_sha256_crypt_r(key, salt, buffer, buflen); in php_sha256_crypt()
662 const char *salt; member
739 char *cp = php_sha256_crypt(tests2[cnt].input, tests2[cnt].salt); in main()