iPXE
|
Electronic codebook (ECB) More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | ecb_encrypt (void *ctx, const void *src, void *dst, size_t len, struct cipher_algorithm *raw_cipher) |
Encrypt data. More... | |
void | ecb_decrypt (void *ctx, const void *src, void *dst, size_t len, struct cipher_algorithm *raw_cipher) |
Decrypt data. More... | |
Electronic codebook (ECB)
Definition in file ecb.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void ecb_encrypt | ( | void * | ctx, |
const void * | src, | ||
void * | dst, | ||
size_t | len, | ||
struct cipher_algorithm * | raw_cipher | ||
) |
Encrypt data.
ctx | Context |
src | Data to encrypt |
dst | Buffer for encrypted data |
len | Length of data |
raw_cipher | Underlying cipher algorithm |
Definition at line 45 of file ecb.c.
References assert(), cipher_algorithm::blocksize, cipher_encrypt, ctx, len, and src.
void ecb_decrypt | ( | void * | ctx, |
const void * | src, | ||
void * | dst, | ||
size_t | len, | ||
struct cipher_algorithm * | raw_cipher | ||
) |
Decrypt data.
ctx | Context |
src | Data to decrypt |
dst | Buffer for decrypted data |
len | Length of data |
raw_cipher | Underlying cipher algorithm |
Definition at line 68 of file ecb.c.
References assert(), cipher_algorithm::blocksize, cipher_decrypt, ctx, len, and src.