|
Document of c-modernization-kit (porter) 1.0.0
|
Macros | |
| #define | POTR_CRYPTO_KEY_SIZE 32U |
| AES-256-GCM 鍵サイズ (バイト)。設定ファイルの encrypt_key に 64 文字 hex で指定する。 | |
| #define | POTR_CRYPTO_NONCE_SIZE 12U |
| AES-256-GCM ノンスサイズ (バイト)。session_id (4B NBO) + flags (2B NBO) + seq_or_ack_num (4B NBO) + padding (2B 0x00) で構成する。 | |
| #define | POTR_CRYPTO_TAG_SIZE 16U |
| AES-256-GCM 認証タグサイズ (バイト)。暗号文の直後に付加する。 | |
POTR_FLAG_ENCRYPTED が設定されたパケットの暗号化・復号に使用する定数です。
| #define POTR_CRYPTO_KEY_SIZE 32U |
#include </__w/c-modernization-kit/c-modernization-kit/prod/porter/include/porter_const.h>
AES-256-GCM 鍵サイズ (バイト)。設定ファイルの encrypt_key に 64 文字 hex で指定する。
Definition at line 85 of file porter_const.h.
Referenced by apply_service_kv(), and potr_passphrase_to_key().
| #define POTR_CRYPTO_NONCE_SIZE 12U |
#include </__w/c-modernization-kit/c-modernization-kit/prod/porter/include/porter_const.h>
AES-256-GCM ノンスサイズ (バイト)。session_id (4B NBO) + flags (2B NBO) + seq_or_ack_num (4B NBO) + padding (2B 0x00) で構成する。
Definition at line 86 of file porter_const.h.
Referenced by flush_packed(), flush_packed_peer(), health_thread_func(), n1_send_nack(), n1_send_ping_reply(), n1_send_reject(), peer_send_fin(), potr_decrypt(), potr_encrypt(), recv_thread_func(), send_fin(), send_nack(), send_ping_reply(), send_reject(), tcp_health_thread_func(), tcp_recv_thread_func(), and tcp_send_ping_reply().
| #define POTR_CRYPTO_TAG_SIZE 16U |
#include </__w/c-modernization-kit/c-modernization-kit/prod/porter/include/porter_const.h>
AES-256-GCM 認証タグサイズ (バイト)。暗号文の直後に付加する。
Definition at line 87 of file porter_const.h.
Referenced by flush_packed(), flush_packed_peer(), health_thread_func(), n1_send_nack(), n1_send_ping_reply(), n1_send_reject(), peer_send_fin(), potr_decrypt(), potr_encrypt(), potrOpenService(), recv_thread_func(), send_fin(), send_nack(), send_packed_peer_mode(), send_ping_reply(), send_reject(), send_thread_func(), send_to_peer(), tcp_health_thread_func(), and tcp_send_ping_reply().