SHA256 package object

The SHA256 package provides the cryptographic hash function to encode any data with the SHA256 algorithm.

Initialization

In order to make use of sha256 package, two simple steps are required: the first one is to include the package header file on top of your code, then perform an explicit package inside duda_main() function.

Example:

/* Include package header */
#include "packages/sha256/sha256.h"

int duda_main()
{
    ...
    duda_load_package(sha256, "sha256");
    ...
    return 0;
}

Once the package is loaded, you can use any methods from your callbacks in the following way:

sha256->method(...)

Methods