#ifndef CRYPTON_RFC6979_H#define CRYPTON_RFC6979_H#include <stdint.h>#include "crypton_sha256.h"#include "crypton_sha512.h"#define CRYPTON_RFC6979_SHA224 1#define CRYPTON_RFC6979_SHA256 2#define CRYPTON_RFC6979_SHA384 3#define CRYPTON_RFC6979_SHA512 4union crypton_rfc6979_ctx { struct sha256_ctx s256; struct sha512_ctx s512;};struct crypton_rfc6979 { union crypton_rfc6979_ctx ictx, octx; uint8_t k[64], v[64]; uint32_t dsize, bsize; int alg, started;};int crypton_rfc6979_init(struct crypton_rfc6979 *st, int alg, const uint8_t *seed, uint32_t seedlen);void crypton_rfc6979_next(struct crypton_rfc6979 *st, uint8_t *out, uint32_t qlen);void crypton_rfc6979_wipe(struct crypton_rfc6979 *st);uint32_t crypton_rfc6979_size(void);#endif