UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
openssl_encrypt_info Struct Reference

#include <openssl_encrypt.h>

Collaboration diagram for openssl_encrypt_info:
Collaboration graph

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)
 

Detailed Description

Definition at line 62 of file openssl_encrypt.h.

Member Data Documentation

◆ destroy

void(* openssl_encrypt_info::destroy) (struct openssl_encrypt *state)

Destroys state

Definition at line 77 of file openssl_encrypt.h.

◆ encrypt

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

Parameters
[in]encryptionstate
[in]plaintextplain text
[in]plaintext_lenlength of plain text
[in]aadAdditional 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_lenlength of AAD text
[out]ciphertextresulting ciphertext, can be up to (plaintext_len + MAX_CRYPTO_EXCEED) length
Returns
size of writen ciphertext
Return values
0on error

Definition at line 92 of file openssl_encrypt.h.

Referenced by audio_tx_send_chan(), and tx_send_base().

◆ get_cipher

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().

◆ get_overhead

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.

Parameters
[in]encryptionstate
Returns
max overhead (must be <= MAX_CRYPTO_EXCEED)

Definition at line 101 of file openssl_encrypt.h.

Referenced by audio_tx_send_chan(), and tx_send_base().

◆ init

int(* openssl_encrypt_info::init) (struct openssl_encrypt **state, const char *passphrase)

Initializes encryption

Parameters
[out]statecreated state
[in]passphrasekey material (NULL-terminated)
[in]mode
Return values
0success
<0failure
>0state not created

Definition at line 72 of file openssl_encrypt.h.

Referenced by tx_init().


The documentation for this struct was generated from the following file: