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)

Decide whether the SHA message can be sent once or requires multiple calls to send.

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)

Decide whether the SHA message can be sent once or requires multiple calls to send.

Parameters
[in]sha_mode


  • 1 – For SHA1

  • 2 – For SHA256

  • 3 – For SHA384

  • 4 – For SHA512

  • 5– For SHA224

[in]msg

- Pointer to message

[in]msg_length

- Total message length

[out]digest

- Output parameter to hold computed digest from SHA

This is a blocking API. Returns

  • The following values are returned:

    • 0 - Success

    • Non-Zero Value - Failure

Note

  • Refer Error Codes section for above error codes error-codes.


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