Mixe for Privacy and Anonymity in the Internet
|
#include <CAMultiSignature.hpp>
Public Member Functions | |
CAMultiSignature () | |
virtual | ~CAMultiSignature () |
SINT32 | signXML (DOMNode *a_node, bool appendCerts) |
SINT32 | signXML (UINT8 *in, UINT32 inlen, UINT8 *out, UINT32 *outlen, bool appendCerts) |
SINT32 | sign (UINT8 *in, UINT32 inlen, UINT8 *sig, UINT32 *siglen) |
Method for producing a single Signature for Key Exchange. More... | |
SINT32 | addSignature (CASignature *a_signature, CACertStore *a_certs, UINT8 *a_ski, UINT32 a_skiLen) |
UINT32 | getSignatureCount () |
SINT32 | getXORofSKIs (UINT8 *out, UINT32 outlen) |
SINT32 | findSKI (const UINT8 *a_strSKI) |
Static Public Member Functions | |
static SINT32 | verifyXML (const UINT8 *const in, UINT32 inlen, CACertificate *a_cert) |
static SINT32 | verifyXML (DOMNode *a_node, CACertificate *a_cert) |
Private Member Functions | |
SINT32 | getSKI (UINT8 *in, UINT32 inlen, const UINT8 *a_ski) |
Private Attributes | |
SIGNATURE * | m_signatures |
UINT32 | m_sigCount |
UINT8 * | m_xoredID |
Definition at line 50 of file CAMultiSignature.hpp.
CAMultiSignature::CAMultiSignature | ( | ) |
Definition at line 42 of file CAMultiSignature.cpp.
References m_sigCount, m_signatures, and m_xoredID.
|
virtual |
Definition at line 50 of file CAMultiSignature.cpp.
References m_signatures, m_xoredID, __t_signature::next, __t_signature::pCerts, __t_signature::pSig, and __t_signature::pSKI.
SINT32 CAMultiSignature::addSignature | ( | CASignature * | a_signature, |
CACertStore * | a_certs, | ||
UINT8 * | a_ski, | ||
UINT32 | a_skiLen | ||
) |
Definition at line 426 of file CAMultiSignature.cpp.
References E_SUCCESS, E_UNKNOWN, m_sigCount, m_signatures, m_xoredID, __t_signature::next, __t_signature::pCerts, __t_signature::pSig, and __t_signature::pSKI.
Referenced by CACmdLnOptions::setOwnCertificate().
Definition at line 470 of file CAMultiSignature.cpp.
References E_NOT_FOUND, E_SUCCESS, E_UNKNOWN, getSKI(), m_signatures, m_xoredID, __t_signature::next, and __t_signature::pSKI.
Referenced by CACmdLnOptions::setOwnCertificate(), and CACmdLnOptions::setPriceCertificate().
|
inline |
Definition at line 62 of file CAMultiSignature.hpp.
References m_sigCount.
Referenced by CACmdLnOptions::setOwnCertificate().
Definition at line 450 of file CAMultiSignature.cpp.
References E_SUCCESS, E_UNKNOWN, len, CACertificate::removeColons(), and strtrim().
Referenced by findSKI(), and getXORofSKIs().
Definition at line 445 of file CAMultiSignature.cpp.
References getSKI(), and m_xoredID.
Referenced by CACmdLnOptions::setOwnCertificate().
Method for producing a single Signature for Key Exchange.
Definition at line 417 of file CAMultiSignature.cpp.
References E_UNKNOWN, m_sigCount, m_signatures, __t_signature::pSig, and CASignature::sign().
Referenced by CAFirstMix::doUserLogin_internal().
SINT32 CAMultiSignature::signXML | ( | DOMNode * | a_node, |
bool | appendCerts | ||
) |
Definition at line 87 of file CAMultiSignature.cpp.
References createDOMElement(), DSA_SHA1_REFERENCE, E_SUCCESS, E_UNKNOWN, ECDSA_SHA1_REFERENCE, CABase64::encode(), CACertStore::encode(), getDOMChildByName(), CASignature::getSignatureSize(), CASignature::isDSA(), CASignature::isRSA(), len, m_sigCount, m_signatures, DOM_Output::makeCanonical(), __t_signature::next, __t_signature::pCerts, CAMsg::printMsg(), __t_signature::pSig, RSA_SHA1_REFERENCE, setDOMElementAttribute(), setDOMElementValue(), SHA1_REFERENCE, and CASignature::sign().
Referenced by CAInfoService::getCascadeHeloXMLAsString(), CAInfoService::getStatusXMLAsString(), CAMiddleMix::processKeyExchange(), CAMix::signXML(), signXML(), and CAInfoService::xmlDocToStringWithSignature().
SINT32 CAMultiSignature::signXML | ( | UINT8 * | in, |
UINT32 | inlen, | ||
UINT8 * | out, | ||
UINT32 * | outlen, | ||
bool | appendCerts | ||
) |
Definition at line 73 of file CAMultiSignature.cpp.
References DOM_Output::dumpToMem(), E_SUCCESS, E_UNKNOWN, parseDOMDocument(), and signXML().
|
static |
Definition at line 236 of file CAMultiSignature.cpp.
References E_UNKNOWN, and parseDOMDocument().
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), CALastMix::processKeyExchange(), CAMiddleMix::processKeyExchange(), and CACmdLnOptions::setPriceCertificate().
|
static |
Definition at line 251 of file CAMultiSignature.cpp.
References CABase64::decode(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), getSignatureElements(), CASignature::getSignatureMethod(), DOM_Output::makeCanonical(), MAX_SIGNATURE_ELEMENTS, CAMsg::printMsg(), CASignature::setVerifyKey(), and CASignature::verify().
|
private |
Definition at line 72 of file CAMultiSignature.hpp.
Referenced by addSignature(), CAMultiSignature(), getSignatureCount(), sign(), and signXML().
|
private |
Definition at line 71 of file CAMultiSignature.hpp.
Referenced by addSignature(), CAMultiSignature(), findSKI(), sign(), signXML(), and ~CAMultiSignature().
|
private |
Definition at line 73 of file CAMultiSignature.hpp.
Referenced by addSignature(), CAMultiSignature(), findSKI(), getXORofSKIs(), and ~CAMultiSignature().