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;
|
|
|
|
};
|
|
|
|
|
2015-03-01 16:51:52 -05:00
|
|
|
int cryptcheck(int, char **, struct crypt_ops *, uint8_t *, size_t);
|
2013-11-30 16:11:19 -05:00
|
|
|
int cryptmain(int, char **, struct crypt_ops *, uint8_t *, size_t);
|
2013-11-22 08:40:08 -05:00
|
|
|
int cryptsum(struct crypt_ops *, FILE *, const char *, uint8_t *);
|
|
|
|
void mdprint(const uint8_t *, const char *, size_t);
|