|
cryptal
latest
Cryptography Abstraction Layer
|
Inheritance diagram for fpoirotte\Cryptal\Padding\None:Public Member Functions | |
| getPaddingData ($blockSize, $expectedSize) | |
| getPaddingSize ($paddedData, $blockSize) | |
No padding at all.
This means that the input data is already expected to have a size that is a multiple of the block size. Do not use this class unless you know what you are doing.
| fpoirotte\Cryptal\Padding\None::getPaddingData | ( | $blockSize, | |
| $expectedSize | |||
| ) |
Return padding data to form a complete block.
| int | $blockSize | The cipher's block size, in bytes. |
| int | $expectedSize | The padding's expected size (in bytes) to form a (possibly new) complete block. This value is always such that: ![]() |
| string | Padding data. |
Implements fpoirotte\Cryptal\PaddingInterface.
| fpoirotte\Cryptal\Padding\None::getPaddingSize | ( | $paddedData, | |
| $blockSize | |||
| ) |
Return the size (in bytes) of the padding in some already-padded data.
| string | $paddedData | The padded data to analyze. |
| int | $blockSize | The cipher's block size, in bytes. |
| Exception | An exception is thrown when the supplied data is invalid (was not padded using the currently-selected scheme). |
Implements fpoirotte\Cryptal\PaddingInterface.