hash/sha2.bi

Summary
hash/sha2.bi
LicenseCopyright © 2007-2011, FreeBASIC Extended Library Development Group
ext.hashes.sha2
High Level API
Functions
checksum
checksum
checksum

License

Copyright © 2007-2011, FreeBASIC Extended Library Development Group

Copyright © 2005, 2007 Olivier Gay <olivier.email target=”gay@a3.epfl” name=”gay@a3.epfl”.ch>

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com/p/fb-extended-lib/wiki/License

High Level API

Functions

checksum

declare function checksum overload (byref x as string,  
byval keylen as uinteger =  256) as string

Parameters

xstring containing the data you wish to retrieve the checksum of.
keylenthe length of the key you wish to calculate, defaults to 256.

checksum

declare function checksum (byref x as ext.File,  
byval keylen as uinteger =  256,
byval blocksize as uinteger =  1048576) as string

Parameters

xFile containing the data you wish to retrieve the checksum of.
keylenthe length of the key you wish to calculate, defaults to 256.
blocksize(Optional) size of data to read from disk.

checksum

declare function checksum (byval x as any ptr,  
byval nbytes as uinteger,  
byval keylen as uinteger =  256) as string

Parameters

xpointer containing the data you wish to retrieve the checksum of.
nbytesthe number of bytes that can be read from x.
keylenthe length of the key you wish to calculate, defaults to 256.
declare function checksum overload (byref x as string,  
byval keylen as uinteger =  256) as string
Manages a connection to a disk file.