示例#1
0
文件: Hash.php 项目: dlugos/box2-lib
 /**
  * @see VerifyInterface::init
  */
 public function init($algorithm, $path)
 {
     $algorithm = strtolower(preg_replace('/[^A-Za-z0-9]+/', '', $algorithm));
     if (false === ($this->context = @hash_init($algorithm))) {
         $this->context = null;
         throw SignatureException::lastError();
     }
 }