|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
OpenPGP (RFC 4880) packet format parser implementation. More...
Go to the source code of this file.
Functions | |
| asciichat_error_t | openpgp_base64_decode (const char *base64, size_t base64_len, uint8_t **binary_out, size_t *binary_len) |
| asciichat_error_t | openpgp_parse_packet_header (const uint8_t *data, size_t data_len, openpgp_packet_header_t *header) |
| asciichat_error_t | openpgp_extract_ed25519_from_mpi (const uint8_t *mpi, size_t mpi_len, uint8_t ed25519_pk[32]) |
| asciichat_error_t | openpgp_parse_public_key_packet (const uint8_t *packet_body, size_t body_len, openpgp_public_key_t *pubkey) |
| asciichat_error_t | openpgp_parse_armored_pubkey (const char *armored_text, uint8_t ed25519_pk[32]) |
| asciichat_error_t | openpgp_parse_secret_key_packet (const uint8_t *packet_body, size_t body_len, openpgp_secret_key_t *seckey) |
| asciichat_error_t | openpgp_parse_armored_seckey (const char *armored_text, uint8_t ed25519_pk[32], uint8_t ed25519_sk[32]) |
OpenPGP (RFC 4880) packet format parser implementation.
Definition in file openpgp.c.
| asciichat_error_t openpgp_base64_decode | ( | const char * | base64, |
| size_t | base64_len, | ||
| uint8_t ** | binary_out, | ||
| size_t * | binary_len | ||
| ) |
Definition at line 32 of file openpgp.c.
Referenced by openpgp_parse_armored_pubkey(), and openpgp_parse_armored_seckey().
| asciichat_error_t openpgp_extract_ed25519_from_mpi | ( | const uint8_t * | mpi, |
| size_t | mpi_len, | ||
| uint8_t | ed25519_pk[32] | ||
| ) |
Definition at line 167 of file openpgp.c.
| asciichat_error_t openpgp_parse_armored_pubkey | ( | const char * | armored_text, |
| uint8_t | ed25519_pk[32] | ||
| ) |
Definition at line 290 of file openpgp.c.
References openpgp_base64_decode(), openpgp_parse_packet_header(), and openpgp_parse_public_key_packet().
Referenced by parse_gpg_key_binary().
| asciichat_error_t openpgp_parse_armored_seckey | ( | const char * | armored_text, |
| uint8_t | ed25519_pk[32], | ||
| uint8_t | ed25519_sk[32] | ||
| ) |
Definition at line 649 of file openpgp.c.
References openpgp_base64_decode(), openpgp_parse_armored_seckey(), openpgp_parse_packet_header(), and openpgp_parse_secret_key_packet().
Referenced by openpgp_parse_armored_seckey(), and parse_private_key().
| asciichat_error_t openpgp_parse_packet_header | ( | const uint8_t * | data, |
| size_t | data_len, | ||
| openpgp_packet_header_t * | header | ||
| ) |
Definition at line 70 of file openpgp.c.
Referenced by openpgp_parse_armored_pubkey(), and openpgp_parse_armored_seckey().
| asciichat_error_t openpgp_parse_public_key_packet | ( | const uint8_t * | packet_body, |
| size_t | body_len, | ||
| openpgp_public_key_t * | pubkey | ||
| ) |
Definition at line 200 of file openpgp.c.
Referenced by openpgp_parse_armored_pubkey().
| asciichat_error_t openpgp_parse_secret_key_packet | ( | const uint8_t * | packet_body, |
| size_t | body_len, | ||
| openpgp_secret_key_t * | seckey | ||
| ) |
Definition at line 390 of file openpgp.c.
Referenced by openpgp_parse_armored_seckey().