Lines Matching refs:salt

325 char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int buflen)  in php_sha256_crypt_r()  argument
351 if (strncmp(sha256_salt_prefix, salt, sizeof(sha256_salt_prefix) - 1) == 0) { in php_sha256_crypt_r()
353 salt += sizeof(sha256_salt_prefix) - 1; in php_sha256_crypt_r()
356 if (strncmp(salt, sha256_rounds_prefix, sizeof(sha256_rounds_prefix) - 1) == 0) { in php_sha256_crypt_r()
357 const char *num = salt + sizeof(sha256_rounds_prefix) - 1; in php_sha256_crypt_r()
361 salt = endp + 1; in php_sha256_crypt_r()
367 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
375 if ((salt - (char *) 0) % __alignof__(uint32_t) != 0) { in php_sha256_crypt_r()
377 salt = copied_salt = in php_sha256_crypt_r()
378 memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__ (uint32_t), salt, salt_len); in php_sha256_crypt_r()
391 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
402 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
453 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
515 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
577 char * php_sha256_crypt(const char *key, const char *salt) in php_sha256_crypt() argument
587 + (int)strlen(salt) + 1 + 43 + 1); in php_sha256_crypt()
599 return php_sha256_crypt_r(key, salt, buffer, buflen); in php_sha256_crypt()
647 const char *salt; member
724 char *cp = php_sha256_crypt(tests2[cnt].input, tests2[cnt].salt); in main()