Module: CPKIFSignedData
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>

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 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 | ( | b | ) |
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;\
}\
}
| unsigned char nullParams[] = {0x05,0x00} |
1.5.6