コード例 #1
0
ファイル: PBES2.php プロジェクト: kelvinmo/simplejwt
 public function __construct($alg)
 {
     parent::__construct($alg);
     if ($alg != null) {
         list($dummy, $aeskw_alg) = explode('+', $alg, 2);
         $this->hash_alg = self::$alg_params[$alg]['hash'];
         $this->aeskw = new AESKeyWrap($aeskw_alg);
     }
 }
コード例 #2
0
 public function __construct($alg)
 {
     parent::__construct($alg);
 }
コード例 #3
0
ファイル: SHA2.php プロジェクト: kelvinmo/simplejwt
 /**
  * Creates an instance of this algorithm.
  */
 protected function __construct($alg, $size)
 {
     parent::__construct($alg);
     $this->size = $size;
 }