• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/rsasecurity.php
  • Класс: CRsaSecurity
  • Вызов: CRsaSecurity::__construct
public function __construct($lib=false)
{
	if(extension_loaded('openssl') && ($lib == false || $lib == 'openssl'))
	{
		$this->provider = new CRsaOpensslProvider();
		$this->lib = 'openssl';
	}
	elseif(extension_loaded('bcmath') && ($lib == false || $lib == 'bcmath'))
	{
		$this->provider = new CRsaBcmathProvider();
		$this->lib = 'bcmath';
	}
}