PHP Classes

File: src/Impl/Hash.md

Recommend this page to a friend!
  Classes of Kjell-Inge Gustafsson   PHP XML Signature   src/Impl/Hash.md   Download  
File: src/Impl/Hash.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP XML Signature
Parse and create XML documents signed digitally
Author: By
Last change:
Date: 4 years ago
Size: 872 bytes
 

Contents

Class file image Download

DsigSdk hash aid support

Kigkonsult\DsigSdk\Impl\HashFactory static methods

  • __assertAlgorithm__( (string) algorithm ) Return matching algorithm found usinghash_algos* * Throws InvalidArgumentException on not found
  • __generate__( algorithm, (string) data, \[(bool) rawOutput\] ) * algorithm as above * rawOutput default false * Return string hash based on given data * Throws InvalidArgumentException on invalid algorithm
  • __generateFile__( (string) algorithm, (string) fileName, \[(bool) rawOutput\] ) * algorithm as above * Supports fopen wrappers as filename * rawOutput default false * Return string hash based on contents of a given file * Throws InvalidArgumentException on invalid algorithm
  • __hashEquals__( (string) expected, (string) actual ) * Return bool true if hashes match

Return