|
iPXE
|
Electronic codebook (ECB). More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| int | ecb_setkey (struct cipher_algorithm *cipher, void *ctx, const void *key, size_t keylen) |
| Set key. | |
| void | ecb_encrypt (struct cipher_algorithm *cipher, void *ctx, const void *src, void *dst, size_t len) |
| Encrypt data. | |
| void | ecb_decrypt (struct cipher_algorithm *cipher, void *ctx, const void *src, void *dst, size_t len) |
| Decrypt data. | |
Electronic codebook (ECB).
Definition in file ecb.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| int ecb_setkey | ( | struct cipher_algorithm * | cipher, |
| void * | ctx, | ||
| const void * | key, | ||
| size_t | keylen ) |
Set key.
| rc | Return status code |
Definition at line 46 of file ecb.c.
References cipher_setkey(), ctx, key, and cipher_algorithm::priv.
| void ecb_encrypt | ( | struct cipher_algorithm * | cipher, |
| void * | ctx, | ||
| const void * | src, | ||
| void * | dst, | ||
| size_t | len ) |
Encrypt data.
| cipher | Cipher algorithm |
| ctx | Context |
| src | Data to encrypt |
| dst | Buffer for encrypted data |
| len | Length of data |
Definition at line 62 of file ecb.c.
References assert, cipher_algorithm::blocksize, cipher_encrypt, ctx, len, cipher_algorithm::priv, and src.
| void ecb_decrypt | ( | struct cipher_algorithm * | cipher, |
| void * | ctx, | ||
| const void * | src, | ||
| void * | dst, | ||
| size_t | len ) |
Decrypt data.
| cipher | Cipher algorithm |
| ctx | Context |
| src | Data to decrypt |
| dst | Buffer for decrypted data |
| len | Length of data |
Definition at line 86 of file ecb.c.
References assert, cipher_algorithm::blocksize, cipher_decrypt, ctx, len, cipher_algorithm::priv, and src.