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

Public Attributes | |
| void(* | destroy )(struct openssl_encrypt *state) |
| int(* | encrypt )(struct openssl_encrypt *encryption, char *plaintext, int plaintext_len, char *aad, int aad_len, char *ciphertext) |
| enum openssl_mode(* | get_cipher )(struct openssl_encrypt *encryption) |
| int(* | get_overhead )(struct openssl_encrypt *encryption) |
| int(* | init )(struct openssl_encrypt **state, const char *passphrase) |
Definition at line 62 of file openssl_encrypt.h.
| void(* openssl_encrypt_info::destroy) (struct openssl_encrypt *state) |
Destroys state
Definition at line 77 of file openssl_encrypt.h.
| int(* openssl_encrypt_info::encrypt) (struct openssl_encrypt *encryption, char *plaintext, int plaintext_len, char *aad, int aad_len, char *ciphertext) |
Encrypts a block of data
| [in] | encryption | state |
| [in] | plaintext | plain text |
| [in] | plaintext_len | length of plain text |
| [in] | aad | Additional Authenticated Data this won't be encrypted but passed in plaintext along ciphertext. These data are autheticated only if working in some AE mode |
| [in] | aad_len | length of AAD text |
| [out] | ciphertext | resulting ciphertext, can be up to (plaintext_len + MAX_CRYPTO_EXCEED) length |
| 0 | on error |
Definition at line 92 of file openssl_encrypt.h.
Referenced by audio_tx_send_chan(), and tx_send_base().
| enum openssl_mode(* openssl_encrypt_info::get_cipher) (struct openssl_encrypt *encryption) |
Definition at line 101 of file openssl_encrypt.h.
Referenced by audio_tx_send_chan(), and tx_send_base().
| int(* openssl_encrypt_info::get_overhead) (struct openssl_encrypt *encryption) |
Returns maximal number of bytest that the ciphertext length may exceed plaintext for selected encryption.
| [in] | encryption | state |
Definition at line 101 of file openssl_encrypt.h.
Referenced by audio_tx_send_chan(), and tx_send_base().
| int(* openssl_encrypt_info::init) (struct openssl_encrypt **state, const char *passphrase) |
Initializes encryption
| [out] | state | created state |
| [in] | passphrase | key material (NULL-terminated) |
| [in] | mode |
| 0 | success |
| <0 | failure |
| >0 | state not created |
Definition at line 72 of file openssl_encrypt.h.
Referenced by tx_init().