#ifndef SIGSUM_SSH_H_INCLUDED
#define SIGSUM_SSH_H_INCLUDED

#include <stdbool.h>
#include <stddef.h>

#include "crypto.h"

/* Parses a NUL-terminated line, expected to contain a key in the
   format ssh-ed25519 <BASE64 BLOB> <OPTIONAL COMMENT>. Requires that
   the blob is properly terminated by space, tab, newline or end of
   string, and completely ignores any trailing data.
*/
bool
sigsum_ssh_parse_public_key (struct sigsum_pubkey *key, const char *s, const char **err);

#endif /* SIGSUM_SSH_H_INCLUDED */
