RE: is XSECCryptoHash leaking mem ?

2007-09-05 Thread k b
Thanks for a quick response Scott. > Never mind, I see the docs imply the finalize call is supposed to do that > internally. I suspect it's a problem in how the EVP calls are made or > perhaps you're doing something unusual that prevents it from cleaning up. > I'm not doing anything unusual her

is XSECCryptoHash leaking mem ?

2007-09-05 Thread k b
Hi, Maybe i'm not doing this right, but according to Valgrind calling XSECCryptoHash is leaking mem, here's how i'm calling it. // start of code int GetSHA1Hash(unsigned char *pData, unsigned int pLen, char *pASCIIHash) { unsigned char hash[SHA_DIGEST_LENGTH]; XSECCryptoHash * sha1 = NU

XSECC14n20010315::setExclusive(void)

2007-08-03 Thread k b
can someone shed some light as to what this function does XSECC14n20010315::setExclusive(void) ?this class isn't documented at all. any insight would be helpful.thanks ! _ Messenger Café — open for fun 24/7. Hot games, cool activiti

RE: SHA1 hash of canonicalized xml

2007-08-03 Thread k b
To: security-dev@xml.apache.org> > k b wrote:> > How do i generate SHA1 hash of canonicalized xml ?> > i just want the sha1 hash.> > > > I know while signing a doc one can get the hash,> > but in this case i just want the hash and don't want to go through th

SHA1 hash of canonicalized xml

2007-08-02 Thread k b
How do i generate SHA1 hash of canonicalized xml ? i just want the sha1 hash. I know while signing a doc one can get the hash, but in this case i just want the hash and don't want to go through the signing process. is there an easier way ?thanks ! _

RE: Signing just one of the elements in a DOMDocument

2007-08-01 Thread k b
Thanks Scott !so let say this is my sample xml Tove Jani Reminder Lets meet this weekend! Jani Tove RE:Reminder Suresay i want to only sign the body of the second note element. How do you i go about doing thisif i use the XPath way how do i uniquely identify the second note's body. d

Signing just one of the elements in a DOMDocument

2007-08-01 Thread k b
Hi,is there a way that i could just sign just one element from the whole xml.i'm doing this right now, but don't know if i could selectively sign just one of the elements instead of the whole DOMDocument.try{ sig = prov.newSignature();sig->setDSIGNSPrefix(MAKE_UNICODE_ST