22 size_t ssh_hmac_bytes(
int alg);
26 struct ssh_hmac_ctx *ssh_hmac_start(
int alg);
29 int ssh_hmac_init(
struct ssh_hmac_ctx *ctx,
const void *key,
size_t klen)
30 __attribute__((__bounded__(__buffer__, 2, 3)));
31 int ssh_hmac_update(
struct ssh_hmac_ctx *ctx,
const void *m,
size_t mlen)
32 __attribute__((__bounded__(__buffer__, 2, 3)));
33 int ssh_hmac_update_buffer(
struct ssh_hmac_ctx *ctx,
const struct sshbuf *b);
34 int ssh_hmac_final(
struct ssh_hmac_ctx *ctx, u_char *d,
size_t dlen)
35 __attribute__((__bounded__(__buffer__, 2, 3)));
36 void ssh_hmac_free(
struct ssh_hmac_ctx *ctx);