trace(1): resolve all level-5 LLVM warnings
[minix3.git] / lib / libcrypt / crypt.h
blobce81a742241fddc1bc1ebe73c6b9df68171dbcfd
1 /*
2 * $NetBSD: crypt.h,v 1.4 2006/10/27 18:22:56 drochner Exp $
3 */
4 char *__md5crypt(const char *pw, const char *salt); /* XXX */
5 char *__bcrypt(const char *, const char *); /* XXX */
6 char *__crypt_sha1(const char *pw, const char *salt);
7 unsigned int __crypt_sha1_iterations (unsigned int hint);
8 void __hmac_sha1(const unsigned char *, size_t, const unsigned char *, size_t,
9 unsigned char *);
10 void __crypt_to64(char *s, u_int32_t v, int n);
12 int __gensalt_blowfish(char *salt, size_t saltlen, const char *option);
13 int __gensalt_old(char *salt, size_t saltsiz, const char *option);
14 int __gensalt_new(char *salt, size_t saltsiz, const char *option);
15 int __gensalt_md5(char *salt, size_t saltsiz, const char *option);
16 int __gensalt_sha1(char *salt, size_t saltsiz, const char *option);
18 #define SHA1_MAGIC "$sha1$"
19 #define SHA1_SIZE 20