first commit

This commit is contained in:
annnj-company
2026-04-17 18:29:53 +08:00
parent e49fa5a215
commit 130c1026c4
5615 changed files with 1639145 additions and 0 deletions

View 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;
}