Library sha

To use this library in your code:

import crypto.sha
Secure Hash Algorithm (SHA-224, SHA-256, SHA-384, and SHA-512).
This implementation uses hardware accelerated primitives.

Classes

SHA-224 hash state.

SHA-256 hash state.

SHA-384 hash state.

SHA-512 hash state.

Functions

sha224 data/Data from/int=0 to/int=data.byte-size -> ByteArray
Computes the SHA224 hash of the given data.

sha256 data/Data from/int=0 to/int=data.byte-size -> ByteArray
Computes the SHA256 hash of the given data.

sha384 data/Data from/int=0 to/int=data.byte-size -> ByteArray
Computes the SHA384 hash of the given data.
The data must be a string or byte array.

sha512 data/Data from/int=0 to/int=data.byte-size -> ByteArray
Computes the SHA512 hash of the given data.
The data must be a string or byte array.