Method | Description | |
---|---|---|
sign ( Jose\Object\JWKInterface $key, $data ) | ||
verify ( Jose\Object\JWKInterface $key, $data, $signature ) |
Method | Description | |
---|---|---|
getGenerator ( ) : Mdanter\Ecc\Primitives\GeneratorPoint | ||
getHashAlgorithm ( ) : string | ||
getSignaturePartLength ( ) : integer |
Method | 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 |
abstract protected getGenerator ( ) : Mdanter\Ecc\Primitives\GeneratorPoint | ||
return | Mdanter\Ecc\Primitives\GeneratorPoint |
abstract protected getHashAlgorithm ( ) : string | ||
return | string |
abstract protected getSignaturePartLength ( ) : integer | ||
return | integer |
public sign ( Jose\Object\JWKInterface $key, $data ) | ||
$key | Jose\Object\JWKInterface |
public verify ( Jose\Object\JWKInterface $key, $data, $signature ) | ||
$key | Jose\Object\JWKInterface |