W3C home > Mailing lists > Public > public-forms@w3.org > October 2007

examples for 7.8.4 The hmac() Function (spec xml)

From: <Nick_Van_den_Bleeken@inventivegroup.com>
Date: Wed, 31 Oct 2007 16:53:37 +0100
To: boyerj@ca.ibm.com, "public-forms " <public-forms@w3.org>
Message-ID: <OF346A4102.356D6536-ONC1257385.0056F8BC-C1257385.00574D0A@inventivegroup.com>

John,

Is it possible to add this examples to the fn-hmac section (7.8.4 The 
hmac() Function)? This section currently doesn't contain any examples. 
These examples come from the RFC 2104 - HMAC: Keyed-Hashing for Message 
Authentication [1].

                <example>
                        <eg><phrase diff="chg">hmac</phrase>('Jefe', 'what 
do ya want for nothing?', 'SHA-1', 'hex')</eg>
                        <p>returns <code>
effcdf6ae5eb2fa2d27416d5f184df9c259a7c79</code>.</p>
                        <eg><phrase diff="chg">hmac</phrase>('Jefe', 'what 
do ya want for nothing?', 'MD5', 'hex')</eg>
                        <p>returns <code>750c783e6ab0b503eaa86e310a5db738
</code>.</p>
                        <eg><phrase diff="chg">hmac</phrase>('Jefe', 'what 
do ya want for nothing?', 'SHA-256', 'hex')</eg>
                        <p>returns <code>
5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843</code></p
>
                </example>

Regards,

Nick Van den Bleeken  -  Research & Development
Inventive Designers
Phone: +32 - 3 - 8210170
Fax: +32 - 3 - 8210171
Email: Nick_Van_den_Bleeken@inventivegroup.com

[1] http://www.faqs.org/rfcs/rfc2104.html


--------------------------------------------------

Inventive Designers' Email Disclaimer:

http://www.inventivedesigners.com/email-disclaimer
Received on Wednesday, 31 October 2007 15:53:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:46 UTC