|
cryptal
latest
Cryptography Abstraction Layer
|
Inheritance diagram for fpoirotte\Cryptal\DefaultAlgorithms\Cmac:Public Member Functions | |
| __construct (MacEnum $macAlgorithm, SubAlgorithmAbstractEnum $innerAlgorithm, $key, $nonce= '') | |
Public Member Functions inherited from fpoirotte\Cryptal\AbstractContextBasedAlgorithm | |
| __toString () | |
| finalize ($raw=false) | |
| update ($data) | |
Public Member Functions inherited from fpoirotte\Cryptal\ContextBasedInterface | |
| __toString () | |
| finalize ($raw=false) | |
| update ($data) | |
Protected Member Functions | |
| internalFinalize () | |
| internalUpdate ($data) | |
Protected Member Functions inherited from fpoirotte\Cryptal\AbstractContextBasedAlgorithm | |
| internalFinalize () | |
| internalUpdate ($data) | |
Static Protected Attributes | |
| static | $polynomials |
Static Private Member Functions | |
| static | mul2mod ($n, $l) |
Private Attributes | |
| $cipher | |
| $data | |
| $k1 | |
| $k2 | |
Additional Inherited Members | |
Static Public Member Functions inherited from fpoirotte\Cryptal\Implementers\AbstractMac | |
| static | mac (MacEnum $macAlgorithm, SubAlgorithmAbstractEnum $innerAlgorithm, $key, $data, $nonce= '', $raw=false) |
| fpoirotte\Cryptal\DefaultAlgorithms\Cmac::__construct | ( | MacEnum | $macAlgorithm, |
| SubAlgorithmAbstractEnum | $innerAlgorithm, | ||
| $key, | |||
$nonce = '' |
|||
| ) |
Construct a new context to generate a Message Authentication Code.
| MacEnum | $macAlgorithm | Algorithm to use to produce the message authentication code. |
| SubAlgorithmAbstractEnum | $innerAlgorithm | Inner algorithm used during generation. This should be either an instance of CipherEnum or MacEnum, depending on the value for the $macAlgorithm parameter. |
| string | $key | Secret key used to produce the Message Authentication Code. |
| string | $nonce | (optional) Nonce used to randomize the output. |
Implements fpoirotte\Cryptal\Implementers\MacInterface.
|
staticprotected |
See http://sci.crypt.narkive.com/3lS5EbY4/ and http://www.hpl.hp.com/techreports/98/HPL-98-135.pdf