Eneboo - Documentación para desarrolladores
Funciones
Referencia del Archivo src/libdigidoc/DigiDocEnc.c
#include <libdigidoc/DigiDocDefs.h>
#include <libdigidoc/DigiDocEnc.h>
#include <libdigidoc/DigiDocEncGen.h>
#include <libdigidoc/DigiDocError.h>
#include <libdigidoc/DigiDocDebug.h>
#include <libdigidoc/DigiDocPKCS11.h>
#include <libdigidoc/DigiDocConvert.h>
#include <libdigidoc/DigiDocCert.h>
#include <libdigidoc/DigiDocMem.h>
#include <openssl/sha.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <zlib.h>
#include <stdio.h>
#include <string.h>

Funciones

int dencEncDataValidateEncMethod (const char *szEncMethod)
int dencValidateEncXmlNs (const char *szXmlNs)
EXP_OPTION int dencEncryptedData_new (DEncEncryptedData **pEncData, const char *szXmlNs, const char *szEncMethod, const char *szId, const char *szType, const char *szMimeType)
EXP_OPTION int dencEncryptedData_free (DEncEncryptedData *pEncData)
EXP_OPTION const char * dencEncryptedData_GetId (DEncEncryptedData *pEncData)
EXP_OPTION const char * dencEncryptedData_GetType (DEncEncryptedData *pEncData)
EXP_OPTION const char * dencEncryptedData_GetMimeType (DEncEncryptedData *pEncData)
EXP_OPTION const char * dencEncryptedData_GetXmlNs (DEncEncryptedData *pEncData)
EXP_OPTION const char * dencEncryptedData_GetEncryptionMethod (DEncEncryptedData *pEncData)
EXP_OPTION const char * dencEncryptedData_GetEncryptionPropertiesId (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptedData_GetEncryptionPropertiesCount (DEncEncryptedData *pEncData)
EXP_OPTION DEncEncryptionPropertydencEncryptedData_GetEncryptionProperty (DEncEncryptedData *pEncData, int nIdx)
EXP_OPTION DEncEncryptionPropertydencEncryptedData_FindEncryptionPropertyByName (DEncEncryptedData *pEncData, const char *name)
EXP_OPTION DEncEncryptionPropertydencEncryptedData_GetLastEncryptionProperty (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptedData_GetEncryptedKeyCount (DEncEncryptedData *pEncData)
EXP_OPTION DEncEncryptedKeydencEncryptedData_GetEncryptedKey (DEncEncryptedData *pEncData, int nIdx)
EXP_OPTION DEncEncryptedKeydencEncryptedData_FindEncryptedKeyByRecipient (DEncEncryptedData *pEncData, const char *recipient)
EXP_OPTION DEncEncryptedKeydencEncryptedData_FindEncryptedKeyByCN (DEncEncryptedData *pEncData, const char *cn)
EXP_OPTION DEncEncryptedKeydencEncryptedData_GetLastEncryptedKey (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptedData_GetEncryptedData (DEncEncryptedData *pEncData, DigiDocMemBuf **ppBuf)
EXP_OPTION int dencEncryptedData_GetEncryptedDataStatus (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptedData_SetId (DEncEncryptedData *pEncData, const char *value)
EXP_OPTION int dencEncryptedData_SetType (DEncEncryptedData *pEncData, const char *value)
EXP_OPTION int dencEncryptedData_SetMimeType (DEncEncryptedData *pEncData, const char *value)
EXP_OPTION int dencEncryptedData_SetXmlNs (DEncEncryptedData *pEncData, const char *value)
EXP_OPTION int dencEncryptedData_SetEncryptionMethod (DEncEncryptedData *pEncData, const char *value)
EXP_OPTION int dencEncryptedData_AppendData (DEncEncryptedData *pEncData, const char *data, int len)
EXP_OPTION int dencEncryptedData_SetEncryptionPropertiesId (DEncEncryptedData *pEncData, const char *value)
EXP_OPTION int dencEncryptedData_DeleteEncryptionProperty (DEncEncryptedData *pEncData, int nIdx)
EXP_OPTION int dencEncryptedData_DeleteEncryptedKey (DEncEncryptedData *pEncData, int nIdx)
EXP_OPTION int dencEncryptedData_SetId_default (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptedData_SetType_default (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptionProperty_new (DEncEncryptedData *pEncData, DEncEncryptionProperty **ppEncProperty, const char *szId, const char *szTarget, const char *szName, const char *szContent)
EXP_OPTION int dencEncryptionProperty_free (DEncEncryptionProperty *pEncProperty)
EXP_OPTION const char * dencEncryptionProperty_GetId (DEncEncryptionProperty *pEncProp)
EXP_OPTION const char * dencEncryptionProperty_GetTarget (DEncEncryptionProperty *pEncProp)
EXP_OPTION const char * dencEncryptionProperty_GetName (DEncEncryptionProperty *pEncProp)
EXP_OPTION const char * dencEncryptionProperty_GetContent (DEncEncryptionProperty *pEncProp)
EXP_OPTION int dencEncryptionProperty_SetId (DEncEncryptionProperty *pEncProp, const char *value)
EXP_OPTION int dencEncryptionProperty_SetTarget (DEncEncryptionProperty *pEncProp, const char *value)
EXP_OPTION int dencEncryptionProperty_SetName (DEncEncryptionProperty *pEncProp, const char *value)
EXP_OPTION int dencEncryptionProperty_SetContent (DEncEncryptionProperty *pEncProp, const char *value)
int dencEncryptedData_initTransportKey (DEncEncryptedData *pEncData)
int dencEncKeyValidateEncMethod (const char *szEncMethod)
int dencEncryptWithCert (X509 *pCert, const char *data, int dLen, char *result, int *resLen)
EXP_OPTION int dencEncryptedKey_new (DEncEncryptedData *pEncData, DEncEncryptedKey **pEncKey, X509 *pCert, const char *szEncMethod, const char *szId, const char *szRecipient, const char *szKeyName, const char *szCarriedKeyName)
EXP_OPTION int dencEncryptedKey_free (DEncEncryptedKey *pEncKey)
EXP_OPTION const char * dencEncryptedKey_GetId (DEncEncryptedKey *pEncKey)
EXP_OPTION const char * dencEncryptedKey_GetRecipient (DEncEncryptedKey *pEncKey)
EXP_OPTION const char * dencEncryptedKey_GetEncryptionMethod (DEncEncryptedKey *pEncKey)
EXP_OPTION const char * dencEncryptedKey_GetKeyName (DEncEncryptedKey *pEncKey)
EXP_OPTION const char * dencEncryptedKey_GetCarriedKeyName (DEncEncryptedKey *pEncKey)
EXP_OPTION X509dencEncryptedKey_GetCertificate (DEncEncryptedKey *pEncKey)
EXP_OPTION int dencEncryptedKey_SetId (DEncEncryptedKey *pEncKey, const char *value)
EXP_OPTION int dencEncryptedKey_SetRecipient (DEncEncryptedKey *pEncKey, const char *value)
EXP_OPTION int dencEncryptedKey_SetEncryptionMethod (DEncEncryptedKey *pEncKey, const char *value)
EXP_OPTION int dencEncryptedKey_SetKeyName (DEncEncryptedKey *pEncKey, const char *value)
EXP_OPTION int dencEncryptedKey_SetCarriedKeyName (DEncEncryptedKey *pEncKey, const char *value)
EXP_OPTION int dencEncryptedKey_SetCertificate (DEncEncryptedKey *pEncKey, X509 *value)
EXP_OPTION int dencEncryptedData_findEncryptedKeyByPKCS11 (DEncEncryptedData *pEncData, DEncEncryptedKey **ppEncKey)
int encryptDecrypt (DigiDocMemBuf *pInData, DigiDocMemBuf *pOutData, DigiDocMemBuf *pKey, int operation, const char *iv)
EXP_OPTION int dencEncryptedData_encryptData (DEncEncryptedData *pEncData, int nCompressOption)
EXP_OPTION int dencEncryptedData_decryptData (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptedData_decrypt (DEncEncryptedData *pEncData, DEncEncryptedKey *pEncKey, const char *pin)
EXP_OPTION int dencEncryptedData_decrypt_withKey (DEncEncryptedData *pEncData, const char *tKey, int keyLen)
EXP_OPTION int dencEncryptedData_compressData (DEncEncryptedData *pEncData, int nCompressOption)
EXP_OPTION int dencEncryptedData_decompressData (DEncEncryptedData *pEncData)
EXP_OPTION int dencEncryptFile (DEncEncryptedData *pEncData, const char *szInputFileName, const char *szOutputFileName, const char *szMimeType)
EXP_OPTION int dencRecvInfo_new (DEncRecvInfo **ppRecvInfo, const char *szId, const char *szRecipient, const char *szKeyName, const char *szCarriedKeyName, const X509 *pCert)
EXP_OPTION int dencRecvInfo_free (DEncRecvInfo *pRecvInfo)
char * removeNewlines (char *data)
EXP_OPTION int dencRecvInfo_store (DEncRecvInfo *pRecvInfo)
EXP_OPTION int dencRecvInfo_delete (DEncRecvInfo *pRecvInfo)
EXP_OPTION int dencRecvInfo_findById (ConfigurationStore *pConfStore, DEncRecvInfo **ppRecvInfo, const char *szId)
EXP_OPTION int dencRecvInfo_findAll (DEncRecvInfoList *pRecvInfoList)
EXP_OPTION int dencRecvInfoList_add (DEncRecvInfoList *pRecvInfoList, DEncRecvInfo *pRecvInfo)
EXP_OPTION int dencRecvInfoList_free (DEncRecvInfoList *pRecvInfoList)
EXP_OPTION int dencRecvInfoList_delete (DEncRecvInfoList *pRecvInfoList, const char *szId)
EXP_OPTION int dencOrigContent_count (DEncEncryptedData *pEncData)
EXP_OPTION int dencOrigContent_add (DEncEncryptedData *pEncData, const char *szOrigContentId, const char *szName, const char *szSize, const char *szMime, const char *szDfId)
EXP_OPTION int dencOrigContent_findByIndex (DEncEncryptedData *pEncData, int origContIdx, char *szName, char *szSize, char *szMime, char *szDfId)
EXP_OPTION int dencOrigContent_isDigiDocInside (DEncEncryptedData *pEncData)
EXP_OPTION int dencOrigContent_registerDigiDoc (DEncEncryptedData *pEncData, SignedDoc *pSigDoc)
EXP_OPTION int dencMetaInfo_SetLibVersion (DEncEncryptedData *pEncData)
EXP_OPTION int dencMetaInfo_SetFormatVersion (DEncEncryptedData *pEncData)
EXP_OPTION int dencMetaInfo_GetLibVersion (DEncEncryptedData *pEncData, char *szLibrary, char *szVersion)
EXP_OPTION int dencMetaInfo_GetFormatVersion (DEncEncryptedData *pEncData, char *szFormat, char *szVersion)
EXP_OPTION int dencMetaInfo_deleteVersionInfo (DEncEncryptedData *pEncData)

Documentación de las funciones

int dencEncDataValidateEncMethod ( const char *  szEncMethod)
int dencEncKeyValidateEncMethod ( const char *  szEncMethod)
EXP_OPTION int dencEncryptedData_AppendData ( DEncEncryptedData pEncData,
const char *  data,
int  len 
)
EXP_OPTION int dencEncryptedData_compressData ( DEncEncryptedData pEncData,
int  nCompressOption 
)
EXP_OPTION int dencEncryptedData_decompressData ( DEncEncryptedData pEncData)
EXP_OPTION int dencEncryptedData_decrypt ( DEncEncryptedData pEncData,
DEncEncryptedKey pEncKey,
const char *  pin 
)
EXP_OPTION int dencEncryptedData_decrypt_withKey ( DEncEncryptedData pEncData,
const char *  tKey,
int  keyLen 
)
EXP_OPTION int dencEncryptedData_decryptData ( DEncEncryptedData pEncData)
EXP_OPTION int dencEncryptedData_DeleteEncryptedKey ( DEncEncryptedData pEncData,
int  nIdx 
)
EXP_OPTION int dencEncryptedData_DeleteEncryptionProperty ( DEncEncryptedData pEncData,
int  nIdx 
)
EXP_OPTION int dencEncryptedData_encryptData ( DEncEncryptedData pEncData,
int  nCompressOption 
)
EXP_OPTION DEncEncryptedKey* dencEncryptedData_FindEncryptedKeyByCN ( DEncEncryptedData pEncData,
const char *  cn 
)
EXP_OPTION int dencEncryptedData_findEncryptedKeyByPKCS11 ( DEncEncryptedData pEncData,
DEncEncryptedKey **  ppEncKey 
)
EXP_OPTION DEncEncryptedKey* dencEncryptedData_FindEncryptedKeyByRecipient ( DEncEncryptedData pEncData,
const char *  recipient 
)
EXP_OPTION DEncEncryptionProperty* dencEncryptedData_FindEncryptionPropertyByName ( DEncEncryptedData pEncData,
const char *  name 
)
EXP_OPTION int dencEncryptedData_free ( DEncEncryptedData pEncData)
EXP_OPTION int dencEncryptedData_GetEncryptedData ( DEncEncryptedData pEncData,
DigiDocMemBuf **  ppBuf 
)
EXP_OPTION int dencEncryptedData_GetEncryptedDataStatus ( DEncEncryptedData pEncData)
EXP_OPTION DEncEncryptedKey* dencEncryptedData_GetEncryptedKey ( DEncEncryptedData pEncData,
int  nIdx 
)
EXP_OPTION int dencEncryptedData_GetEncryptedKeyCount ( DEncEncryptedData pEncData)
EXP_OPTION const char* dencEncryptedData_GetEncryptionMethod ( DEncEncryptedData pEncData)
EXP_OPTION int dencEncryptedData_GetEncryptionPropertiesCount ( DEncEncryptedData pEncData)
EXP_OPTION const char* dencEncryptedData_GetEncryptionPropertiesId ( DEncEncryptedData pEncData)
EXP_OPTION DEncEncryptionProperty* dencEncryptedData_GetEncryptionProperty ( DEncEncryptedData pEncData,
int  nIdx 
)
EXP_OPTION const char* dencEncryptedData_GetId ( DEncEncryptedData pEncData)
EXP_OPTION DEncEncryptedKey* dencEncryptedData_GetLastEncryptedKey ( DEncEncryptedData pEncData)
EXP_OPTION DEncEncryptionProperty* dencEncryptedData_GetLastEncryptionProperty ( DEncEncryptedData pEncData)
EXP_OPTION const char* dencEncryptedData_GetMimeType ( DEncEncryptedData pEncData)
EXP_OPTION const char* dencEncryptedData_GetType ( DEncEncryptedData pEncData)
EXP_OPTION const char* dencEncryptedData_GetXmlNs ( DEncEncryptedData pEncData)
int dencEncryptedData_initTransportKey ( DEncEncryptedData pEncData)
EXP_OPTION int dencEncryptedData_new ( DEncEncryptedData **  pEncData,
const char *  szXmlNs,
const char *  szEncMethod,
const char *  szId,
const char *  szType,
const char *  szMimeType 
)
EXP_OPTION int dencEncryptedData_SetEncryptionMethod ( DEncEncryptedData pEncData,
const char *  value 
)
EXP_OPTION int dencEncryptedData_SetEncryptionPropertiesId ( DEncEncryptedData pEncData,
const char *  value 
)
EXP_OPTION int dencEncryptedData_SetId ( DEncEncryptedData pEncData,
const char *  value 
)
EXP_OPTION int dencEncryptedData_SetId_default ( DEncEncryptedData pEncData)
EXP_OPTION int dencEncryptedData_SetMimeType ( DEncEncryptedData pEncData,
const char *  value 
)
EXP_OPTION int dencEncryptedData_SetType ( DEncEncryptedData pEncData,
const char *  value 
)
EXP_OPTION int dencEncryptedData_SetType_default ( DEncEncryptedData pEncData)
EXP_OPTION int dencEncryptedData_SetXmlNs ( DEncEncryptedData pEncData,
const char *  value 
)
EXP_OPTION int dencEncryptedKey_free ( DEncEncryptedKey pEncKey)
EXP_OPTION const char* dencEncryptedKey_GetCarriedKeyName ( DEncEncryptedKey pEncKey)
EXP_OPTION X509* dencEncryptedKey_GetCertificate ( DEncEncryptedKey pEncKey)
EXP_OPTION const char* dencEncryptedKey_GetEncryptionMethod ( DEncEncryptedKey pEncKey)
EXP_OPTION const char* dencEncryptedKey_GetId ( DEncEncryptedKey pEncKey)
EXP_OPTION const char* dencEncryptedKey_GetKeyName ( DEncEncryptedKey pEncKey)
EXP_OPTION const char* dencEncryptedKey_GetRecipient ( DEncEncryptedKey pEncKey)
EXP_OPTION int dencEncryptedKey_new ( DEncEncryptedData pEncData,
DEncEncryptedKey **  pEncKey,
X509 pCert,
const char *  szEncMethod,
const char *  szId,
const char *  szRecipient,
const char *  szKeyName,
const char *  szCarriedKeyName 
)
EXP_OPTION int dencEncryptedKey_SetCarriedKeyName ( DEncEncryptedKey pEncKey,
const char *  value 
)
EXP_OPTION int dencEncryptedKey_SetCertificate ( DEncEncryptedKey pEncKey,
X509 value 
)
EXP_OPTION int dencEncryptedKey_SetEncryptionMethod ( DEncEncryptedKey pEncKey,
const char *  value 
)
EXP_OPTION int dencEncryptedKey_SetId ( DEncEncryptedKey pEncKey,
const char *  value 
)
EXP_OPTION int dencEncryptedKey_SetKeyName ( DEncEncryptedKey pEncKey,
const char *  value 
)
EXP_OPTION int dencEncryptedKey_SetRecipient ( DEncEncryptedKey pEncKey,
const char *  value 
)
EXP_OPTION int dencEncryptFile ( DEncEncryptedData pEncData,
const char *  szInputFileName,
const char *  szOutputFileName,
const char *  szMimeType 
)
EXP_OPTION int dencEncryptionProperty_free ( DEncEncryptionProperty pEncProperty)
EXP_OPTION const char* dencEncryptionProperty_GetContent ( DEncEncryptionProperty pEncProp)
EXP_OPTION const char* dencEncryptionProperty_GetId ( DEncEncryptionProperty pEncProp)
EXP_OPTION const char* dencEncryptionProperty_GetName ( DEncEncryptionProperty pEncProp)
EXP_OPTION const char* dencEncryptionProperty_GetTarget ( DEncEncryptionProperty pEncProp)
EXP_OPTION int dencEncryptionProperty_new ( DEncEncryptedData pEncData,
DEncEncryptionProperty **  ppEncProperty,
const char *  szId,
const char *  szTarget,
const char *  szName,
const char *  szContent 
)
EXP_OPTION int dencEncryptionProperty_SetContent ( DEncEncryptionProperty pEncProp,
const char *  value 
)
EXP_OPTION int dencEncryptionProperty_SetId ( DEncEncryptionProperty pEncProp,
const char *  value 
)
EXP_OPTION int dencEncryptionProperty_SetName ( DEncEncryptionProperty pEncProp,
const char *  value 
)
EXP_OPTION int dencEncryptionProperty_SetTarget ( DEncEncryptionProperty pEncProp,
const char *  value 
)
int dencEncryptWithCert ( X509 pCert,
const char *  data,
int  dLen,
char *  result,
int resLen 
)
EXP_OPTION int dencMetaInfo_deleteVersionInfo ( DEncEncryptedData pEncData)
EXP_OPTION int dencMetaInfo_GetFormatVersion ( DEncEncryptedData pEncData,
char *  szFormat,
char *  szVersion 
)
EXP_OPTION int dencMetaInfo_GetLibVersion ( DEncEncryptedData pEncData,
char *  szLibrary,
char *  szVersion 
)
EXP_OPTION int dencMetaInfo_SetFormatVersion ( DEncEncryptedData pEncData)
EXP_OPTION int dencMetaInfo_SetLibVersion ( DEncEncryptedData pEncData)
EXP_OPTION int dencOrigContent_add ( DEncEncryptedData pEncData,
const char *  szOrigContentId,
const char *  szName,
const char *  szSize,
const char *  szMime,
const char *  szDfId 
)
EXP_OPTION int dencOrigContent_count ( DEncEncryptedData pEncData)
EXP_OPTION int dencOrigContent_findByIndex ( DEncEncryptedData pEncData,
int  origContIdx,
char *  szName,
char *  szSize,
char *  szMime,
char *  szDfId 
)
EXP_OPTION int dencOrigContent_isDigiDocInside ( DEncEncryptedData pEncData)
EXP_OPTION int dencOrigContent_registerDigiDoc ( DEncEncryptedData pEncData,
SignedDoc pSigDoc 
)
EXP_OPTION int dencRecvInfo_delete ( DEncRecvInfo pRecvInfo)
EXP_OPTION int dencRecvInfo_findAll ( DEncRecvInfoList pRecvInfoList)
EXP_OPTION int dencRecvInfo_findById ( ConfigurationStore pConfStore,
DEncRecvInfo **  ppRecvInfo,
const char *  szId 
)
EXP_OPTION int dencRecvInfo_free ( DEncRecvInfo pRecvInfo)
EXP_OPTION int dencRecvInfo_new ( DEncRecvInfo **  ppRecvInfo,
const char *  szId,
const char *  szRecipient,
const char *  szKeyName,
const char *  szCarriedKeyName,
const X509 pCert 
)
EXP_OPTION int dencRecvInfo_store ( DEncRecvInfo pRecvInfo)
EXP_OPTION int dencRecvInfoList_add ( DEncRecvInfoList pRecvInfoList,
DEncRecvInfo pRecvInfo 
)
EXP_OPTION int dencRecvInfoList_delete ( DEncRecvInfoList pRecvInfoList,
const char *  szId 
)
EXP_OPTION int dencRecvInfoList_free ( DEncRecvInfoList pRecvInfoList)
int dencValidateEncXmlNs ( const char *  szXmlNs)
int encryptDecrypt ( DigiDocMemBuf pInData,
DigiDocMemBuf pOutData,
DigiDocMemBuf pKey,
int  operation,
const char *  iv 
)
char* removeNewlines ( char *  data)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'