File "SignerTest.php"
Full Path: /home/digidjwy/public_html/wp-content/plugins/mycryptocheckout/vendor/mdanter/ecc/tests/unit/Crypto/Signature/SignerTest.php
File size: 645 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Mdanter\Ecc\Tests\Crypto\Signature;
use Mdanter\Ecc\Crypto\Signature\Signer;
use Mdanter\Ecc\EccFactory;
use Mdanter\Ecc\Math\GmpMath;
use Mdanter\Ecc\Tests\AbstractTestCase;
class SignerTest extends AbstractTestCase
{
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Unsupported hashing algorithm
*/
public function testInvalidHashAlgorithm()
{
$adapter = new GmpMath();
$generator = EccFactory::getNistCurves()->generator192();
$signer = new Signer($adapter);
$signer->hashData($generator, 'blahblah', 'message to be signed');
}
}