cryptix.provider.elgamal
Class SHA1_ElGamal_PKCS1Signature

java.lang.Object
  extended by java.security.SignatureSpi
      extended by java.security.Signature
          extended by cryptix.provider.elgamal.Any_ElGamal_PKCS1Signature
              extended by cryptix.provider.elgamal.SHA1_ElGamal_PKCS1Signature

public class SHA1_ElGamal_PKCS1Signature
extends Any_ElGamal_PKCS1Signature

A class to digest a message with SHA-1, and sign/verify the resulting hash using the ElGamal digital signature scheme, with PKCS#1 block padding.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.2 $

Since:
Cryptix 2.2.2
Author:
Raif S. Naffah, David Hopwood

Field Summary
 
Fields inherited from class java.security.Signature
SIGN, state, UNINITIALIZED, VERIFY
 
Fields inherited from class java.security.SignatureSpi
appRandom
 
Constructor Summary
SHA1_ElGamal_PKCS1Signature()
           
 
Method Summary
protected  byte[] getAlgorithmEncoding()
          Returns the ASN.1 bytes of the AlgorithmIdentifier token described in engineSign() method above.
 
Methods inherited from class cryptix.provider.elgamal.Any_ElGamal_PKCS1Signature
engineGetParameter, engineInitSign, engineInitVerify, engineSetParameter, engineSign, engineUpdate, engineUpdate, engineVerify
 
Methods inherited from class java.security.Signature
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verify
 
Methods inherited from class java.security.SignatureSpi
engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SHA1_ElGamal_PKCS1Signature

public SHA1_ElGamal_PKCS1Signature()
Method Detail

getAlgorithmEncoding

protected byte[] getAlgorithmEncoding()
Description copied from class: Any_ElGamal_PKCS1Signature
Returns the ASN.1 bytes of the AlgorithmIdentifier token described in engineSign() method above.

Specified by:
getAlgorithmEncoding in class Any_ElGamal_PKCS1Signature
Returns:
the AlgorithmIdentifier bytes.