/*-----------------------------------------------------------------------------------
!
!                              COPYRIGHT 2015 BY
!                            MegaChips Corporation
!
!------------------------------------------------------------------------------------
! These coded instructions, statements, and computer programs include
! intellectual property and know-how belonging to MegaChips
! Corporaiton ("MCC") and its partner companies.
! Therefore, do not use these specifications for any purpose other than
! the purpose
! expressly agreed to by MCCs customer and MCC.  Also, do not duplicate,
! copy,
! or reproduce these specifications, nor reveal these specifications to
! any third party
! without MCCs prior written consent.
!
*/


/*-----------------------------------------------------------------------------------
  FILE        : rsa.h
  DESCRIPTION : ras.c header
  Revision    : $Rev: 4 $
  Author      : $Author: shirait $
  Date        : $Date: 2015-09-09 15:19:58 +0900 (水, 09 9 2015) $
-----------------------------------------------------------------------------------*/
#ifndef ___RSA_H_INCLUDED___
#define ___RSA_H_INCLUDED___

#include <stdint.h>

#define RSA_SIZE (256)
#define RSA_NSIZE (256)
#define RSA_E_MAXSIZE (4)

#define RSA_EncryptStart RSA_EncryptStartP2P


void RSA_Init(volatile const uint32_t* pSKeyd);
volatile const uint32_t* RSA_EncDecWait(void);
void RSA_EncryptStartP2P(volatile const void* pTxt, volatile const void* pN, volatile const void* pE);



#endif // ___RSA_H_INCLUDED___
