Functions#

This section provides a reference to the SHA Crypto API functions.

Functions#

sl_status_t
sl_si91x_sha(uint8_t sha_mode, uint8_t *msg, uint16_t msg_length, uint8_t *digest)

To provide the SHA output for the given configuration.

Function Documentation#

sl_si91x_sha#

sl_status_t sl_si91x_sha (uint8_t sha_mode, uint8_t * msg, uint16_t msg_length, uint8_t * digest)

To provide the SHA output for the given configuration.

Parameters
[in]sha_mode

1 – For SHA1 2 – For SHA256 3 – For SHA384 4 – For SHA512 5 – For SHA224

[in]msg

Pointer to the message.

[in]msg_length

Total message length.

[out]digest

Buffer to store the output.

This is a blocking API. Returns


Definition at line 90 of file components/device/silabs/si91x/wireless/crypto/sha/inc/sl_si91x_sha.h