dcmsign/include/dcmtk/dcmsign/simac.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *
00014  *  Module: dcmsign
00015  *
00016  *  Author: Norbert Loxen, Marco Eichelberg
00017  *
00018  *  Purpose:
00019  *    classes: SiMAC
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:17:25 $
00023  *  CVS/RCS Revision: $Revision: 1.6 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef SIMAC_H
00031 #define SIMAC_H
00032 
00033 #include "dcmtk/config/osconfig.h"
00034 #include "dcmtk/dcmsign/sitypes.h"
00035 
00036 #ifdef WITH_OPENSSL
00037 
00041 class SiMAC 
00042 {    
00043 public:
00044 
00046   SiMAC() { }
00047 
00049   virtual ~SiMAC() { }
00050 
00054   virtual OFCondition initialize() = 0;
00055   
00061   virtual OFCondition digest(const unsigned char *data, unsigned long length) = 0;
00062   
00070   virtual OFCondition finalize(unsigned char *result) = 0;
00071 
00075   virtual unsigned long getSize() const = 0;
00076 
00080   virtual E_MACType macType() const = 0;    
00081 
00085   virtual const char *getDefinedTerm() const = 0;
00086 
00087 };
00088 
00089 #endif
00090 #endif
00091 
00092 /*
00093  *  $Log: simac.h,v $
00094  *  Revision 1.6  2010-10-14 13:17:25  joergr
00095  *  Updated copyright header. Added reference to COPYRIGHT file.
00096  *
00097  *  Revision 1.5  2005-12-08 16:04:37  meichel
00098  *  Changed include path schema for all DCMTK header files
00099  *
00100  *  Revision 1.4  2003/06/04 14:21:03  meichel
00101  *  Simplified include structure to avoid preprocessor limitation
00102  *    (max 32 #if levels) on MSVC5 with STL.
00103  *
00104  *  Revision 1.3  2001/09/26 14:30:20  meichel
00105  *  Adapted dcmsign to class OFCondition
00106  *
00107  *  Revision 1.2  2001/06/01 15:50:49  meichel
00108  *  Updated copyright header
00109  *
00110  *  Revision 1.1  2000/11/07 16:48:55  meichel
00111  *  Initial release of dcmsign module for DICOM Digital Signatures
00112  *
00113  *
00114  */
00115 


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1