/*-----------------------------------------------------------------------------------
!
!                              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        : pkcs1.c
  DESCRIPTION : PKCS#1 v1.5 Verify
  Revision    : $Rev: 4 $
  Author      : $Author: shirait $
  Date        : $Date: 2015-09-09 15:19:58 +0900 (水, 09 9 2015) $
-----------------------------------------------------------------------------------*/
#ifndef ___PKCS1_H_INCLUDED___
#define ___PKCS1_H_INCLUDED___

#ifdef __cplusplus
extern "C" {
#endif

int PKCS1_Decode(const unsigned char** ppMsg, size_t* pMsgLen, const void *pEM, size_t emLen);
int PKCS1_Verify(const void* pPlainSig, size_t sigLen, const void* pHash, size_t hashLen);

#ifdef __cplusplus
}
#endif

#endif // ___PKCS1v15_H_INCLUDED___
