HumHub Documentation (unofficial)

ES384 extends ECDSA
in package

FinalYes

Table of Contents

Methods

__construct()  : mixed
allowedKeyTypes()  : array<string|int, string>
Returns the key types suitable for this algorithm (e.g. "oct", "RSA"...).
name()  : string
Returns the name of the algorithm.
sign()  : string
Sign the input.
verify()  : bool
Verify the signature of data.
getHashAlgorithm()  : string
getSignaturePartLength()  : int
checkKey()  : void

Methods

__construct()

public __construct() : mixed

allowedKeyTypes()

Returns the key types suitable for this algorithm (e.g. "oct", "RSA"...).

public allowedKeyTypes() : array<string|int, string>
Return values
array<string|int, string>

name()

Returns the name of the algorithm.

public name() : string
Return values
string

sign()

Sign the input.

public sign(JWK $key, string $input) : string
Parameters
$key : JWK

The private key used to sign the data

$input : string

The input

Return values
string

verify()

Verify the signature of data.

public verify(JWK $key, string $input, string $signature) : bool
Parameters
$key : JWK

The private key used to sign the data

$input : string

The input

$signature : string

The signature to verify

Return values
bool

getHashAlgorithm()

protected getHashAlgorithm() : string
Return values
string

getSignaturePartLength()

protected getSignaturePartLength() : int
Return values
int

checkKey()

private checkKey(JWK $key) : void
Parameters
$key : JWK

        
On this page

Search results