SignedData.cpp File Reference


Detailed Description

Subsystem: Cryptographic Message Syntax (PKIFCMS)

Module: CPKIFSignedData

Id
SignedData.cpp 11927 2010-10-21 19:09:46Z agalustyan

Definition in file SignedData.cpp.

#include "SignedData.h"
#include "private/PrivatePKIFCMSUtils.h"
#include "Certificate.h"
#include "Buffer.h"
#include "OID.h"
#include "Attribute.h"
#include "EncapsulatedContentInfo.h"
#include "ASN1Helper.h"
#include "ParallelHash.h"
#include "PKIFCMSMessageMemoryHelper.h"
#include "CRL.h"
#include "SignerInfo.h"
#include "AlgorithmIdentifier.h"
#include "GottaMatch.h"
#include "Name.h"
#include "SubjectKeyIdentifier.h"
#include "IssuerNameAndSerialNumberBasedSearch.h"
#include "KeyIDBasedSearch.h"
#include "PKIFFuncStorage.h"
#include "ContentTypeAttribute.h"
#include "PKIFAlgorithm.h"
#include "PKIFBase64.h"
#include "BasicConstraints.h"
#include "IPKIFCryptoRawOperations.h"
#include "IPKIFCertSearch.h"
#include "IPKIFCertRepositoryUpdate.h"
#include "IPKIFPathValidate.h"
#include "IPKIFCRLRepositoryUpdate.h"
#include "IPKIFPathBuild.h"
#include "IPKIFCryptoMisc.h"
#include "IPKIFCryptoKeyIDOperations.h"
#include "PKIFCAPIErrors.h"
#include "PKIFNSSErrors.h"
#include "PKIFCryptoPPErrors.h"
#include <iterator>

Include dependency graph for SignedData.cpp:

Go to the source code of this file.

Defines

#define NEW_VERIFY_FUNC   1
#define SET_BEST
#define LOOK_FOR_MORE()
#define RETURN(b)

Variables

unsigned char nullParams [] = {0x05,0x00}


Define Documentation

 
#define LOOK_FOR_MORE (  ) 

Value:

{ \
    if(lookBeyondTheBag)\
    {\
        lookBeyondTheBag = false;\
        GetCandidateSignersCerts(si, candidateSignerCerts);\
    }\
}

#define NEW_VERIFY_FUNC   1

Definition at line 142 of file SignedData.cpp.

#define RETURN (  ) 

Value:

{ \
    bool finalAnswer = b;\
    if(finalAnswer && bRetrySigWithParams)\
    {\
        CPKIFAlgorithmIdentifierPtr wp = m_valResults->GetWorkingParams();\
        key.SetWorkingParameters(wp);\
        if(!cRaw->Verify(key, hi->m_hashResult, CPKIFAlgorithm::GetAlg(hi->m_hashAlg)->DigestSize(), (unsigned char*)si->signature.data, si->signature.numocts, hi->m_hashAlg))\
        {\
            if(deleteHI)\
            {\
                delete hi;\
            }\
            bestStatus = CMS_SIGNATURE_INVALID;\
            finalAnswer = false;\
        }\
    }\
    if(deleteHI)\
    {\
        delete hi;\
    }\
    status = bestStatus;\
    m_path = bestPath;\
    return finalAnswer;\
}

#define SET_BEST

Value:

{\
    if(curStatus > bestStatus || bestStatus == NOT_VERIFIED) \
    {\
        bestCert = candidateSignerCerts[currCertPos];\
        bestPath = m_path;\
        bestStatus = curStatus;\
    }\
}


Variable Documentation

unsigned char nullParams[] = {0x05,0x00}

Definition at line 52 of file SignedData.cpp.

Referenced by GetSignerInfo().


Generated on Mon Nov 15 11:19:26 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6