wickr-crypto-c

Data Fields
wickr_cipher Struct Reference
wickr_cipher_t

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

## Detailed Description

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.

## Field Documentation

## ◆ auth_tag_len

wickr_cipher::auth_tag_len

the size of the authentication tag required by the cipher to authenticate output of the cipher

## ◆ cipher_id

wickr_cipher::cipher_id

identifier for the cipher to be used in serialization / deserialization to load a particular set of cipher parameters

## ◆ is_authenticated

wickr_cipher::is_authenticated

specifies if the cipher requires authentication. If is_authenticated is true, then auth_tag_len must be non-zero

## ◆ iv_len

wickr_cipher::iv_len

the size of the nonce in bytes required to cipher / decipher input

## ◆ key_len

wickr_cipher::key_len

the size of a key in bytes required to cipher / decipher input

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

- src/wickrcrypto/include/wickrcrypto/cipher.h