Changeset 34569 in project


Ignore:
Timestamp:
09/18/17 09:59:19 (3 months ago)
Author:
LemonBoy
Message:

Update a bit the page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/hmac

    r29782 r34569  
    1919=== Requirements
    2020
    21 * [[Message Digest Port]]
     21* [[Message Digest]]
    2222
    2323=== List of Procedures
    2424
    2525==== {{hmac}}
    26 <procedure>(hmac key digest-primitive #!optional (block-size 64))</procedure>
     26<procedure>(hmac key digest-primitive #!optional (result-form 'string))</procedure>
    2727
    2828Takes {{key}} and {{digest-primitive}} and returns a function that takes {{message}} and produces an hmac.
     29
     30The {{result-form}} parameter may be used to change the format of the resulting hash, please refer to the [[/eggref/4/message-digest|message-digest documentation]] for more informations.
     31
     32==== {{hmac-primitive}}
     33<procedure>(hmac-primitive key digest-primitive)</procedure>
     34
     35Takes {{key}} and {{digest-primitive}} and returns a '''message-digest-primitive''' that calculates the HMAC with the parameters given.
    2936
    3037=== Example
     
    3845=== Version History
    3946
     47==== 7.1.0
     48Rewritten as a '''message-digest''' primitive.
     49Removed the {{block-size}} parameter as that's something specified by the hashing algorithm chosen.
     50==== 7.0.1
     51The '''hmac''' procedure no longer destroys the input.
     52Code cleanup and miscellaneous fixes.
     53==== 7
     54Removed dependency on srfi-4-utils as it is GPL and hmac is BSD.
    4055==== 6
    41 Removed dependency on srfi-4-utils as it is GPL and hmac is BSD.
    42 ==== 5
    4356Fixed egg category (was cryptography, now crypt)
    4457==== 4
Note: See TracChangeset for help on using the changeset viewer.