Utility tools for encryption and decryption.
More...
|
typedef struct _gf_crypt_context | GF_Crypt |
|
|
GF_Crypt * | gf_crypt_open (GF_CRYPTO_ALGO algorithm, GF_CRYPTO_MODE mode) |
|
void | gf_crypt_close (GF_Crypt *gfc) |
|
GF_Err | gf_crypt_init (GF_Crypt *gfc, void *key, const void *iv) |
|
GF_Err | gf_crypt_set_key (GF_Crypt *gfc, void *key) |
|
GF_Err | gf_crypt_set_IV (GF_Crypt *gfc, const void *iv, u32 size) |
|
GF_Err | gf_crypt_get_IV (GF_Crypt *gfc, void *iv, u32 *size) |
|
GF_Err | gf_crypt_encrypt (GF_Crypt *gfc, void *plaintext, u32 size) |
|
GF_Err | gf_crypt_decrypt (GF_Crypt *gfc, void *ciphertext, u32 size) |
|