summaryrefslogtreecommitdiff
path: root/libscrypt.h
diff options
context:
space:
mode:
authorTechnion <technion@lolware.net>2014-01-20 00:06:02 +0000
committerTechnion <technion@lolware.net>2014-01-20 00:06:02 +0000
commit44c5312e6c1cf5f3eb3394c2b8c19f3ea66ea7d2 (patch)
tree4019b4e1d6dc42d47c9adfba705a7913c57e2aa7 /libscrypt.h
parent5de7eac718adb0ed27c3d26e2ea408e191d0b8ef (diff)
Corrected signing for new prototypes.
Diffstat (limited to 'libscrypt.h')
-rw-r--r--libscrypt.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/libscrypt.h b/libscrypt.h
index 383d131..6af01e9 100644
--- a/libscrypt.h
+++ b/libscrypt.h
@@ -37,7 +37,7 @@ int libscrypt_mcf(uint32_t N, uint32_t r, uint32_t p, char *salt, char *hash, ch
/* Generates a salt. This is not a cryptographically unpredictable function,
* but should produce appropriately randomised output for this purpose
*/
-void libscrypt_salt_gen(/*@out@*/ char *rand, size_t len);
+void libscrypt_salt_gen(/*@out@*/ uint8_t *rand, size_t len);
/* Checks a given MCF against a password */
int libscrypt_check(char *mcf, char *password);
@@ -45,9 +45,6 @@ int libscrypt_check(char *mcf, char *password);
/* Creates a hash of a passphrase using a randomly generated salt */
int libscrypt_hash(char *dst, char* passphrase, uint32_t N, uint8_t r, uint8_t p);
-int libscrypt_b64_encode(unsigned char const*, size_t, /*@out@*/ char*, size_t);
-int libscrypt_b64_decode(char const*, /*@out@*/ unsigned char*, size_t);
-
/* Sane default values */
#define SCRYPT_HASH_LEN 64 /* This can be user defined -