sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

crypt.h (455B)


      1 /* See LICENSE file for copyright and license details. */
      2 struct crypt_ops {
      3 	void (*init)(void *);
      4 	void (*update)(void *, const void *, unsigned long);
      5 	void (*sum)(void *, uint8_t *);
      6 	void *s;
      7 };
      8 
      9 int cryptcheck(int, char **, struct crypt_ops *, uint8_t *, size_t);
     10 int cryptmain(int, char **, struct crypt_ops *, uint8_t *, size_t);
     11 int cryptsum(struct crypt_ops *, int, const char *, uint8_t *);
     12 void mdprint(const uint8_t *, const char *, size_t);