Lines Matching refs:opts

549      * @param array $opts ('algo' => hash algorithm, 'iter' => iterations)
553 public function hash_seafilepbkdf2($clear, $salt=null, $opts=array()) { argument
555 if(empty($opts['algo'])) {
558 $prefixalgo=$opts['algo'];
561 if(empty($opts['iter'])) {
564 $iter = (int) $opts['iter'];
585 * @param array $opts ('algo' => hash algorithm, 'iter' => iterations)
589 public function hash_djangopbkdf2($clear, $salt=null, $opts=array()) { argument
591 if(empty($opts['algo'])) {
594 $algo = $opts['algo'];
596 if(empty($opts['iter'])) {
599 $iter = (int) $opts['iter'];
617 * @param array $opts ('iter' => iterations)
621 public function hash_djangopbkdf2_sha256($clear, $salt=null, $opts=array()) { argument
622 $opts['algo'] = 'sha256';
623 return $this->hash_djangopbkdf2($clear, $salt, $opts);
631 * @param array $opts ('iter' => iterations)
635 public function hash_djangopbkdf2_sha1($clear, $salt=null, $opts=array()) { argument
636 $opts['algo'] = 'sha1';
637 return $this->hash_djangopbkdf2($clear, $salt, $opts);
683 …* @param array $opts ('rounds' => rounds for sha256/sha512, 'prefix' => selected method from SHA-2…
687 public function hash_sha2($clear, $salt = null, $opts = array()) { argument
688 if(empty($opts['prefix'])) {
691 $prefix = $opts['prefix'];
693 if(empty($opts['rounds'])) {
696 $rounds = $opts['rounds'];
713 public function hash_sha512($clear, $salt = null, $opts=[]) { argument
714 $opts['prefix'] = 6;
715 return $this->hash_sha2($clear, $salt, $opts);
719 public function hash_sha256($clear, $salt = null, $opts=[]) { argument
720 $opts['prefix'] = 5;
721 return $this->hash_sha2($clear, $salt, $opts);