1/* See LICENSE file for copyright and license details. */
2struct crypt_ops {
3 void (*init)(void *);
4 void (*update)(void *, const void *, unsigned long);
5 void (*sum)(void *, uint8_t *);
6 void *s;
7};
8
9int cryptcheck(int, char **, struct crypt_ops *, uint8_t *, size_t);
10int cryptmain(int, char **, struct crypt_ops *, uint8_t *, size_t);
11int cryptsum(struct crypt_ops *, int, const char *, uint8_t *);
12void mdprint(const uint8_t *, const char *, size_t);