hymmalm 0.2.0

Licensing client for license-management.com: JWS-signed license verification, trial bootstrap, activation and offline cache. Statically vendors the C core (Tauri-ready).
Documentation
/* SHA-512 (FIPS 180-4) — needed by the Ed25519 verifier. */
#ifndef HLM_SHA512_H
#define HLM_SHA512_H

#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

#define HLM_SHA512_BLOCK_SIZE 128
#define HLM_SHA512_DIGEST_SIZE 64

typedef struct {
    uint64_t state[8];
    uint64_t bitlen_hi, bitlen_lo;
    uint8_t buf[HLM_SHA512_BLOCK_SIZE];
    size_t buf_len;
} hlm_sha512_ctx;

void hlm_sha512_init(hlm_sha512_ctx *c);
void hlm_sha512_update(hlm_sha512_ctx *c, const void *data, size_t len);
void hlm_sha512_final(hlm_sha512_ctx *c, uint8_t out[HLM_SHA512_DIGEST_SIZE]);

void hlm_sha512(const void *data, size_t len,
                uint8_t out[HLM_SHA512_DIGEST_SIZE]);

#ifdef __cplusplus
}
#endif

#endif /* HLM_SHA512_H */