Lines Matching refs:salt

340 char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int buflen)  in php_sha256_crypt_r()  argument
373 if (strncmp(sha256_salt_prefix, salt, sizeof(sha256_salt_prefix) - 1) == 0) { in php_sha256_crypt_r()
375 salt += sizeof(sha256_salt_prefix) - 1; in php_sha256_crypt_r()
378 if (strncmp(salt, sha256_rounds_prefix, sizeof(sha256_rounds_prefix) - 1) == 0) { in php_sha256_crypt_r()
379 const char *num = salt + sizeof(sha256_rounds_prefix) - 1; in php_sha256_crypt_r()
383 salt = endp + 1; in php_sha256_crypt_r()
389 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
397 if ((salt - (char *) 0) % __alignof__(uint32_t) != 0) { in php_sha256_crypt_r()
399 salt = copied_salt = in php_sha256_crypt_r()
400 memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__ (uint32_t), salt, salt_len); in php_sha256_crypt_r()
413 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
424 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
475 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
537 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
600 char * php_sha256_crypt(const char *key, const char *salt) in php_sha256_crypt() argument
610 + strlen(salt) + 1 + 43 + 1); in php_sha256_crypt()
622 return php_sha256_crypt_r(key, salt, buffer, buflen); in php_sha256_crypt()
670 const char *salt; member
747 char *cp = php_sha256_crypt(tests2[cnt].input, tests2[cnt].salt); in main()