# CRYPTO_SetAllocator

## Syntax

      #include <nitro/crypto.h>

      void CRYPTO_SetAllocator(
      void* (*alloc) (u32),
      void  (*free) (void*)
      );

## Arguments

`alloc` | Pointer to the memory allocation function.
`free` | Pointer to the memory release function.

## Return Values

None.

## Description

Sets the dynamic memory management functions for the CRYPTO library.

This function was created to maintain compatibility with SDKs for previous models. You should use `CRYPTO_SetMemAllocator()`.
If you have a need to run this on NITRO, link and use the same function of the same name in the Nitro-Crypto package.

## See Also

`CRYPTO_SetMemAllocator`

## Revision History

2008/03/27 Initial version.

CONFIDENTIAL