ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
signing.c File Reference

GPG signing operations implementation. More...

Go to the source code of this file.

Macros

#define CRYPTO_GPG_SIGNING_ESCAPED_KEY_ID_BUFFER_SIZE   64
#define CRYPTO_GPG_SIGNING_HEX_S_BUFFER_SIZE   65

Functions

int gpg_sign_with_key (const char *key_id, const uint8_t *message, size_t message_len, uint8_t *signature_out, size_t *signature_len_out)
 Sign a message using GPG key (via gpg –detach-sign).
int gpg_sign_detached_ed25519 (const char *key_id, const uint8_t *message, size_t message_len, uint8_t signature_out[ED25519_SIGNATURE_SIZE])
 Sign message with GPG and extract raw Ed25519 signature.

Detailed Description

GPG signing operations implementation.

Definition in file signing.c.

Macro Definition Documentation

◆ CRYPTO_GPG_SIGNING_ESCAPED_KEY_ID_BUFFER_SIZE

#define CRYPTO_GPG_SIGNING_ESCAPED_KEY_ID_BUFFER_SIZE   64

Definition at line 8 of file signing.c.

Referenced by gpg_sign_with_key().

◆ CRYPTO_GPG_SIGNING_HEX_S_BUFFER_SIZE

#define CRYPTO_GPG_SIGNING_HEX_S_BUFFER_SIZE   65

Definition at line 9 of file signing.c.

Referenced by gpg_sign_detached_ed25519().