public byte[] GenerateSignature()
{
if (PreComputedSignature.Length > 0)
{
currentSignature = PreComputedSignature;
return PreComputedSignature;
}
else
{
byte[] hash = new byte[digest.GetDigestSize()];
digest.DoFinal(hash, 0);
//jbonilla
currentSignature = hash;
return currentSignature;
}
}