Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
暗号化定数 (AES-256-GCM)

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 認証タグサイズ (バイト)。暗号文の直後に付加する。

Detailed Description

POTR_FLAG_ENCRYPTED が設定されたパケットの暗号化・復号に使用する定数です。

Macro Definition Documentation

◆ POTR_CRYPTO_KEY_SIZE

#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().

◆ POTR_CRYPTO_NONCE_SIZE

#define POTR_CRYPTO_NONCE_SIZE   12U

◆ POTR_CRYPTO_TAG_SIZE