Eneboo - Documentación para desarrolladores
src/libdigidoc/DigiDocEncGen.h
Ir a la documentación de este archivo.
00001 #ifndef __DIGIDOC_ENC_GEN_H__
00002 #define __DIGIDOC_ENC_GEN_H__
00003 //==================================================
00004 // FILE:        DigiDocEncGen.h
00005 // PROJECT:     Digi Doc Encryption 
00006 // DESCRIPTION: DigiDocEnc XML generation
00007 // AUTHOR:  Veiko Sinivee, S|E|B IT Partner Estonia
00008 //==================================================
00009 // Copyright (C) AS Sertifitseerimiskeskus
00010 // This library is free software; you can redistribute it and/or
00011 // modify it under the terms of the GNU Lesser General Public
00012 // License as published by the Free Software Foundation; either
00013 // version 2.1 of the License, or (at your option) any later version.
00014 // This library is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 // Lesser General Public License for more details.
00018 // GNU Lesser General Public Licence is available at
00019 // http://www.gnu.org/copyleft/lesser.html
00020 //==========< HISTORY >=============================
00021 //      11.10.2004      Veiko Sinivee
00022 //                      Creation
00023 //==================================================
00024 
00025 
00026 #include <libdigidoc/DigiDocDefs.h>
00027 #include <libdigidoc/DigiDocEnc.h>
00028 
00029 #ifdef  __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033   //--------------------------------------------------
00034   // Generates XML for <EncryptedData> element
00035   // pEncData - encrypted data object [REQUIRED]
00036   // pBuf - memory buffer for storing xml [REQUIRED]
00037   // returns error code or ERR_OK
00038   //--------------------------------------------------
00039   int dencGenEncryptedData_toXML(DEncEncryptedData* pEncData, DigiDocMemBuf* pBuf);
00040 
00041   //--------------------------------------------------
00042   // Writes encrypted data to a file
00043   // pEncData - encrypted data object [REQUIRED]
00044   // szFileName - name of the file to write the data [REQUIRED]
00045   // returns error code or ERR_OK
00046   //--------------------------------------------------
00047   EXP_OPTION int dencGenEncryptedData_writeToFile(DEncEncryptedData* pEncData, const char* szFileName);
00048 
00049   //--------------------------------------------------
00050   // Generates the header of XML for <EncryptedData> element
00051   // This contains everything upto the start of base64 encoded cipher data
00052   // pEncData - encrypted data object [REQUIRED]
00053   // pBuf - memory buffer for storing xml [REQUIRED]
00054   // returns error code or ERR_OK
00055   //--------------------------------------------------
00056   int dencGenEncryptedData_header_toXML(DEncEncryptedData* pEncData, DigiDocMemBuf* pBuf);
00057 
00058   //--------------------------------------------------
00059   // Generates the trailer of XML for <EncryptedData> element
00060   // These are all the XML constructs following the 
00061   // base64 encoded cipher data.
00062   // pEncData - encrypted data object [REQUIRED]
00063   // pBuf - memory buffer for storing xml [REQUIRED]
00064   // returns error code or ERR_OK
00065   //--------------------------------------------------
00066   int dencGenEncryptedData_trailer_toXML(DEncEncryptedData* pEncData, DigiDocMemBuf* pBuf);
00067 
00068 #ifdef  __cplusplus
00069 }
00070 #endif
00071 
00072 
00073 #endif // __DIGIDOC_ENC_GEN_H__
00074 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'