![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "config.h"#include "config_unix.h"#include "config_win32.h"#include "debug.h"#include "crypt_aes_impl.h"#include "crypt_aes.h"
Go to the source code of this file.
Macros | |
| #define | GETU32(pt) |
| #define | PUTU32(ct, st) |
Functions | |
| void | rijndaelDecrypt (const u32 rk[], int Nr, const u8 ct[16], u8 pt[16]) |
| void | rijndaelDecryptRound (const u32 rk[], int Nr, u8 block[16], int rounds) |
| void | rijndaelEncrypt (const u32 rk[], int Nr, const u8 pt[16], u8 ct[16]) |
| void | rijndaelEncryptRound (const u32 rk[], int Nr, u8 block[16], int rounds) |
| int | rijndaelKeySetupDec (u32 rk[], const u8 cipherKey[], int keyBits) |
| int | rijndaelKeySetupEnc (u32 rk[], const u8 cipherKey[], int keyBits) |
Variables | |
| static const u32 | rcon [] |
| static const u32 | Td0 [256] |
| static const u32 | Td1 [256] |
| static const u32 | Td2 [256] |
| static const u32 | Td3 [256] |
| static const u32 | Td4 [256] |
| static const u32 | Te0 [256] |
| static const u32 | Te1 [256] |
| static const u32 | Te2 [256] |
| static const u32 | Te3 [256] |
| static const u32 | Te4 [256] |
| #define GETU32 | ( | pt | ) |
Definition at line 732 of file crypt_aes_impl.c.
Referenced by rijndaelDecrypt(), rijndaelDecryptRound(), rijndaelEncrypt(), rijndaelEncryptRound(), and rijndaelKeySetupEnc().
| #define PUTU32 | ( | ct, | |
| st ) |
Definition at line 733 of file crypt_aes_impl.c.
Referenced by rijndaelDecrypt(), rijndaelDecryptRound(), rijndaelEncrypt(), and rijndaelEncryptRound().
Definition at line 1103 of file crypt_aes_impl.c.
References GETU32, PUTU32, Td0, Td1, Td2, Td3, and Td4.
Referenced by blockDecrypt(), and padDecrypt().
Definition at line 1405 of file crypt_aes_impl.c.
References GETU32, PUTU32, Td0, Td1, Td2, Td3, and Td4.
Referenced by cipherUpdateRounds().
Definition at line 876 of file crypt_aes_impl.c.
References GETU32, PUTU32, Te0, Te1, Te2, Te3, and Te4.
Referenced by blockDecrypt(), blockEncrypt(), and padEncrypt().
Definition at line 1330 of file crypt_aes_impl.c.
References GETU32, PUTU32, Te0, Te1, Te2, Te3, and Te4.
Referenced by cipherUpdateRounds().
Expand the cipher key into the decryption key schedule.
Definition at line 826 of file crypt_aes_impl.c.
References rijndaelKeySetupEnc(), Td0, Td1, Td2, Td3, and Te4.
Referenced by makeKey().

Expand the cipher key into the encryption key schedule.
Definition at line 741 of file crypt_aes_impl.c.
References GETU32, rcon, and Te4.
Referenced by makeKey(), and rijndaelKeySetupDec().
|
static |
Definition at line 720 of file crypt_aes_impl.c.
Referenced by rijndaelKeySetupEnc().
|
static |
Definition at line 384 of file crypt_aes_impl.c.
Referenced by rijndaelDecrypt(), rijndaelDecryptRound(), and rijndaelKeySetupDec().
|
static |
Definition at line 451 of file crypt_aes_impl.c.
Referenced by rijndaelDecrypt(), rijndaelDecryptRound(), and rijndaelKeySetupDec().
|
static |
Definition at line 518 of file crypt_aes_impl.c.
Referenced by rijndaelDecrypt(), rijndaelDecryptRound(), and rijndaelKeySetupDec().
|
static |
Definition at line 586 of file crypt_aes_impl.c.
Referenced by rijndaelDecrypt(), rijndaelDecryptRound(), and rijndaelKeySetupDec().
|
static |
Definition at line 653 of file crypt_aes_impl.c.
Referenced by rijndaelDecrypt(), and rijndaelDecryptRound().
|
static |
rijndael-alg-fst.c
Optimised ANSI C code for the Rijndael cipher (now AES)
This code is hereby placed in the public domain.
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition at line 48 of file crypt_aes_impl.c.
Referenced by rijndaelEncrypt(), and rijndaelEncryptRound().
|
static |
Definition at line 115 of file crypt_aes_impl.c.
Referenced by rijndaelEncrypt(), and rijndaelEncryptRound().
|
static |
Definition at line 182 of file crypt_aes_impl.c.
Referenced by rijndaelEncrypt(), and rijndaelEncryptRound().
|
static |
Definition at line 249 of file crypt_aes_impl.c.
Referenced by rijndaelEncrypt(), and rijndaelEncryptRound().
|
static |
Definition at line 317 of file crypt_aes_impl.c.
Referenced by rijndaelEncrypt(), rijndaelEncryptRound(), rijndaelKeySetupDec(), and rijndaelKeySetupEnc().