|
libzpc 1.5
IBM Z Protected-key Crypto library
|
AES-ECB API. More...
Go to the source code of this file.
Functions | |
| int | zpc_aes_ecb_alloc (struct zpc_aes_ecb **ctx) |
| int | zpc_aes_ecb_set_key (struct zpc_aes_ecb *ctx, struct zpc_aes_key *key) |
| int | zpc_aes_ecb_encrypt (struct zpc_aes_ecb *ctx, unsigned char *ct, const unsigned char *pt, size_t ptlen) |
| int | zpc_aes_ecb_decrypt (struct zpc_aes_ecb *ctx, unsigned char *pt, const unsigned char *ct, size_t ctlen) |
| void | zpc_aes_ecb_free (struct zpc_aes_ecb **ctx) |
AES-ECB API.
Encryption API for the Advanced Encryption Standard (AES) block cipher [1] in Electronic Code Book (ECB) mode of operation [8] .
Definition in file aes_ecb.h.
| int zpc_aes_ecb_alloc | ( | struct zpc_aes_ecb ** | ctx | ) |
Allocate a new context for an AES-ECB operation.
| [in,out] | ctx | AES-ECB context |
| int zpc_aes_ecb_set_key | ( | struct zpc_aes_ecb * | ctx, |
| struct zpc_aes_key * | key ) |
Set the key to be used in the context of an AES-ECB operation.
| [in,out] | ctx | AES-ECB context |
| [in] | key | AES key |
| int zpc_aes_ecb_encrypt | ( | struct zpc_aes_ecb * | ctx, |
| unsigned char * | ct, | ||
| const unsigned char * | pt, | ||
| size_t | ptlen ) |
Do an AES-ECB encryption operation.
| [in,out] | ctx | AES-ECB context |
| [out] | ct | ciphertext |
| [in] | pt | plaintext |
| [in] | ptlen | plaintext length [bytes] |
| int zpc_aes_ecb_decrypt | ( | struct zpc_aes_ecb * | ctx, |
| unsigned char * | pt, | ||
| const unsigned char * | ct, | ||
| size_t | ctlen ) |
Do an AES-ECB decryption operation.
| [in,out] | ctx | AES-ECB context |
| [out] | pt | plaintext |
| [in] | ct | ciphertext |
| [in] | ctlen | ciphertext length [bytes] |
| void zpc_aes_ecb_free | ( | struct zpc_aes_ecb ** | ctx | ) |
Free an AES-ECB context.
| [in,out] | ctx | AES-ECB context |