Digest
Calculate Data Digest Calculates the specific digest of a byte array. This function requires inputs as follows:
Data1 : Byte array, data for which digest will be calculated.Message Digest2 : Enumeration, type of digest algorithm used in digest calculation.

If successful, returns a byte array containing the calculated digest 3.