SymmetricKey.php
Base Class for all \phpseclib3\Crypt\* cipher classes
PHP version 5
Internally for phpseclib developers: If you plan to add a new cipher class, please note following rules:
-
The new \phpseclib3\Crypt* cipher class should extend \phpseclib3\Crypt\Common\SymmetricKey
-
Following methods are then required to be overridden/overloaded:
-
encryptBlock()
-
decryptBlock()
-
setupKey()
-
-
All other methods are optional to be overridden/overloaded
-
Look at the source code of the current ciphers how they extend \phpseclib3\Crypt\Common\SymmetricKey and take one of them as a start up for the new cipher class.
-
Please read all the other comments/notes/hints here also for each class var/method
Tags
Table of Contents
Classes
- SymmetricKey
- Base Class for all \phpseclib3\Crypt\* cipher classes