OpenVPN
|
Key ordering of the key2.keys
array.
More...
#include <crypto.h>
Data Fields | |
int | out_key |
Index into the key2.keys array for the sending direction. More... | |
int | in_key |
Index into the key2.keys array for the receiving direction. More... | |
int | need_keys |
The number of key objects necessary to support both sending and receiving. More... | |
Key ordering of the key2.keys
array.
This structure takes care of correct ordering when using unidirectional or bidirectional key material, and allows the same shared secret key file to be loaded in the same way by client and server by having one of the hosts use an reversed ordering.
int key_direction_state::in_key |
Index into the key2.keys
array for the receiving direction.
Definition at line 200 of file crypto.h.
Referenced by init_key_ctx_bi(), and key_direction_state_init().
int key_direction_state::need_keys |
The number of key objects necessary to support both sending and receiving.
This will be 1 if the same keys are used in both directions, or 2 if there are two sets of unidirectional keys.
Definition at line 202 of file crypto.h.
Referenced by crypto_read_openvpn_key(), and key_direction_state_init().
int key_direction_state::out_key |
Index into the key2.keys
array for the sending direction.
Definition at line 198 of file crypto.h.
Referenced by init_key_ctx_bi(), and key_direction_state_init().