ammd5.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 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 1990, 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 "md5.h"
#include "amdigest.h"
#include "port_after.h"
static int amMD5Update PROTO_LIST
((POINTER, const unsigned char *, unsigned int, A_SURRENDER_CTX*));
static int amMD5Final PROTO_LIST
((POINTER, unsigned char *, unsigned int *, unsigned int, A_SURRENDER_CTX*));
static A_DIGEST_ALGA A_MD5_DIGEST = {
};
extern struct B_AlgorithmInfoType AIT_MD5;
/* Returns 0.
*/
unsigned int *contextLen;
{
*contextLen = sizeof (A_MD5_CTX);
return (0);
}
/* Returns 0.
*/
{
return (0);
}
/* Returns 0.
*/
const unsigned char *input;
unsigned int inputLen;
{
return (0);
}
/* Returns 0, AE_OUTPUT_LEN if maxDigestLen is too small.
*/
static int amMD5Final
unsigned char *digest;
unsigned int *digestLen;
unsigned int maxDigestLen;
{
return (AE_OUTPUT_LEN);
return (0);
}
unsigned int *outputLen;
{
return(0);
}