18#ifndef PROTOCORE_SSH_KEXHASH_H
19#define PROTOCORE_SSH_KEXHASH_H
26#define SSH_KEXHASH_MAX_LEN 64
99 void (*
const init)(uint8_t *work);
100 void (*
const update)(uint8_t *work);
101 void (*
const final)(uint8_t *work);
114static const SshKexHashNs SshKexHash __attribute__((unused)) = {
void protocore_ssh_kex_hash_update(uint8_t *work)
SshKexHashVars SshKexHashV
The operands and the outcome.
void protocore_ssh_kex_hash_final(uint8_t *work)
void protocore_ssh_kex_hash_init(uint8_t *work)
uint8_t * out
SSH_KEXHASH_MAX_LEN bytes; the bound hash writes its own length.
Which of the two KEX hashes the negotiated method binds a digest to.
proto_bool is512
true for a -sha512 method, false for a -sha256 one
void(*const init)(uint8_t *work)
const uint8_t * data
the bytes
SshKexHashUpdateArgs update_args
SshKexHashInitArgs init_args
SshKexHashFinalArgs final_args
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS