Changeset 36658 in project


Ignore:
Timestamp:
09/25/18 02:02:50 (3 months ago)
Author:
off_world
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/pbkdf2

    r36656 r36658  
    55=== Description
    66
    7 Password-Based Key Derivation Function 2 as defined in [[https://tools.ietf.org/html/rfc2898#section-5.2|RFC2898]]
     7Password-Based Key Derivation Function as defined in [[https://tools.ietf.org/html/rfc2898#section-5.2|RFC2898]]
     8
     9Note that PBKDF2 is recommended for new applications while PBKDF1 is recommended only for backwards compatibility with existing applications since the keys it produces may not be large enough for some applications.
    810
    911=== Author
    1012
    11 Tobias Heilig <off_world at gmx . de>
     13Tobias Heilig
     14
     15<off_world at gmx . de>
    1216
    1317=== Repository
     
    1721=== Requirements
    1822
     23* [[/eggref/4/message-digest|message-digest]]
    1924* [[/eggref/4/hmac|hmac]]
    20 * [[/eggref/4/sha1|sha1]]
    21 * [[/eggref/4/sha2|sha2]]
     25* [[/eggref/4/sha1|sha2]]
     26* [[/eggref/4/sha2|sha1]]
     27* [[/eggref/4/md5|md5]]
    2228
    2329=== API
     
    4551==== Procedures
    4652
     53===== {{pbkdf1-md5}}
     54<procedure>(pbkdf1-md5 password salt count dklen #!optional (result-type 'blob))</procedure>
     55
     56Derives a key of [[dklen]] bytes from the given [[password]] and [[salt]] using PBKDF1 with MD5. The maximum length of the derived key is bounded by the length of the hash function output which is 16 bytes for MD5.
     57
     58===== {{pbkdf1-sha1}}
     59<procedure>(pbkdf1-sha1 password salt count dklen #!optional (result-type 'blob))</procedure>
     60
     61Derives a key of [[dklen]] bytes from the given [[password]] and [[salt]] using PBKDF1 with SHA1. The maximum length of the derived key is bounded by the length of the hash function output which is 20 bytes for SHA1.
     62
    4763===== {{pbkdf2-hmac-sha1}}
    4864<procedure>(pbkdf2-hmac-sha1 password salt count dklen #!optional (result-type 'blob))</procedure>
     65
     66Derives a key of [[dklen]] bytes from the given [[password]] and [[salt]] using PBKDF2 with HMAC-SHA1. The maximum length of the derived key is 2^32 - 1.
    4967
    5068===== {{pbkdf2-hmac-sha256}}
    5169<procedure>(pbkdf2-hmac-sha256 password salt count dklen #!optional (result-type 'blob))</procedure>
    5270
     71
     72Derives a key of [[dklen]] bytes from the given [[password]] and [[salt]] using PBKDF2 with HMAC-SHA256. The maximum length of the derived key is 2^32 - 1.
     73
    5374===== {{pbkdf2-hmac-sha384}}
    5475<procedure>(pbkdf2-hmac-sha384 password salt count dklen #!optional (result-type 'blob))</procedure>
    5576
     77
     78Derives a key of [[dklen]] bytes from the given [[password]] and [[salt]] using PBKDF2 with HMAC-SHA384. The maximum length of the derived key is 2^32 - 1.
     79
    5680===== {{pbkdf2-hmac-sha512}}
    5781<procedure>(pbkdf2-hmac-sha512 password salt count dklen #!optional (result-type 'blob))</procedure>
     82
     83
     84Derives a key of [[dklen]] bytes from the given [[password]] and [[salt]] using PBKDF2 with HMAC-SHA512. The maximum length of the derived key is 2^32 - 1.
    5885
    5986=== Examples
Note: See TracChangeset for help on using the changeset viewer.