crypt.h (481B)
1 /* see LICENSE file for copyright and license details */ 2 #include <stdint.h> 3 struct crypt_ops { 4 void (*init)(void *); 5 void (*update)(void *, const void *, unsigned long); 6 void (*sum)(void *, uint8_t *); 7 void *s; 8 }; 9 10 int cryptcheck(int, char **, struct crypt_ops *, uint8_t *, size_t); 11 int cryptmain(int, char **, struct crypt_ops *, uint8_t *, size_t); 12 int cryptsum(struct crypt_ops *, int, const char *, uint8_t *); 13 void mdprint(const uint8_t *, const char *, size_t);