# SVC_InitSignHeap

## Syntax

      #include <twl/os/common/systemCall.h>

      void SVC_InitSignHeap( SVCSignHeapContext* acmemory_pool,
                               void* heap,
                               unsigned int length );

      typedef struct
      {
         u32* head;
         u32* tail;
         u32 size;
      }
      SVCSignHeapContext;

## Arguments

acmemory_pool | Information about the heap to configure. (Pointer to a `SVCSignHeapContext` structure)
heap | Pointer to the area to use as the heap.
length | Size of the area to use as the heap.

## Return Values

None.

## Description

Sets the heap to use with the signature-related functions of the SVC library.

The areas specified in heap and length are set as the heap to use with the signature-related functions of the SVC library. Data in the heap is stored in the `SVCSignHeapContext` structure indicated by acmemory_pool. Be sure to allocate an area in memory the size of the `SVCSignHeapContext` structure in advance, then specify that area in acmemory_pool.

Be sure to specify areas 4 KB or greater in size for heap and length. There is no need for them to be aligned.

## See Also

`SVC_DecryptRSA, SVC_DecryptSign, SVC_DecryptSignDER
`

## Revision History

2007/10/19 Initial version.

CONFIDENTIAL