#include <string.h>

#include "crypto.h"
#include "crypto-internal.h"

void
sigsum_hash_key (struct sigsum_hash *kh, const struct sigsum_pubkey *key)
{
  struct sigsum_hash_ctx ctx;
  _sigsum_hash_init (&ctx);
  _sigsum_hash_update (&ctx, sizeof (key->k), key->k);
  _sigsum_hash_digest (&ctx, kh);
}
