simac.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2005, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module: dcmsign
00019  *
00020  *  Author: Norbert Loxen, Marco Eichelberg
00021  *
00022  *  Purpose:
00023  *    classes: SiMAC
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:04:37 $
00027  *  CVS/RCS Revision: $Revision: 1.5 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef SIMAC_H
00035 #define SIMAC_H
00036 
00037 #include "dcmtk/config/osconfig.h"
00038 #include "dcmtk/dcmsign/sitypes.h"
00039 
00040 #ifdef WITH_OPENSSL
00041 
00045 class SiMAC 
00046 {    
00047 public:
00048 
00050   SiMAC() { }
00051 
00053   virtual ~SiMAC() { }
00054 
00058   virtual OFCondition initialize() = 0;
00059   
00065   virtual OFCondition digest(const unsigned char *data, unsigned long length) = 0;
00066   
00074   virtual OFCondition finalize(unsigned char *result) = 0;
00075 
00079   virtual unsigned long getSize() const = 0;
00080 
00084   virtual E_MACType macType() const = 0;    
00085 
00089   virtual const char *getDefinedTerm() const = 0;
00090 
00091 };
00092 
00093 #endif
00094 #endif
00095 
00096 /*
00097  *  $Log: simac.h,v $
00098  *  Revision 1.5  2005/12/08 16:04:37  meichel
00099  *  Changed include path schema for all DCMTK header files
00100  *
00101  *  Revision 1.4  2003/06/04 14:21:03  meichel
00102  *  Simplified include structure to avoid preprocessor limitation
00103  *    (max 32 #if levels) on MSVC5 with STL.
00104  *
00105  *  Revision 1.3  2001/09/26 14:30:20  meichel
00106  *  Adapted dcmsign to class OFCondition
00107  *
00108  *  Revision 1.2  2001/06/01 15:50:49  meichel
00109  *  Updated copyright header
00110  *
00111  *  Revision 1.1  2000/11/07 16:48:55  meichel
00112  *  Initial release of dcmsign module for DICOM Digital Signatures
00113  *
00114  *
00115  */
00116 


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5