You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Ec...@softwareag.com on 2005/02/28 13:35:45 UTC
DSIGSignature::calculateSignedInfoAndReferenceHash
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>>
Re: DSIGSignature::calculateSignedInfoAndReferenceHash
Posted by Berin Lautenbach <be...@wingsofhermes.org>.
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>>
>