<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Crypto.Signers.Ed25519phSigner

public class Ed25519phSigner : ISigner
Ed25519ph (RFC 8032 ยง5.1) signature primitive: pre-hashes the message with SHA-512 before running pure Ed25519, parameterised by a fixed context captured at construction.
public virtual string AlgorithmName { get; }

public Ed25519phSigner(byte[] context)

Construct an Ed25519ph signer bound to the supplied context. The context bytes are cloned so the caller may mutate the array afterwards.

public virtual void BlockUpdate(byte[] buf, int off, int len)

public virtual byte[] GenerateSignature()

Finalise the pre-hash and produce the signature.

public virtual int GetMaxSignatureSize()

Length in bytes of an Ed25519ph signature (64).

public virtual void Init(bool forSigning, ICipherParameters parameters)

Initialise for signing (private key) or verification (public key).

public void Reset()

Reset the pre-hash digest; the captured context survives.

public virtual void Update(byte b)

public virtual bool VerifySignature(byte[] signature)

Finalise the pre-hash and verify signature.