Eneboo - Documentación para desarrolladores
Funciones
Referencia del Archivo src/libdigidoc/DigiDocVerify.c
#include <libdigidoc/DigiDocVerify.h>
#include <libdigidoc/DigiDocError.h>
#include <libdigidoc/DigiDocLib.h>
#include <libdigidoc/DigiDocDebug.h>
#include <libdigidoc/DigiDocConvert.h>
#include <libdigidoc/DigiDocCert.h>
#include <libdigidoc/DigiDocGen.h>
#include <openssl/sha.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/ocsp.h>
#include <openssl/pkcs12.h>
#include <openssl/rand.h>

Funciones

EXP_OPTION int verifyFileSignature (const char *szFileName, int nDigestType, byte *pSigBuf, int nSigLen, const char *certfile)
EXP_OPTION int verifySignature (const char *szData, unsigned long dataLen, int nDigestType, byte *pSigBuf, int nSigLen, X509 *cert)
EXP_OPTION int verifyEstIDSignature (const byte *digest, int digestLen, int nDigestType, byte *pSigBuf, int nSigLen, X509 *cert)
EXP_OPTION int compareByteArrays (const byte *dig1, int len1, const byte *dig2, int len2)
EXP_OPTION int verifySigDocDigest (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, const DocInfo *pDocInfo, const char *szFileName, const char *szDataFile)
EXP_OPTION int verifySigDocMimeDigest (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, const DocInfo *pDocInfo, const char *szFileName)
EXP_OPTION int verifySigDocSigPropDigest (const SignatureInfo *pSigInfo)
EXP_OPTION int verifySigCert (const SignatureInfo *pSigInfo)
EXP_OPTION int verifySignatureInfo (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, const char *signerCA, const char *szDataFile, int bUseCA, FilePath *pPaths, int nPaths)
EXP_OPTION int verifySigDoc (const SignedDoc *pSigDoc, const char *signerCA, const char **caFiles, const char *caPath, const char *notCert, const char *szDataFile, int bUseCA, FilePath *pPaths, int nPaths)
EXP_OPTION int verifyNotCert (const SignatureInfo *pSigInfo, const NotaryInfo *pNotInfo)
X509_ALGORsetCIDAlgorithm (const EVP_MD *type)
X509_ALGORsetSignAlgorithm (const EVP_MD *type)
int notary2ocspBasResp (const SignedDoc *pSigDoc, const NotaryInfo *pNotInfo, X509 *notCert, OCSP_BASICRESP **pBasResp)
EXP_OPTION int verifyNotaryInfo (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, const NotaryInfo *pNotInfo, const char **caFiles, const char *CApath, const char *notCertFile)
int setup_verifyCERT (X509_STORE **newX509_STORE, const char *CApath, const X509 **certs)
EXP_OPTION int verifyNotaryInfoCERT (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, const NotaryInfo *pNotInfo, const X509 **caCerts, const char *CApath, const X509 *notCert)
EXP_OPTION int verifyNotaryDigest (const SignedDoc *pSigDoc, const NotaryInfo *pNotInfo)
EXP_OPTION int verifySigDocCERT (const SignedDoc *pSigDoc, const void *signerCA, const X509 **caCerts, const char *caPath, const X509 *notCert, const char *szDataFile, int bUseCA, FilePath *pPaths, int nPaths)
EXP_OPTION int verifySignatureInfoCERT (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, const void *signerCACert, const char *szDataFile, int bUseCA, FilePath *pPaths, int nPaths)
EXP_OPTION int findDetatchedDataFiles (SignedDoc *pSigDoc, FilePath **pPaths, int *nPaths)
EXP_OPTION void FilePaths_free (FilePath *pPaths, int nPaths)
int checkAttrs (const char *data, int nAttrs, const char **attNames, const char **attValues)
char * findString (char *mainBuf, char *search)
int readTagContents (char **data, const char *fileName, const char *tagName, int nAttrs, const char **attNames, const char **attValues, int withTags)

Documentación de las funciones

int checkAttrs ( const char *  data,
int  nAttrs,
const char **  attNames,
const char **  attValues 
)
EXP_OPTION int compareByteArrays ( const byte dig1,
int  len1,
const byte dig2,
int  len2 
)
EXP_OPTION void FilePaths_free ( FilePath pPaths,
int  nPaths 
)
EXP_OPTION int findDetatchedDataFiles ( SignedDoc pSigDoc,
FilePath **  pPaths,
int nPaths 
)
char* findString ( char *  mainBuf,
char *  search 
)
int notary2ocspBasResp ( const SignedDoc pSigDoc,
const NotaryInfo pNotInfo,
X509 notCert,
OCSP_BASICRESP **  pBasResp 
)
int readTagContents ( char **  data,
const char *  fileName,
const char *  tagName,
int  nAttrs,
const char **  attNames,
const char **  attValues,
int  withTags 
)
X509_ALGOR* setCIDAlgorithm ( const EVP_MD type)
X509_ALGOR* setSignAlgorithm ( const EVP_MD type)
int setup_verifyCERT ( X509_STORE **  newX509_STORE,
const char *  CApath,
const X509 **  certs 
)
EXP_OPTION int verifyEstIDSignature ( const byte digest,
int  digestLen,
int  nDigestType,
byte pSigBuf,
int  nSigLen,
X509 cert 
)
EXP_OPTION int verifyFileSignature ( const char *  szFileName,
int  nDigestType,
byte pSigBuf,
int  nSigLen,
const char *  certfile 
)
EXP_OPTION int verifyNotaryDigest ( const SignedDoc pSigDoc,
const NotaryInfo pNotInfo 
)
EXP_OPTION int verifyNotaryInfo ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
const NotaryInfo pNotInfo,
const char **  caFiles,
const char *  CApath,
const char *  notCertFile 
)
EXP_OPTION int verifyNotaryInfoCERT ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
const NotaryInfo pNotInfo,
const X509 **  caCerts,
const char *  CApath,
const X509 notCert 
)
EXP_OPTION int verifyNotCert ( const SignatureInfo pSigInfo,
const NotaryInfo pNotInfo 
)
EXP_OPTION int verifySigCert ( const SignatureInfo pSigInfo)
EXP_OPTION int verifySigDoc ( const SignedDoc pSigDoc,
const char *  signerCA,
const char **  caFiles,
const char *  caPath,
const char *  notCert,
const char *  szDataFile,
int  bUseCA,
FilePath pPaths,
int  nPaths 
)
EXP_OPTION int verifySigDocCERT ( const SignedDoc pSigDoc,
const void *  signerCA,
const X509 **  caCerts,
const char *  caPath,
const X509 notCert,
const char *  szDataFile,
int  bUseCA,
FilePath pPaths,
int  nPaths 
)
EXP_OPTION int verifySigDocDigest ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
const DocInfo pDocInfo,
const char *  szFileName,
const char *  szDataFile 
)
EXP_OPTION int verifySigDocMimeDigest ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
const DocInfo pDocInfo,
const char *  szFileName 
)
EXP_OPTION int verifySigDocSigPropDigest ( const SignatureInfo pSigInfo)
EXP_OPTION int verifySignature ( const char *  szData,
unsigned long  dataLen,
int  nDigestType,
byte pSigBuf,
int  nSigLen,
X509 cert 
)
EXP_OPTION int verifySignatureInfo ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
const char *  signerCA,
const char *  szDataFile,
int  bUseCA,
FilePath pPaths,
int  nPaths 
)
EXP_OPTION int verifySignatureInfoCERT ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
const void *  signerCACert,
const char *  szDataFile,
int  bUseCA,
FilePath pPaths,
int  nPaths 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'