Add cryptmain() and factor out the code from the crypt tools

This commit is contained in:
sin
2013-09-02 11:17:55 +01:00
parent 4d014e66fd
commit 573d1954b2
6 changed files with 28 additions and 64 deletions

View File

@@ -5,6 +5,8 @@ struct crypt_ops {
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);