0 evaluări0% au considerat acest document util (0 voturi)
10 vizualizări1 pagină
This document provides a MATLAB function to generate a digital signature or hash of a true-color image file using various SHA algorithms like SHA1, SHA224, and SHA256. The function takes in the number of pixel lines, number of pixels per line, hash algorithm to use, and image file path as inputs. It generates the image digest and returns the digest and padded message by calling an external "hash.m" program. The function has been tested over 80 rounds against standard test vectors but may have issues with bit resolution overflow or underflow.
This document provides a MATLAB function to generate a digital signature or hash of a true-color image file using various SHA algorithms like SHA1, SHA224, and SHA256. The function takes in the number of pixel lines, number of pixels per line, hash algorithm to use, and image file path as inputs. It generates the image digest and returns the digest and padded message by calling an external "hash.m" program. The function has been tested over 80 rounds against standard test vectors but may have issues with bit resolution overflow or underflow.
This document provides a MATLAB function to generate a digital signature or hash of a true-color image file using various SHA algorithms like SHA1, SHA224, and SHA256. The function takes in the number of pixel lines, number of pixels per line, hash algorithm to use, and image file path as inputs. It generates the image digest and returns the digest and padded message by calling an external "hash.m" program. The function has been tested over 80 rounds against standard test vectors but may have issues with bit resolution overflow or underflow.
Be the first to rate this file! 12 Downloads (last 30 days) File Size: 6.
27 MB File ID: #45038
generate digital signature of Images by khitish
15 Jan 2014 hash of images | Watch this File File Information Description Calculates the Digital Signature of a true-color image, Using the SHA algorithm %function [digest, MSG_PADDED] = image_hash(V_LEN,H_LEN,METH,IMG_FILE) %Generates IMAGE Digest or HASH using algorithms : SHA1, SHA-224, SHA256 %Uses matlab program "hash.m" developed by Kshitish % %H_LEN :: Enter No. of PIXEL Lines in the Image should be GT 0 %V_LEN :: Enter No. of PIXELs per Line in the Image should be GT 0 %METH :: SHA160, SHA224,SHA256,SHA384,SHA512 %IMAGE_FILE :: (only) True-color image file (in single quotes') % % -- Verfied variables (a, b,c,d,e) over 80 rounds against % FIPS-180-2 examaples % -- I dont Guarantee, if threatened by % BIT Resolution/overflow/underflow % % -- Kshitish says GoodBye ... % % end Required Products MATLAB MATLAB release MATLAB 7.14 (R2012a)