Documentation

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
category

Crypt

author

Jim Wigginton terrafrost@php.net

author

Hans-Juergen Petrich petrich@tronic-media.com

copyright

2007 Jim Wigginton

license

http://www.opensource.org/licenses/mit-license.html MIT License

link
http://phpseclib.sourceforge.net

Table of Contents

Classes

SymmetricKey
Base Class for all \phpseclib3\Crypt\* cipher classes

        
On this page

Search results