<?xml-stylesheet type="text/xsl" href="/xforms-tests/xsltforms/xsltforms.xsl"?>
<html xmlns:my="http://commerce.example.com/payment" xmlns:txs="http://sourceforge.net/projects/txs" xmlns="http://www.w3.org/1999/xhtml" xmlns:req="http://www.agencexml.com/requests" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <head>
    <title>7.8.4.f hmac() function using default encoding base64</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model>
      <xforms:instance xmlns="">
	<root/>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:group>
      <xforms:label class="title">7.8.4.f hmac() function using default encoding base64</xforms:label>
    </xforms:group>

    <xforms:group>
      <xforms:label>
	You must see the group label "PASS" for all Tests. 
	If the function does not return the correct value you will see a group label
	with the word "FAIL" and the incorrect value.
      </xforms:label>
    </xforms:group>

    <!-- default is 'base64' -->
    <xforms:group> 
      <xforms:group ref="self::node()[hmac('key', 'abc', 'SHA-256')='nBluMtwBdfhvSxy4konWYZ3mvuaZ5MN45oMJ7Zehpqs=']">
	<xforms:label>Test 1 PASS </xforms:label>
      </xforms:group>
      <xforms:group ref="self::node()[hmac('key', 'abc', 'SHA-256')!='nBluMtwBdfhvSxy4konWYZ3mvuaZ5MN45oMJ7Zehpqs=']">
	<xforms:label>Test 1 FAIL: </xforms:label>
	<xforms:output value="hmac('key', 'abc', 'SHA-256')">
	  <xforms:label>Bad Value =</xforms:label>
	</xforms:output>
      </xforms:group>
    </xforms:group>
  </body>
</html>