com.digt.trusted.crypto.signers
Class GOST3410ELSigner

java.lang.Object
  extended by com.digt.trusted.crypto.signers.GOST3410ELSigner
All Implemented Interfaces:
GOST3410

public class GOST3410ELSigner
extends java.lang.Object
implements GOST3410


Constructor Summary
GOST3410ELSigner()
           
 
Method Summary
protected  void finalize()
           
 byte[] generateSignature(byte[] message)
          sign the passed in message (usually the output of a hash function).
 void init(boolean forSigning, CipherParameters key)
          initialise the signer for signature generation or signature verification.
 boolean verifySignature(byte[] message, byte[] sign)
          verify the message message against the signature values.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GOST3410ELSigner

public GOST3410ELSigner()
Method Detail

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

init

public void init(boolean forSigning,
                 CipherParameters key)
Description copied from interface: GOST3410
initialise the signer for signature generation or signature verification.

Specified by:
init in interface GOST3410
Parameters:
forSigning - true if we are generating a signature, false otherwise.
key - key parameters for signature generation.

generateSignature

public byte[] generateSignature(byte[] message)
Description copied from interface: GOST3410
sign the passed in message (usually the output of a hash function).

Specified by:
generateSignature in interface GOST3410
Parameters:
message - the message to be signed.
Returns:
sign value.

verifySignature

public boolean verifySignature(byte[] message,
                               byte[] sign)
Description copied from interface: GOST3410
verify the message message against the signature values.

Specified by:
verifySignature in interface GOST3410
Parameters:
message - the message that was supposed to have been signed.
sign - the signature value.