morpheus-base

morpheus base system
git clone git://git.2f30.org/morpheus-base
Log | Files | Refs

crypt.h (466B)


      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(char *, 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 *, FILE *, const char *, uint8_t *);
     12 void mdprint(const uint8_t *, const char *, size_t);