PATH:
home
/
lab2454c
/
.trash
/
core
/
vendor
/
lcobucci
/
jwt
/
src
/
Signer
<?php declare(strict_types=1); namespace Lcobucci\JWT\Signer; use const OPENSSL_KEYTYPE_RSA; abstract class Rsa extends OpenSSL { final public function sign(string $payload, Key $key): string { return $this->createSignature($key->contents(), $key->passphrase(), $payload); } final public function verify(string $expected, string $payload, Key $key): bool { return $this->verifySignature($expected, $payload, $key->contents()); } final public function keyType(): int { return OPENSSL_KEYTYPE_RSA; } }
[-] InvalidKeyProvided.php
[edit]
[-] CannotSignPayload.php
[edit]
[-] OpenSSL.php
[edit]
[+]
Key
[+]
..
[-] Hmac.php
[edit]
[-] Rsa.php
[edit]
[-] Key.php
[edit]
[+]
Rsa
[+]
Hmac
[-] None.php
[edit]
[-] Ecdsa.php
[edit]
[+]
Ecdsa