Skip to content

wc_port.h

Functions

Name
int wolfCrypt_Init(void )
Used to initialize resources used by wolfCrypt.
int wolfCrypt_Cleanup(void )
Used to clean up resources used by wolfCrypt.

Functions Documentation

function wolfCrypt_Init

int wolfCrypt_Init(
    void 
)

Used to initialize resources used by wolfCrypt.

Parameters:

  • none No parameters.

See: wolfCrypt_Cleanup

Return:

  • 0 upon success.
  • <0 upon failure of init resources.

Example

...
if (wolfCrypt_Init() != 0) {
    WOLFSSL_MSG("Error with wolfCrypt_Init call");
}

function wolfCrypt_Cleanup

int wolfCrypt_Cleanup(
    void 
)

Used to clean up resources used by wolfCrypt.

Parameters:

  • none No parameters.

See: wolfCrypt_Init

Return:

  • 0 upon success.
  • <0 upon failure of cleaning up resources.

Example

...
if (wolfCrypt_Cleanup() != 0) {
    WOLFSSL_MSG("Error with wolfCrypt_Cleanup call");
}

Source code


int wolfCrypt_Init(void);

int wolfCrypt_Cleanup(void);

Updated on 2024-12-06 at 01:17:09 +0000