PHP Class Jose\Algorithm\Signature\ECDSA

Inheritance: implements Jose\Algorithm\SignatureAlgorithmInterface
Afficher le fichier Open project: spomky-labs/jose

Méthodes publiques

Méthode Description
sign ( Jose\Object\JWKInterface $key, $data )
verify ( Jose\Object\JWKInterface $key, $data, $signature )

Méthodes protégées

Méthode Description
getGenerator ( ) : Mdanter\Ecc\Primitives\GeneratorPoint
getHashAlgorithm ( ) : string
getSignaturePartLength ( ) : integer

Private Methods

Méthode Description
checkKey ( Jose\Object\JWKInterface $key )
convertBase64ToGmp ( $value ) : resource
convertBinToHex ( string $value )
convertDecToHex ( $value ) : string
convertHexToBin ( string $value ) : string
convertHexToGmp ( string $value ) : resource
getOpenSSLSignature ( Jose\Object\JWKInterface $key, string $data ) : string
getPHPECCSignature ( Jose\Object\JWKInterface $key, string $data ) : string
verifyOpenSSLSignature ( Jose\Object\JWKInterface $key, string $data, string $R, string $S ) : boolean
verifyPHPECCSignature ( Jose\Object\JWKInterface $key, string $data, string $R, string $S ) : boolean

Method Details

getGenerator() abstract protected méthode

abstract protected getGenerator ( ) : Mdanter\Ecc\Primitives\GeneratorPoint
Résultat Mdanter\Ecc\Primitives\GeneratorPoint

getHashAlgorithm() abstract protected méthode

abstract protected getHashAlgorithm ( ) : string
Résultat string

getSignaturePartLength() abstract protected méthode

abstract protected getSignaturePartLength ( ) : integer
Résultat integer

sign() public méthode

public sign ( Jose\Object\JWKInterface $key, $data )
$key Jose\Object\JWKInterface

verify() public méthode

public verify ( Jose\Object\JWKInterface $key, $data, $signature )
$key Jose\Object\JWKInterface