![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <openssl_decrypt.h>

Public Attributes | |
| int(* | decrypt )(struct openssl_decrypt *decrypt, const char *ciphertext, int ciphertext_len, const char *aad, int aad_len, char *plaintext, enum openssl_mode mode) |
| void(* | destroy )(struct openssl_decrypt *state) |
| int(* | init )(struct openssl_decrypt **state, const char *passphrase) |
Definition at line 47 of file openssl_decrypt.h.
| int(* openssl_decrypt_info::decrypt) (struct openssl_decrypt *decrypt, const char *ciphertext, int ciphertext_len, const char *aad, int aad_len, char *plaintext, enum openssl_mode mode) |
Decrypts block of data
| [in] | decrypt | decrypt state |
| [in] | ciphertext | encrypted text |
| [in] | ciphertext_len | lenght of encrypted text |
| [in] | aad | Aditional Authenticated Data (see openssl_encrypt documentation) |
| [in] | aad_len | length of aad block |
| [out] | plaintext | otput plaintext |
| 0 | if checksum doesn't match |
| >0 | length of output plaintext |
Definition at line 76 of file openssl_decrypt.h.
Referenced by decode_audio_frame(), and decode_video_frame().
| void(* openssl_decrypt_info::destroy) (struct openssl_decrypt *state) |
Destroys decryption state
Definition at line 63 of file openssl_decrypt.h.
Referenced by audio_decoder_destroy(), and video_decoder_destroy().
| int(* openssl_decrypt_info::init) (struct openssl_decrypt **state, const char *passphrase) |
Creates decryption state
| [out] | state | state pointer |
| [in] | passphrase | key material (NULL-terminated) |
| [in] | mode | mode |
| 0 | ok |
| <0 | failure |
| >0 | state was not created |
Definition at line 58 of file openssl_decrypt.h.
Referenced by audio_decoder_init(), and video_decoder_init().