/** * Copyright (C) 2021 Mikael Magnusson * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License version 2 for more details. * */ #pragma once #include "prng.h" #include #include typedef struct prng_context_s prng_context_t; prng_context_t *prng_alloc(); void prng_setup(prng_context_t *ctx); void prng_starts(prng_context_t *ctx); void prng_update(prng_context_t *ctx, const uint8_t *input, size_t ilen); void prng_finish(prng_context_t *ctx, uint8_t *output);