2013-10-07 12:03:26 -04:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
2013-07-07 10:29:45 -04:00
|
|
|
struct crypt_ops {
|
|
|
|
void (*init)(void *);
|
|
|
|
void (*update)(void *, const void *, unsigned long);
|
|
|
|
void (*sum)(void *, uint8_t *);
|
|
|
|
void *s;
|
|
|
|
};
|
|
|
|
|
2013-09-02 06:17:55 -04:00
|
|
|
int cryptmain(int argc, char *argv[],
|
|
|
|
struct crypt_ops *ops, uint8_t *md, size_t sz);
|
2013-07-07 10:29:45 -04:00
|
|
|
int cryptsum(struct crypt_ops *ops, FILE *fp, const char *f,
|
|
|
|
uint8_t *md);
|
|
|
|
void mdprint(const uint8_t *md, const char *f, size_t len);
|