All Packages Class Hierarchy This Package Previous Next Index
Interface is.logi.crypto.keys.SignatureKey
- public interface SignatureKey
- extends Key
This interface is implemented by keys that can be used to
create and validate signatures on blocks of data.
- Author:
- Logi Ragnarsson
(logir@hi.is)
-
sign(Fingerprint)
- Create a signature for a Fingerprint.
-
signatureSize()
- Returns the length of a signature in bytes.
-
signBlockSize()
- Returns the maximum size in bytes of the fingerprints
that can be signed.
-
verify(Signature, Fingerprint)
- Verify a Signature on a Fingerprint.
signBlockSize
public abstract int signBlockSize()
- Returns the maximum size in bytes of the fingerprints
that can be signed.
signatureSize
public abstract int signatureSize()
- Returns the length of a signature in bytes.
sign
public abstract Signature sign(Fingerprint fp) throws KeyException
- Create a signature for a Fingerprint.
- Throws: KeyException
- if this key can't be used to sign
this fingerprint for some reason.
verify
public abstract boolean verify(Signature s,
Fingerprint fp)
- Verify a Signature on a Fingerprint.
The methor returns true iff s
is a signature for
fp
created with this key in the case of a symmetric
key, or the other key in the pair in the case of an asymmetric key.
All Packages Class Hierarchy This Package Previous Next Index