Back to Joomla project (class list)

Class AbstractAES - list of methods

Abstract AES encryption class

Direct known subclasses

Package: Joomla\CMS\Encrypt\AES
Copyright: (C) 2016 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Encrypt/AES/AbstractAES.php
Project: Joomla

Method Summary

public null|string
(mixed $key, mixed $size)

Trims or zero-pads a key / IV
Parameters
  • string $key The key or IV to treat
  • int $size The block size of the currently used algorithm
Returns
  • null|string Null if $key is null, treated string of $size byte length otherwise
Show source code of this method: resizeKey Source Code

protected string
(mixed $string, mixed $blockSize)

Returns null bytes to append to the string so that it's zero padded to the specified block size
Parameters
  • string $string The binary string which will be zero padded
  • int $blockSize The block size
Returns
  • string The zero bytes to append to the string to zero pad it to $blockSize
Show source code of this method: getZeroPadding Source Code

Tags Summary

Since
4.0.0