NetBurner 3.5.0
PDF Version |
|
Classes | |
struct | aes_context |
AES context structure. More... | |
Functions | |
void | aes_set_key (aes_context *ctx, const unsigned char *key, int keysize) |
AES key schedule. | |
void | aes_encrypt (aes_context *ctx, unsigned char input[16], unsigned char output[16]) |
AES block encryption (ECB mode) | |
void | aes_decrypt (aes_context *ctx, unsigned char input[16], unsigned char output[16]) |
AES block decryption (ECB mode) | |
void | aes_cbc_encrypt (aes_context *ctx, unsigned char iv[16], unsigned char *input, unsigned char *output, int len) |
AES-CBC buffer encryption. | |
void | aes_cbc_decrypt (aes_context *ctx, unsigned char iv[16], unsigned char *input, unsigned char *output, int len) |
AES-CBC buffer decryption. | |
int | aes_self_test (int verbose) |
Checkup routine. | |
#include< aes.h >
Function to implement the symetric block cyper AES
void aes_cbc_decrypt | ( | aes_context * | ctx, |
unsigned char | iv[16], | ||
unsigned char * | input, | ||
unsigned char * | output, | ||
int | len ) |
#include <aes.h>
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 |
void aes_cbc_encrypt | ( | aes_context * | ctx, |
unsigned char | iv[16], | ||
unsigned char * | input, | ||
unsigned char * | output, | ||
int | len ) |
#include <aes.h>
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 |
void aes_decrypt | ( | aes_context * | ctx, |
unsigned char | input[16], | ||
unsigned char | output[16] ) |
#include <aes.h>
AES block decryption (ECB mode)
ctx | AES context |
input | ciphertext block |
output | plaintext block |
void aes_encrypt | ( | aes_context * | ctx, |
unsigned char | input[16], | ||
unsigned char | output[16] ) |
#include <aes.h>
AES block encryption (ECB mode)
ctx | AES context |
input | plaintext block |
output | ciphertext block |
int aes_self_test | ( | int | verbose | ) |
#include <aes.h>
Checkup routine.
void aes_set_key | ( | aes_context * | ctx, |
const unsigned char * | key, | ||
int | keysize ) |
#include <aes.h>
AES key schedule.
ctx | AES context to be initialized |
key | the secret key |
keysize | must be 128, 192 or 256 |