Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyer2k committed Jan 8, 2016
1 parent 3dcd009 commit ed57772
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions src/AesExp.php
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
<?php

/**
* AesExp.php
*
* PHP version 5
*
* @category Dcrypt
* @package Dcrypt
* @author Michael Meyer (mmeyer2k) <m.meyer2k@gmail.com>
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @link https://github.com/mmeyer2k/dcrypt
*/

namespace Dcrypt;

/**
* Symmetric AES-256-CBC encryption functions powered by OpenSSL. This class
* will throw an exception on checksum inequality.
*
* @category Dcrypt
* @package Dcrypt
* @author Michael Meyer (mmeyer2k) <m.meyer2k@gmail.com>
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @link https://github.com/mmeyer2k/dcrypt
* @link https://apigen.ci/github/mmeyer2k/dcrypt/namespace-Dcrypt.html
*/
class AesExp extends Aes
{

/**
* Throw an invalid checksum exception.
*/
protected static function invalidChecksum()
{
$e = 'Decryption can not proceed due to invalid cyphertext checksum.';
throw new \InvalidArgumentException($e);
}

}
<?php

/**
* AesExp.php
*
* PHP version 5
*
* @category Dcrypt
* @package Dcrypt
* @author Michael Meyer (mmeyer2k) <m.meyer2k@gmail.com>
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @link https://github.com/mmeyer2k/dcrypt
*/

namespace Dcrypt;

/**
* Symmetric AES-256-CBC encryption functions powered by OpenSSL. This class
* will throw an exception on checksum inequality.
*
* @category Dcrypt
* @package Dcrypt
* @author Michael Meyer (mmeyer2k) <m.meyer2k@gmail.com>
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @link https://github.com/mmeyer2k/dcrypt
* @link https://apigen.ci/github/mmeyer2k/dcrypt/namespace-Dcrypt.html
*/
class AesExp extends Aes
{

/**
* Throw an invalid checksum exception.
*/
protected static function invalidChecksum()
{
$e = 'Decryption can not proceed due to invalid cyphertext checksum.';
throw new \InvalidArgumentException($e);
}

}

0 comments on commit ed57772

Please sign in to comment.