ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
ssh_keys.h File Reference

Go to the source code of this file.

Functions

SSH Key Parsing
asciichat_error_t parse_ssh_ed25519_line (const char *line, uint8_t ed25519_pk[32])
 Parse SSH Ed25519 public key from "ssh-ed25519 AAAAC3..." format.
 
asciichat_error_t parse_ssh_private_key (const char *key_path, private_key_t *key_out)
 Parse SSH Ed25519 private key from file.
 
Key Formatting and Utilities
asciichat_error_t validate_ssh_key_file (const char *key_path)
 Validate SSH key file before parsing.
 
Key Conversion
asciichat_error_t ed25519_to_x25519_public (const uint8_t ed25519_pk[32], uint8_t x25519_pk[32])
 Convert Ed25519 public key to X25519 for key exchange.
 
asciichat_error_t ed25519_to_x25519_private (const uint8_t ed25519_sk[64], uint8_t x25519_sk[32])
 Convert Ed25519 private key to X25519 for key exchange.
 
Ed25519 Signing and Verification
asciichat_error_t ed25519_sign_message (const private_key_t *key, const uint8_t *message, size_t message_len, uint8_t signature[64])
 Sign a message with Ed25519 (uses SSH agent if available, otherwise in-memory key)
 
asciichat_error_t ed25519_verify_signature (const uint8_t public_key[32], const uint8_t *message, size_t message_len, const uint8_t signature[64], const char *gpg_key_id)
 Verify an Ed25519 signature.