Core Class
View Source on Trac ↗
Core Class
ParagonIE_Sodium_Core_AES
class ParagonIE_Sodium_Core_AES
// Constructor: function Object() { [native code] } Bitsliced implementation of the AES block cipher.
Methods 12 methods
| Method / Return | Description |
|---|---|
| sbox() void | Mutates the values of $q!
Parameters: $q: ParagonIE_Sodium_Core_AES_Block |
| invSbox() void | Mutates the values of $q!
Parameters: $q: ParagonIE_Sodium_Core_AES_Block |
| processInversion() void | This is some boilerplate code needed to invert an S-box. Rather than repeat the code
Parameters: $q: ParagonIE_Sodium_Core_AES_Block |
| subWord() int | No description available.
Parameters: $x: mixed |
| keySchedule() ParagonIE_Sodium_Core_AES_KeySchedule | Calculate the key schedule from a given random key
Parameters: $key: mixed |
| addRoundKey() void | Mutates $q
Parameters: $q: ParagonIE_Sodium_Core_AES_Block, $skey: ParagonIE_Sodium_Core_AES_KeySchedule, $offset: mixed |
| decryptBlockECB() string | This mainly exists for testing, as we need the round key features for AEGIS.
Parameters: $message: mixed, $key: mixed |
| encryptBlockECB() string | This mainly exists for testing, as we need the round key features for AEGIS.
Parameters: $message: mixed, $key: mixed |
| bitsliceEncryptBlock() void | Mutates $q
Parameters: $skey: ParagonIE_Sodium_Core_AES_Expanded, $q: ParagonIE_Sodium_Core_AES_Block |
| aesRound() string | No description available.
Parameters: $x: mixed, $y: mixed |
| doubleRound() string[] | Process two AES blocks in one shot.
Parameters: $b0: mixed, $rk0: mixed, $b1: mixed, $rk1: mixed |
| bitsliceDecryptBlock() void | No description available.
Parameters: $skey: ParagonIE_Sodium_Core_AES_Expanded, $q: ParagonIE_Sodium_Core_AES_Block |
Properties
| Property / Type | Description |
|---|---|
| $Rcon mixed public | No description available. |
Class Information
Source File
wp-includes/sodium_compat/src/Core/AES.php
Advertisement