P. Anil Kumar wrote:
Hi,
I've compiled /export/testws/usr/src/lib/crypt_modules/sha256/test.c and tried 
to use it to calculate the checksum of the uberblock. This I did as the sha256 
executable that comes with solaris is not giving me the correct values for 
uberblock.(the output is 64chars whereas zfs output is only 49chars)


That won't work it has nothing what so ever to do with ZFS. That is a plugin for the crypt(3C) function used to hash users passwords.

ZFS uses normal SHA256 which you can access using the /usr/bin/digest command.

Can someone point out if my approach is wrong?

Yes it is completely wrong.

What problem are you actually trying to solve ?

What made you think that the file you grabbed was anything to do with ZFS ?

--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to