2013-10-07 16:03:26 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
2013-07-07 14:29:45 +00:00
|
|
|
struct crypt_ops {
|
|
|
|
void (*init)(void *);
|
|
|
|
void (*update)(void *, const void *, unsigned long);
|
|
|
|
void (*sum)(void *, uint8_t *);
|
|
|
|
void *s;
|
|
|
|
};
|
|
|
|
|
2015-03-01 21:51:52 +00:00
|
|
|
int cryptcheck(int, char **, struct crypt_ops *, uint8_t *, size_t);
|
2013-11-30 21:11:19 +00:00
|
|
|
int cryptmain(int, char **, struct crypt_ops *, uint8_t *, size_t);
|
2017-01-02 01:00:33 +00:00
|
|
|
int cryptsum(struct crypt_ops *, int, const char *, uint8_t *);
|
2013-11-22 13:40:08 +00:00
|
|
|
void mdprint(const uint8_t *, const char *, size_t);
|