/**
  * Constructor
  *
  * @param string $salt Salt
  * @param int $iteration_count Iteration count
  * @throws \UnexpectedValueException
  */
 public function __construct($salt, $iteration_count)
 {
     if (strlen($salt) !== 8) {
         throw new \UnexpectedValueException("Salt length must be 8 octets.");
     }
     parent::__construct($salt, $iteration_count);
 }
 /**
  * Constructor
  *
  * @param PBKDF2AlgorithmIdentifier $kdf
  * @param BlockCipherAlgorithmIdentifier $es
  */
 public function __construct(PBKDF2AlgorithmIdentifier $kdf, BlockCipherAlgorithmIdentifier $es)
 {
     parent::__construct($kdf->salt(), $kdf->iterationCount());
     $this->_oid = self::OID_PBES2;
     $this->_kdf = $kdf;
     $this->_es = $es;
 }