Skip to main content

SecurityLocalGenerateSHA256

Valid for: CANoe DE • CANoe4SW DE Note
Replaces LocalSecurityGenerateSHA256.

Function Syntax

Description

Generates a SHA256 hash for the given data and using the given key.

Parameters

  • byte data[]
    The data to encrypt.
  • dword dataLength
    The length of the data to encrypt.
  • byte sha256[] [Out]
    The generated SHA256 hash.
  • dword sha256Length [In/Out]
    The length of the generated SHA256 hash. (32 bytes)

Return Values

  • 1
    Success
    A Value of 1 means that the action was successful.
  • <= 0
    Error
    A value less than or equal to 0 means error.

Example