wickr-crypto-c
|
Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the cipher algorithms and maintains an identifier that can be used to look up the desired parameters for an algorithm. More...
#include <cipher.h>
Data Fields | |
wickr_cipher_id | cipher_id |
uint8_t | key_len |
uint8_t | iv_len |
uint8_t | auth_tag_len |
bool | is_authenticated |
Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the cipher algorithms and maintains an identifier that can be used to look up the desired parameters for an algorithm.
wickr_cipher::auth_tag_len |
the size of the authentication tag required by the cipher to authenticate output of the cipher
wickr_cipher::cipher_id |
identifier for the cipher to be used in serialization / deserialization to load a particular set of cipher parameters
wickr_cipher::is_authenticated |
specifies if the cipher requires authentication. If is_authenticated is true, then auth_tag_len must be non-zero
wickr_cipher::iv_len |
the size of the nonce in bytes required to cipher / decipher input
wickr_cipher::key_len |
the size of a key in bytes required to cipher / decipher input