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

#include <openssl_decrypt.h>

Collaboration diagram for openssl_decrypt_info:
Collaboration graph

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)
 

Detailed Description

Definition at line 47 of file openssl_decrypt.h.

Member Data Documentation

◆ decrypt

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

Parameters
[in]decryptdecrypt state
[in]ciphertextencrypted text
[in]ciphertext_lenlenght of encrypted text
[in]aadAditional Authenticated Data (see openssl_encrypt documentation)
[in]aad_lenlength of aad block
[out]plaintextotput plaintext
Return values
0if checksum doesn't match
>0length of output plaintext

Definition at line 76 of file openssl_decrypt.h.

Referenced by decode_audio_frame(), and decode_video_frame().

◆ destroy

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

◆ init

int(* openssl_decrypt_info::init) (struct openssl_decrypt **state, const char *passphrase)

Creates decryption state

Parameters
[out]statestate pointer
[in]passphrasekey material (NULL-terminated)
[in]modemode
Return values
0ok
<0failure
>0state was not created

Definition at line 58 of file openssl_decrypt.h.

Referenced by audio_decoder_init(), and video_decoder_init().


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