OpenVPN
Data Fields
crypto_options Struct Reference

Security parameter state for processing data channel packets. More...

#include <crypto.h>

Collaboration diagram for crypto_options:
Collaboration graph
[legend]

Data Fields

struct key_ctx_bi key_ctx_bi
 OpenSSL cipher and HMAC contexts for both sending and receiving directions. More...
 
struct packet_id packet_id
 Current packet ID state for both sending and receiving directions. More...
 
struct packet_id_persistpid_persist
 Persistent packet ID state for keeping state between successive OpenVPN process startups. More...
 
unsigned int flags
 Bit-flags determining behavior of security operation functions. More...
 

Detailed Description

Security parameter state for processing data channel packets.

Definition at line 230 of file crypto.h.

Field Documentation

◆ flags

unsigned int crypto_options::flags

◆ key_ctx_bi

struct key_ctx_bi crypto_options::key_ctx_bi

◆ packet_id

struct packet_id crypto_options::packet_id

Current packet ID state for both sending and receiving directions.

This contains the packet id that is used for replay protection.

The packet id also used as the IV for AEAD/OFB/CFG ciphers.

Definition at line 236 of file crypto.h.

Referenced by crypto_check_replay(), do_close_packet_id(), do_init_crypto_static(), key_state_free(), key_state_init(), openvpn_decrypt_aead(), openvpn_decrypt_v1(), openvpn_encrypt_aead(), openvpn_encrypt_v1(), send_hmac_reset_packet(), test_crypto_thread(), test_generate_reset_packet_tls_auth(), test_tls_crypt_setup(), tls_auth_standalone_free(), tls_auth_standalone_init(), tls_crypt_unwrap(), tls_crypt_wrap(), tls_process(), and tls_wrap_free().

◆ pid_persist

struct packet_id_persist* crypto_options::pid_persist

Persistent packet ID state for keeping state between successive OpenVPN process startups.

Definition at line 245 of file crypto.h.

Referenced by crypto_check_replay(), do_init_crypto_static(), do_init_crypto_tls(), and key_state_init().


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