master xplshn/aruu / shared / crypt.h
 1/* See LICENSE file for copyright and license details. */
 2#include <stdint.h>
 3struct crypt_ops {
 4  void (*init)(void *);
 5  void (*update)(void *, const void *, unsigned long);
 6  void (*sum)(void *, uint8_t *);
 7  void *s;
 8};
 9
10int  cryptcheck(int, char **, struct crypt_ops *, uint8_t *, size_t);
11int  cryptmain(int, char **, struct crypt_ops *, uint8_t *, size_t);
12int  cryptsum(struct crypt_ops *, int, const char *, uint8_t *);
13void mdprint(const uint8_t *, const char *, size_t);