OpenVPN
Data Fields
key_parameters Struct Reference

internal structure similar to struct key that holds key information but is not represented on wire and can be changed/extended More...

#include <crypto.h>

Data Fields

uint8_t cipher [MAX_CIPHER_KEY_LENGTH]
 Key material for cipher operations.
 
int cipher_size
 Number of bytes set in the cipher key material.
 
uint8_t hmac [MAX_HMAC_KEY_LENGTH]
 Key material for HMAC operations.
 
int hmac_size
 Number of bytes set in the HMac key material.
 
uint16_t epoch
 the epoch of the key.
 

Detailed Description

internal structure similar to struct key that holds key information but is not represented on wire and can be changed/extended

Definition at line 162 of file crypto.h.

Field Documentation

◆ cipher

uint8_t key_parameters::cipher[MAX_CIPHER_KEY_LENGTH]

Key material for cipher operations.

Definition at line 164 of file crypto.h.

Referenced by epoch_test_derive_data_key(), and key_parameters_from_key().

◆ cipher_size

int key_parameters::cipher_size

Number of bytes set in the cipher key material.

Definition at line 167 of file crypto.h.

Referenced by epoch_test_derive_data_key(), and key_parameters_from_key().

◆ epoch

uint16_t key_parameters::epoch

the epoch of the key.

Only defined/non zero if key parameters represent a data channel epoch key parameters. Other uses of this struct leave this zero.

Definition at line 178 of file crypto.h.

Referenced by init_key_bi_ctx_recv(), and init_key_bi_ctx_send().

◆ hmac

uint8_t key_parameters::hmac[MAX_HMAC_KEY_LENGTH]

Key material for HMAC operations.

Definition at line 170 of file crypto.h.

Referenced by epoch_test_derive_data_key(), and key_parameters_from_key().

◆ hmac_size

int key_parameters::hmac_size

Number of bytes set in the HMac key material.

Definition at line 173 of file crypto.h.

Referenced by epoch_test_derive_data_key(), and key_parameters_from_key().


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