ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
crypto_policy_t Struct Reference

The useful part of crypto policy is in transport_secure, encrypt, no_encrypt, no_auth: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path. TLS/DTLS protect the transport. Keys request authentication, not encryption. Explicit no-encrypt wins over the password default, enabling auth-only. More...

#include <include/ascii-chat/crypto/policy.h>

Data Fields

bool transport_secure
bool encrypt
bool no_encrypt
bool no_auth
bool has_password
bool has_identity
bool has_verification_key

Detailed Description

The useful part of crypto policy is in transport_secure, encrypt, no_encrypt, no_auth: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path. TLS/DTLS protect the transport. Keys request authentication, not encryption. Explicit no-encrypt wins over the password default, enabling auth-only.

Transport-independent inputs shared by native, WASM, and mobile callers.

Definition at line 12 of file policy.h.

Field Documentation

◆ encrypt

bool crypto_policy_t::encrypt

Definition at line 14 of file policy.h.

Referenced by acip_security_init_options(), crypto_policy_resolve(), and peer_crypto_create().

◆ has_identity

bool crypto_policy_t::has_identity

Definition at line 18 of file policy.h.

Referenced by acip_security_init_options(), and crypto_policy_resolve().

◆ has_password

bool crypto_policy_t::has_password

Definition at line 17 of file policy.h.

Referenced by acip_security_init_options(), crypto_policy_resolve(), and peer_crypto_create().

◆ has_verification_key

bool crypto_policy_t::has_verification_key

Definition at line 19 of file policy.h.

Referenced by acip_security_init_options(), and crypto_policy_resolve().

◆ no_auth

bool crypto_policy_t::no_auth

Definition at line 16 of file policy.h.

Referenced by crypto_policy_resolve().

◆ no_encrypt

bool crypto_policy_t::no_encrypt

Definition at line 15 of file policy.h.

Referenced by acip_security_init_options(), crypto_policy_resolve(), and peer_crypto_create().

◆ transport_secure

bool crypto_policy_t::transport_secure

Definition at line 13 of file policy.h.

Referenced by crypto_policy_resolve().


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