Пример #1
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testSetLSizeFailure()
 {
     $factory = new \CryptLib\Cipher\Factory();
     $aes = $factory->getBlockCipher('rijndael-128');
     $iv = 'FEDERATEDBLOCKDATATOOLONG';
     $adata = 'Some Other Text';
     $mode = new CryptLib\Cipher\Block\Mode\CCM($aes, $iv, array('adata' => $adata));
     $mode->setLSize(13);
 }