SHA-3
Single-part SHA3-256 example
#define MESSAGE ((const unsigned char *) "test")
#define MESSAGE_LEN 4
unsigned char out[crypto_hash_sha3256_BYTES];
crypto_hash_sha3256(out, MESSAGE, MESSAGE_LEN);Single-part SHA3-512 example
#define MESSAGE ((const unsigned char *) "test")
#define MESSAGE_LEN 4
unsigned char out[crypto_hash_sha3512_BYTES];
crypto_hash_sha3512(out, MESSAGE, MESSAGE_LEN);Multi-part SHA3-256 example
Usage
SHA3-256
SHA3-512
Notes
Constants
Data types
Last updated