Interface
IOfficePublicKeySignatureVerifier
OfficeIMO.Security
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
Returns
boolpublic abstract OfficePublicKeySignatureCheck Verify(OfficePublicKeySignatureAlgorithm algorithm, byte[] publicKey, byte[] data, byte[] signature) #Verifies signature over data.
Parameters
- algorithm OfficeIMO.Security.OfficePublicKeySignatureAlgorithm
- Signature scheme.
- publicKey byte[]
- For RSA, a DER SubjectPublicKeyInfo or PKCS #1 RSAPublicKey. For Ed25519, the raw 32-byte public key.
- data byte[]
- Exact signed bytes. RSA schemes hash them; Ed25519 signs them directly.
- signature byte[]
- Signature value.
Properties
public abstract string Name { get; } #Gets a stable provider name for diagnostics.