first commit
This commit is contained in:
31
pgserver/vendor/mdanter/ecc/src/Crypto/Signature/HasherInterface.php
vendored
Normal file
31
pgserver/vendor/mdanter/ecc/src/Crypto/Signature/HasherInterface.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Mdanter\Ecc\Crypto\Signature;
|
||||
|
||||
use Mdanter\Ecc\Primitives\GeneratorPoint;
|
||||
|
||||
interface HasherInterface
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAlgorithm(): string;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getLengthInBytes(): int;
|
||||
|
||||
/**
|
||||
* @param string $data
|
||||
* @return string
|
||||
*/
|
||||
public function makeRawHash(string $data): string;
|
||||
|
||||
/**
|
||||
* @param string $data
|
||||
* @param GeneratorPoint $G
|
||||
* @return \GMP
|
||||
*/
|
||||
public function makeHash(string $data, GeneratorPoint $G): \GMP;
|
||||
}
|
||||
Reference in New Issue
Block a user