Dart API Referencedart:cryptoSHA256

SHA256 abstract class

SHA256 hash function implementation.

abstract class SHA256 implements Hash {
 factory SHA256() => new _SHA256();
}

Implements

Hash

Constructors

factory SHA256() #

factory SHA256() => new _SHA256();

Properties

final int blockSize #

inherited from Hash

Internal block size of the hash in bytes.

This is exposed for use by the HMAC class which needs to know the block size for the Hash it is using.

int get blockSize;

Methods

abstract dynamic add(List<int> data) #

inherited from Hash

Add a list of bytes to the hash computation.

abstract List<int> close() #

inherited from Hash

Finish the hash computation and extract the message digest as a list of bytes.

abstract Hash newInstance() #

inherited from Hash

Returns a new instance of this hash function.