You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Berin Lautenbach <be...@wingsofhermes.org> on 2005/03/02 10:05:41 UTC

Re: DSIGSignature::calculateSignedInfoAndReferenceHash

Happy to add anything that's useful into the API!

Do you mind if I just add straight to CVS?

Cheers,
	Berin

Eckehard.Hermann@softwareag.com wrote:

> Hi all,
> 
> for some reasons we have the need to calculate the SignedInfo hash, 
> including the reference hashes, before signing a document. So I suggest 
> to add the following method to the DSIGSignature class:
> 
> unsigned int DSIGSignature::calculateSignedInfoAndReferenceHash(unsigned 
> char * hashBuf, unsigned int hashBufLen) {
> 
>         // Set up the reference list hashes - including any manifests
>         mp_signedInfo->hash();
>         // calculae signed InfoHash
>         return calculateSignedInfoHash(hashBuf,hashBufLen);
> }
> 
> So what do you think?
> 
> Kind regards,
> Eckehard
> 
> <<DSIGSignature.hpp>> <<DSIGSignature.cpp>>
>