Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Interface

IOfficePublicKeySignatureVerifier

OfficeIMO.Security

Namespace
OfficeIMO.Security
Assembly
OfficeIMO.Core
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
abstract

Verifies raw public-key signatures over caller-supplied bytes. The contract is dependency-free; implementations such as OfficeIMO.Security supply the cryptography. Implementations must not throw for hostile input.

Methods

public abstract bool Supports(OfficePublicKeySignatureAlgorithm algorithm) #

Returns true when the verifier implements algorithm.

Parameters

algorithm OfficeIMO.Security.OfficePublicKeySignatureAlgorithm required

Returns

bool
public abstract OfficePublicKeySignatureCheck Verify(OfficePublicKeySignatureAlgorithm algorithm, byte[] publicKey, byte[] data, byte[] signature) #

Verifies signature over data.

Parameters

algorithm OfficeIMO.Security.OfficePublicKeySignatureAlgorithm required
Signature scheme.
publicKey byte[] required
For RSA, a DER SubjectPublicKeyInfo or PKCS #1 RSAPublicKey. For Ed25519, the raw 32-byte public key.
data byte[] required
Exact signed bytes. RSA schemes hash them; Ed25519 signs them directly.
signature byte[] required
Signature value.

Properties

public abstract string Name { get; } #

Gets a stable provider name for diagnostics.