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)

Method Index

 o 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.
 o sign(Fingerprint)
Create a signature for the fingerprint fp.
 o signatureSize()
Returns the length of the signature in bytes.
 o signBlockSize()
Returns the maximum size in bytes of the fingerprint that can be signed.

Methods

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

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

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