mirror of
git://git.suckless.org/sbase
synced 2024-12-27 17:42:29 +00:00
14 lines
435 B
C
14 lines
435 B
C
/* See LICENSE file for copyright and license details. */
|
|
struct crypt_ops {
|
|
void (*init)(void *);
|
|
void (*update)(void *, const void *, unsigned long);
|
|
void (*sum)(void *, uint8_t *);
|
|
void *s;
|
|
};
|
|
|
|
int cryptmain(int argc, char *argv[],
|
|
struct crypt_ops *ops, uint8_t *md, size_t sz);
|
|
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);
|