1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<!--========================================================================== 3 Copyright 2008 Nintendo. All rights reserved. 4 5 These coded instructions, statements, and computer programs contain 6 proprietary information of Nintendo of America Inc. and/or Nintendo 7 Company Ltd., and are protected by Federal copyright law. They may 8 not be disclosed to third parties or copied or duplicated in any form, 9 in whole or in part, without the prior written consent of Nintendo. 10 ==========================================================================--> 11<HTML> 12<HEAD> 13 <META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 14 <META http-equiv="Content-Style-Type" content="text/css"> 15 <TITLE>CRYPTO_SetAllocator</TITLE> 16 <LINK rel="stylesheet" href="../../css/nitro.css"> 17 <BASE target="main"> 18</HEAD> 19<BODY> 20<H1>CRYPTO_SetAllocator <IMG src="../../image/NTR.gif" width="23" height="12" border="0" align="middle"><IMG src="../../image/TWL.gif" width="23" height="12" border="0" align="middle"></H1> 21 22<H2>Syntax</H2> 23<DL> 24 <DD> 25 <PRE><CODE> 26#include <nitro/crypto.h> 27 28void CRYPTO_SetAllocator( 29void* (*alloc) (u32), 30void (*free) (void*) 31); 32 </CODE></PRE> 33 </DD> 34</DL> 35 36<H2>Arguments</H2> 37<TABLE border="1"> 38 <TBODY> 39 <TR> 40 <TD width="25%"><EM><STRONG><CODE>alloc</CODE></STRONG></EM></TD> 41 <TD width="75%">Pointer to the memory allocation function.</TD> 42 </TR> 43 <TR> 44 <TD><EM><STRONG><CODE>free</CODE></STRONG></EM></TD> 45 <TD>Pointer to the memory release function.</TD> 46 </TR> 47 </TBODY> 48</TABLE> 49 50<H2>Return Values</H2> 51<P> 52 None. 53</P> 54 55<H2>Description</H2> 56<P> 57 Sets the dynamic memory management functions for the CRYPTO library.<BR> 58</P> 59 60<P> 61 This function was created to maintain compatibility with SDKs for previous models. You should use <code><A href="CRYPTO_SetMemAllocator.html">CRYPTO_SetMemAllocator()</A></code>.<BR> 62 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. 63</P> 64 65<H2>See Also</H2> 66<P> 67 <CODE> 68 <A href="CRYPTO_SetMemAllocator.html">CRYPTO_SetMemAllocator</A> 69 </CODE> 70</P> 71 72<H2>Revision History</H2> 73<P> 74 2008/03/27 Initial version. 75</P> 76 77<hr><p>CONFIDENTIAL</p></body> 78</HTML> 79