IMemoryBlockHash interface
Contents
- Introduction to the Library
- Basic support package (com.kryptel.bslx)
- Kryptel API Commons package (com.kryptel)
- Cipher package (com.kryptel.cipher)
- Compressor package (com.kryptel.compressor)
- Exceptions package (com.kryptel.exceptions)
- Hash function package (com.kryptel.hash_function)
- MAC function package (com.kryptel.mac)
- Key-related functions (com.kryptel.key)
- Silver Key engine (com.kryptel.silver_key)
- Kryptel encrypted storage (com.kryptel.storage)
Declaration
package com.kryptel.hash_function; public interface IMemoryBlockHash { byte[] HashBlock(final byte[] src, int start, int len) throws Exception; byte[] HashUtf8String(String str) throws Exception; byte[] HashWideString(String str) throws Exception; }
Description
This interface is used for hashing single block of data residing in memory.
HashBlock
byte[] HashBlock(final byte[] src, int start, int len) throws Exception;
Hashes len bytes of data in src at position start and returns the computed hash value as a byte array.
HashUtf8String
byte[] HashUtf8String(String str) throws Exception;
Converts the argument string to UTF-8, hashes it, and returns the computed digest.
HashWideString
byte[] HashWideString(String str) throws Exception;
Converts the argument string to UTF-16, hashes it, and returns the computed digest.