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

Private identity-key material used for server authentication and signing. More...

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

Data Fields

key_type_t type
union { 
   uint8_t   private_key_t::ed25519 [ED25519_PRIVATE_KEY_SIZE] 
   uint8_t   private_key_t::x25519 [X25519_KEY_SIZE] 
} key
bool use_ssh_agent
bool use_gpg_agent
uint8_t public_key [CRYPTO_PUBLIC_KEY_SIZE]
char key_comment [MAX_COMMENT_LEN]
char gpg_keygrip [MAX_GPG_KEYGRIP_LEN]

Detailed Description

Private identity-key material used for server authentication and signing.

Supports Ed25519 signing keys and X25519 private scalars, along with the public key and labels needed when a key is loaded from a file or delegated to an SSH/GPG agent. The server currently receives identity keys through the configured --key option; this type itself is not tied to a command-line flag.

Note
Ed25519 keys: 64 bytes (32-byte seed + 32-byte public key)
X25519 keys: 32 bytes (private scalar)
Agent support: Can use SSH agent or GPG agent for signing (keys stay in agent)
GPG support: use_gpg_agent flag exists but GPG agent support is currently disabled
Warning
GPG agent: use_gpg_agent flag exists but functionality is currently disabled. Setting use_gpg_agent=true will not work until GPG support is re-enabled.

Definition at line 97 of file key_types.h.


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