diff options
author | lloyd <[email protected]> | 2011-04-19 18:36:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-04-19 18:36:38 +0000 |
commit | 7530ebcc5a3ffddf00cef432d6ff409783ae9902 (patch) | |
tree | 5c16cfe3bb97136211d3eb4c4be19e4023decb37 /doc/passhash.txt | |
parent | 73d4e7850e38228d25589dc154039dd4fced59a9 (diff) |
Document changes to passhash9 and ECDSA keys that I forgot to include
in the 1.9.16 change notes.
Update the passhash9 ref to match reality.
Diffstat (limited to 'doc/passhash.txt')
-rw-r--r-- | doc/passhash.txt | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/doc/passhash.txt b/doc/passhash.txt index 005043e44..e9a179c1a 100644 --- a/doc/passhash.txt +++ b/doc/passhash.txt @@ -133,23 +133,30 @@ Here is an example of using bcrypt: .. literalinclude:: examples/bcrypt.cpp +.. _passhash9: + Passhash9 ---------------------------------------- Botan also provides a password hashing technique called passhash9, in -``passhash9.h``, which is based on PBKDF2. +``passhash9.h``, which is based on PBKDF2. Its outputs look like:: -.. cpp:function:: std::string generate_passhash9(const std::string& password, \ - RandomNumberGenerator& rng, u16bit work_factor = 10) - - Functions much like ``generate_bcrypt`` + "$9$AAAKxwMGNPSdPkOKJS07Xutm3+1Cr3ytmbnkjO6LjHzCMcMQXvcT" .. 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)"). + RandomNumberGenerator& rng, u16bit work_factor = 10, byte alg_id = 0) + + Functions much like ``generate_bcrypt``. The last parameter, + ``alg_id``, specifies which PRF to use. Currently defined values + are + + ======= ============== + Value PRF algorithm + ======= ============== + 0 HMAC(SHA-1) + 1 HMAC(SHA-256) + 2 CMAC(Blowfish) + ======= ============== .. cpp:function:: bool check_passhash9(const std::string& password, \ const std::string& hash) |