Documentation

SignHasher
in package
implements HasherInterface

Table of Contents

Interfaces

HasherInterface

Properties

$sizeMap  : array<string|int, int>
$adapter  : GmpMathInterface
$algorithm  : string

Methods

__construct()  : mixed
SignHasher constructor.
getAlgorithm()  : string
getLengthInBytes()  : int
makeHash()  : GMP
makeRawHash()  : string
truncateForECDSA()  : GMP

Properties

$sizeMap

protected static array<string|int, int> $sizeMap = ['sha1' => 20, 'sha224' => 28, 'sha256' => 32, 'sha384' => 48, 'sha512' => 64]

Methods

getAlgorithm()

public getAlgorithm() : string
Return values
string

getLengthInBytes()

public getLengthInBytes() : int
Return values
int

makeRawHash()

public makeRawHash(string $data) : string
Parameters
$data : string
Return values
string

        
On this page

Search results