Difference between revisions of "Cryptographic Module"

From BaseX Documentation
Jump to navigation Jump to search
m
m
Line 3: Line 3:
 
# Creation and validation of an XML Digital Signature
 
# Creation and validation of an XML Digital Signature
 
# Encryption and decryption
 
# Encryption and decryption
 +
 +
==crypto:hmac==
 +
{|
 +
|-
 +
| valign='top' width='90' | '''Signatures'''
 +
|<code><b>crypto:hmac</b>($message as xs:string(), $secret-key as xs:string(), algorithm as xs:string()) as xs:string()</code>
 +
|-
 +
| valign='top' | '''Summary'''
 +
|This function creates a message authentication code via a cryptographic hash function and a secret key.
 +
|-
 +
| valign='top' | '''Errors'''
 +
|<b>?</b>
 +
|}

Revision as of 15:11, 6 October 2011

The cryptographic module is based on an early draft of the EXPath Cryptographic Module and provides the following functionality:

  1. Creation of message authentication codes (HMAC)
  2. Creation and validation of an XML Digital Signature
  3. Encryption and decryption

crypto:hmac

Signatures crypto:hmac($message as xs:string(), $secret-key as xs:string(), algorithm as xs:string()) as xs:string()
Summary This function creates a message authentication code via a cryptographic hash function and a secret key.
Errors ?