GL4Dummies
0.1.7
|
Utilisée pour décrypter des shaders données en archive cryptée AES. Plus de détails...
Aller au code source de ce fichier.
Structures de données | |
struct | aes_context |
AES context structure. Plus de détails... | |
Fonctions | |
void | aes_set_key (aes_context *ctx, unsigned char *key, int keysize) |
AES key schedule. Plus de détails... | |
void | aes_encrypt (aes_context *ctx, unsigned char input[16], unsigned char output[16]) |
AES block encryption (ECB mode) Plus de détails... | |
void | aes_decrypt (aes_context *ctx, unsigned char input[16], unsigned char output[16]) |
AES block decryption (ECB mode) Plus de détails... | |
void | aes_cbc_encrypt (aes_context *ctx, unsigned char iv[16], unsigned char *input, unsigned char *output, int len) |
AES-CBC buffer encryption. Plus de détails... | |
void | aes_cbc_decrypt (aes_context *ctx, unsigned char iv[16], unsigned char *input, unsigned char *output, int len) |
AES-CBC buffer decryption. Plus de détails... | |
void | vaetvient (unsigned char *data, int len, int vaouvient) |
char * | aes_from_tar (const char *file) |
int | aes_self_test (void) |
Checkup routine. Plus de détails... | |
Utilisée pour décrypter des shaders données en archive cryptée AES.
FIPS-197 compliant AES implementation
Copyright (C) 2003-2006 Christophe Devine
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
The AES block cipher was designed by Vincent Rijmen and Joan Daemen.
http://csrc.nist.gov/encryption/aes/rijndael/Rijndael.pdf (broken link)
http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf (broken link)
See also: https://comparite.ch/encryption-types
Définition dans le fichier aes.h.
void aes_cbc_decrypt | ( | aes_context * | ctx, |
unsigned char | iv[16], | ||
unsigned char * | input, | ||
unsigned char * | output, | ||
int | len | ||
) |
AES-CBC buffer decryption.
ctx | AES context |
iv | initialization vector (modified after use) |
input | buffer holding the ciphertext |
output | buffer holding the plaintext |
len | length of the data to be decrypted |
Références aes_decrypt().
void aes_cbc_encrypt | ( | aes_context * | ctx, |
unsigned char | iv[16], | ||
unsigned char * | input, | ||
unsigned char * | output, | ||
int | len | ||
) |
AES-CBC buffer encryption.
ctx | AES context |
iv | initialization vector (modified after use) |
input | buffer holding the plaintext |
output | buffer holding the ciphertext |
len | length of the data to be encrypted |
Références aes_encrypt().
void aes_decrypt | ( | aes_context * | ctx, |
unsigned char | input[16], | ||
unsigned char | output[16] | ||
) |
AES block decryption (ECB mode)
ctx | AES context |
input | ciphertext block |
output | plaintext block |
Références AES_RROUND, aes_context::drk, GET_UINT32_BE, aes_context::nr, PUT_UINT32_BE, RSb, uint32, et uint8.
Référencé par aes_cbc_decrypt(), et vaetvient().
void aes_encrypt | ( | aes_context * | ctx, |
unsigned char | input[16], | ||
unsigned char | output[16] | ||
) |
AES block encryption (ECB mode)
ctx | AES context |
input | plaintext block |
output | ciphertext block |
AES block encryption (ECB mode)
Références AES_FROUND, aes_context::erk, FSb, GET_UINT32_BE, aes_context::nr, PUT_UINT32_BE, uint32, et uint8.
Référencé par aes_cbc_encrypt(), et vaetvient().
char* aes_from_tar | ( | const char * | file | ) |
int aes_self_test | ( | void | ) |
void aes_set_key | ( | aes_context * | ctx, |
unsigned char * | key, | ||
int | keysize | ||
) |
AES key schedule.
ctx | AES context to be initialized |
key | the secret key |
keysize | must be 128, 192 or 256 |
void vaetvient | ( | unsigned char * | data, |
int | len, | ||
int | vaouvient | ||
) |