Skip to content

Commit

Permalink
Add info text to hashlib.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Schnitzer committed Jul 24, 2015
1 parent a914a3a commit 5894f01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/hashlib.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define MAX_SHA512_LEN 128
#define MAX_WHIRLPOOL_LEN 128

// hashing functions (used for hashing sensitive data like passwords)
native hashlib_md5(str[], salt[], out[], out_len);
native hashlib_sha1(str[], salt[], out[], out_len);
native hashlib_sha224(str[], salt[], out[], out_len);
Expand All @@ -21,5 +22,7 @@ native hashlib_sha384(str[], salt[], out[], out_len);
native hashlib_sha512(str[], salt[], out[], out_len);
native hashlib_whirlpool(str[], salt[], out[], out_len);
native hashlib_generate_salt(out[], out_len, random_bytes_len = 2048);

// no hashing functions (do not use these functions for encrypting/decrypting sensitive data!)
native hashlib_base64_encode(str[], out[], out_len);
native hashlib_base64_decode(str[], out[], out_len);

0 comments on commit 5894f01

Please sign in to comment.