lib/plugin/webauth/vendor/phpseclib/phpseclib/phpseclib/CryptBase.php

Base Class for all \phpseclib\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 \phpseclib\Crypt* cipher class should extend \phpseclib\Crypt\Base

  • 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 \phpseclib\Crypt\Base 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

Classes

Base Base Class for all \phpseclib\Crypt\* cipher classes