Abstract AES encryption class
- Depuis
- 4.0.0
◆ getZeroPadding()
getZeroPadding |
( |
|
$string, |
|
|
|
$blockSize |
|
) |
| |
|
protected |
Returns null bytes to append to the string so that it's zero padded to the specified block size
- Paramètres
-
string | $string | The binary string which will be zero padded |
int | $blockSize | The block size |
- Renvoie
- string The zero bytes to append to the string to zero pad it to $blockSize
◆ resizeKey()
resizeKey |
( |
|
$key, |
|
|
|
$size |
|
) |
| |
Trims or zero-pads a key / IV
- Paramètres
-
string | $key | The key or IV to treat |
int | $size | The block size of the currently used algorithm |
- Renvoie
- null|string Null if $key is null, treated string of $size byte length otherwise
Références $key, $size, et null.
La documentation de cette classe a été générée à partir du fichier suivant :