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)

Method Index

 o sign(Fingerprint)
Create a signature for a Fingerprint.
 o signatureSize()
Returns the length of a signature in bytes.
 o signBlockSize()
Returns the maximum size in bytes of the fingerprints that can be signed.
 o verify(Signature, Fingerprint)
Verify a Signature on a Fingerprint.

Methods

 o signBlockSize
 public abstract int signBlockSize()
Returns the maximum size in bytes of the fingerprints that can be signed.

 o signatureSize
 public abstract int signatureSize()
Returns the length of a signature in bytes.

 o 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.
 o 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