aboutsummaryrefslogtreecommitdiffstats
path: root/doc/passhash.txt
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-04-15 14:29:07 +0000
committerlloyd <[email protected]>2011-04-15 14:29:07 +0000
commit3cc48850a1ff888025d7d454069ef0feaf87561e (patch)
treea5d2d663fce67f564713919d0be4d54ef16fb07d /doc/passhash.txt
parent0cbd87ebafdda027104dde4bd3a68f7c5f1f6d73 (diff)
Import the build results log. Wrap some really long lines.
Diffstat (limited to 'doc/passhash.txt')
-rw-r--r--doc/passhash.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/passhash.txt b/doc/passhash.txt
index 8c352f841..7874f8e22 100644
--- a/doc/passhash.txt
+++ b/doc/passhash.txt
@@ -113,13 +113,15 @@ look like this::
"$2a$12$7KIYdyv8Bp32WAvc.7YvI.wvRlyVn0HP/EhPmmOyMQA4YKxINO0p2"
-.. cpp:function:: std::string generate_bcrypt(const std::string& password, RandomNumberGenerator& rng, u16bit work_factor = 10)
+.. cpp:function:: std::string generate_bcrypt(const std::string& password, \
+ RandomNumberGenerator& rng, u16bit work_factor = 10)
Takes the password to hash, a rng, and a work factor. Higher values
increase the amount of time the algorithm runs, increasing the cost
of cracking attempts. The resulting hash is returned as a string.
-.. cpp:function:: bool check_bcrypt(const std::string& password, const std::string& hash)
+.. cpp:function:: bool check_bcrypt(const std::string& password, \
+ const std::string& hash)
Takes a password and a bcrypt output and returns true if the
password is the same as the one that was used to generate the
@@ -135,16 +137,19 @@ Passhash9
Botan also provides a password hashing technique called passhash9, in
``passhash9.h``, which is based on PBKDF2.
-.. cpp:function:: std::string generate_passhash9(const std::string& password, RandomNumberGenerator& rng, u16bit work_factor = 10)
+.. cpp:function:: std::string generate_passhash9(const std::string& password, \
+ RandomNumberGenerator& rng, u16bit work_factor = 10)
Functions much like ``generate_bcrypt``
-.. cpp:function:: std::string generate_passhash9(const std::string& password, byte alg_id, RandomNumberGenerator& rng, u16bit work_factor = 10)
+.. cpp:function:: std::string generate_passhash9(const std::string& password, \
+ byte alg_id, RandomNumberGenerator& rng, u16bit work_factor = 10)
Like the other ``generate_passhash9``, but taking a parameter that
specifies which PRF to use. Currently defined values are 0
("HMAC(SHA-1)"), 1 ("HMAC(SHA-256)"), and 2 ("CMAC(Blowfish)").
-.. cpp:function:: bool check_passhash9(const std::string& password, const std::string& hash)
+.. cpp:function:: bool check_passhash9(const std::string& password, \
+ const std::string& hash)
Functions much like ``check_bcrypt``