amcrte.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (C) RSA Data Security, Inc. created 1994, 1996. This is an
unpublished work protected as such under copyright law. This work
contains proprietary, confidential, and trade secret information of
RSA Data Security, Inc. Use, disclosure or reproduction without the
express written authorization of RSA Data Security, Inc. is
prohibited.
*/
#include "port_before.h"
#include "global.h"
#include "algae.h"
#include "bsafe2.h"
#include "balgmeth.h"
#include "crt2.h"
#include "amencdec.h"
#include "port_after.h"
static int RSA_CRT2Init PROTO_LIST
static int RSA_CRT2Update PROTO_LIST
((POINTER, unsigned char *, unsigned int *, unsigned int,
const unsigned char *, unsigned int, A_SURRENDER_CTX *));
static int RSA_CRT2Final PROTO_LIST
((POINTER, unsigned char *, unsigned int *, unsigned int,
A_SURRENDER_CTX *));
static int RSA_CRT2GetMaxOutputLen PROTO_LIST
((POINTER, unsigned int *, unsigned int));
extern struct B_AlgorithmInfoType AIT_RSAPrivate;
extern struct B_KeyInfoType KIT_RSA_CRT;
static A_ENCRYPT_DECRYPT_ALGA A_RSA_CRT2_CRYPT = {
};
unsigned int *contextLen;
{
if (A_IntegerBits
/* Key size is too big to handle. */
return (AE_MODULUS_LEN);
*contextLen = sizeof (A_RSA_CRT2_CTX);
return (0);
}
{
}
static int RSA_CRT2Update
unsigned char *output;
unsigned int *outputLen;
unsigned int maxOutputLen;
const unsigned char *input;
unsigned int inputLen;
{
return (A_RSA_CRT2Update
}
static int RSA_CRT2Final
unsigned char *output;
unsigned int *outputLen;
unsigned int maxOutputLen;
{
*outputLen = 0;
}
unsigned int *outputLen;
unsigned int inputLen;
{
return (0);
}
unsigned int *blockLen;
{
return(0);
}