|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Block cipher encryption/decryption object. More...
Data Fields | |
| CMUTIL_String *(* | Encrypt )(CMUTIL_BlockCrypto *crypto, CMUTIL_String *plain, const uint8_t *key, const uint8_t *iv) |
| Encrypts plain text with the specified key and IV. | |
| CMUTIL_String *(* | Decrypt )(CMUTIL_BlockCrypto *crypto, CMUTIL_String *encrypted, const uint8_t *key, const uint8_t *iv) |
| Decrypts encrypted data with the specified key and IV. | |
| void(* | Destroy )(CMUTIL_BlockCrypto *crypto) |
| Destroys the block crypto object. | |
Block cipher encryption/decryption object.
| CMUTIL_String *(* CMUTIL_BlockCrypto::Encrypt) (CMUTIL_BlockCrypto *crypto, CMUTIL_String *plain, const uint8_t *key, const uint8_t *iv) |
Encrypts plain text with the specified key and IV.
| crypto | The block crypto object. |
| plain | The plain text to encrypt. |
| key | The encryption key. |
| iv | The initialization vector. |
| CMUTIL_String *(* CMUTIL_BlockCrypto::Decrypt) (CMUTIL_BlockCrypto *crypto, CMUTIL_String *encrypted, const uint8_t *key, const uint8_t *iv) |
Decrypts encrypted data with the specified key and IV.
| crypto | The block crypto object. |
| encrypted | The encrypted data to decrypt. |
| key | The decryption key. |
| iv | The initialization vector. |
| void(* CMUTIL_BlockCrypto::Destroy) (CMUTIL_BlockCrypto *crypto) |
Destroys the block crypto object.
| crypto | The block crypto object to destroy. |