[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

System.Security.Cryptography.HashAlgorithm.TransformBlock

Kishore

7/19/2002 6:28:00 PM

Hi,

The System.Security.Cryptography.HashAlgorithm.TransformBlock(byte[] input,
int, int, byte[]output, int) method requires that you always provide the
output byte[] to copy the output to, which is kinda funny. Why would I need
to always pass the outut buffer. I might just want to TransformBlock into
hashcode. Isnt it? Or Am I understanding something wrong here ?

Again, I tried passing in a null for the output buffer and it threw a
Runtime exception. Also the output buffer size should be always equal to or
more than the input buffer.

The second thing I noticed is that the output buffer is always being filled
with the input what I gave and not the Hash value as the doucmentation says.
Am I doing something wrong here?

Please advise.

Thanks,
Kishore