• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/security/sign/hmacalgorithm.php
  • Класс: BitrixMainSecuritySignHmacAlgorithm
  • Вызов: HmacAlgorithm::setHashAlgorithm
public function setHashAlgorithm($hashAlgorithm)
{
	if (!in_array($hashAlgorithm, hash_algos()))
		throw new ArgumentOutOfRangeException('hashAlgorithm', hash_algos());

	$this->hashAlgorithm = $hashAlgorithm;
	return $this;
}