All Packages Class Hierarchy This Package Previous Next Index
Interface is.hi.logir.cryptonite.SignatureKey
- public interface SignatureKey
- extends Key
This interface should only be implemented by keys that can be used to
create and validate signatures on blocks of data.
- Author:
- Logi Ragnarsson
(logir@hi.is)
-
matches(Signature, Fingerprint)
-
Return 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.
-
sign(Fingerprint)
- Create a signature for the fingerprint
fp
.
-
signatureSize()
- Returns the length of the signature in bytes.
-
signBlockSize()
- Returns the maximum size in bytes of the fingerprint
that can be signed.
signBlockSize
public abstract int signBlockSize()
- Returns the maximum size in bytes of the fingerprint
that can be signed.
signatureSize
public abstract int signatureSize()
- Returns the length of the signature in bytes.
sign
public abstract Signature sign(Fingerprint fp) throws KeyException
- Create a signature for the fingerprint
fp
.
- Throws: KeyException
- if this key can't be used to sign
this fingerprint for some reason.
matches
public abstract boolean matches(Signature s,
Fingerprint fp)
- Return 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