|
VLink
2.0.0
A high-performance communication middleware
|
Aggregate of every parameter accepted by the Security constructor.
更多...
#include <security.h>
类 | |
| struct | Advanced |
| Low-frequency policy knobs and sender-authentication keys. 更多... | |
Public 成员函数 | |
| Config ()=default | |
Public 属性 | |
| std::string | key |
| Raw symmetric seed; SHA-256 truncated to 16 bytes. 更多... | |
| std::string | passphrase |
| Low-entropy passphrase consumed by PBKDF2-HMAC-SHA256. 更多... | |
| Bytes | pbkdf2_salt |
| Per-deployment salt (>=16 bytes) shared out of band. 更多... | |
| uint32_t | pbkdf2_iterations {200000U} |
| PBKDF2 iteration count, tune for target hardware. 更多... | |
| std::string | public_key_pem |
| Peer's RSA public key (PEM) for RSA-OAEP outbound wrap. 更多... | |
| std::string | private_key_pem |
| Local RSA private key (PEM) for RSA-OAEP inbound unwrap. 更多... | |
| Callback | encrypt_callback |
| Custom encrypt; bypasses the built-in AEAD pipeline. 更多... | |
| Callback | decrypt_callback |
Custom decrypt; must accompany encrypt_callback. 更多... | |
| Advanced | advanced |
| AAD, replay window, and signing / verifying PEM material. 更多... | |
Aggregate of every parameter accepted by the Security constructor.
Fields are processed independently. Empty strings, empty Bytes, and null callbacks mean "leave this slot blank"; non-empty values are validated by the constructor and installed on success or logged-and-ignored on failure. When every cryptographic field is empty and VLINK_ENABLE_SECURITY is defined, the constructor falls back to the built-in default symmetric slot, which is intended for development only.
public_key_pem (if installed) -> key / passphrase -> default slot.private_key_pem (if installed) -> key / passphrase -> default slot.
|
default |
| Advanced vlink::Security::Config::advanced |
AAD, replay window, and signing / verifying PEM material.
| Callback vlink::Security::Config::decrypt_callback |
Custom decrypt; must accompany encrypt_callback.
| Callback vlink::Security::Config::encrypt_callback |
Custom encrypt; bypasses the built-in AEAD pipeline.
| std::string vlink::Security::Config::key |
Raw symmetric seed; SHA-256 truncated to 16 bytes.
| std::string vlink::Security::Config::passphrase |
Low-entropy passphrase consumed by PBKDF2-HMAC-SHA256.
| uint32_t vlink::Security::Config::pbkdf2_iterations {200000U} |
PBKDF2 iteration count, tune for target hardware.
| Bytes vlink::Security::Config::pbkdf2_salt |
Per-deployment salt (>=16 bytes) shared out of band.
| std::string vlink::Security::Config::private_key_pem |
Local RSA private key (PEM) for RSA-OAEP inbound unwrap.
| std::string vlink::Security::Config::public_key_pem |
Peer's RSA public key (PEM) for RSA-OAEP outbound wrap.