/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */
#include <sc.h>
#include <types.h>

#ifndef __AES_H__
#define __AES_H__

int AES_ExpandKey(u32 *key);
int AES_ProgramIv(u32 ivAddr, u32 *iv);
int AES_SetupEncryptDecrypt(u32 sourceAddr, u32 destAddr);
int AES_StartEncrypt(int numBlocks, int chain, int intrMask);
int AES_EndEncryptDecrypt(int numBlocks);
int AES_StartDecrypt(int numBlocks, int chain, int intrMask);
int AES_StartDma(int numBlocks, int intrMask);
int AES_HwEncrypt(unsigned int sourceAddr, unsigned int destAddr, 
                  int numBlocks, int chain, int intrMask);
int AES_HwDecrypt(unsigned int destAddr, unsigned int sourceAddr, 
                  int numBlocks, int chain, int intrMask);
int AES_HwDma(unsigned int destAddr, unsigned int sourceAddr, 
              int numBlocks, int intrMask);

#endif /* aes.h */
