/* Copyright (C) RSA Data Security, Inc. created 1993, 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 "global.h"
#include "bsafe2.h"
#include "bkey.h"
#include "balg.h"
#include "ahchdig.h"
#include "aichdig.h"

B_TypeCheck *AITChooseDigestNullNewHandler PROTO_LIST
  ((B_AlgorithmInfoType *, B_Algorithm *));

B_AlgorithmInfoTypeVTable AITChooseDigestNull_V_TABLE =
  {AITNullAddInfo, AITChooseDigestNullNewHandler,
   B_AlgorithmInfoTypeMakeError};

/* This always uses NULL_PTR for the info.
 */
B_TypeCheck *AITChooseDigestNullNewHandler (infoType, algorithm)
B_AlgorithmInfoType *infoType;
B_Algorithm *algorithm;
{
UNUSED_ARG (algorithm)

  /* Pass in NULL_PTR so that constructor will allocate.
   */
  return ((B_TypeCheck *)AHChooseDigestConstructor2
          ((AHChooseDigest *)NULL_PTR, infoType, NULL_PTR));
}

