Mixes for Privacy and Anonymity in the Internet
|
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 |
CAMultiSignature::CAMultiSignature | ( | ) |
References m_sigCount, m_signatures, and m_xoredID.
|
virtual |
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 | ||
) |
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().
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().
UINT32 CAMultiSignature::getSignatureCount | ( | ) |
References m_sigCount.
Referenced by CACmdLnOptions::setOwnCertificate().
References E_SUCCESS, E_UNKNOWN, len, CACertificate::removeColons(), and strtrim().
Referenced by findSKI(), and getXORofSKIs().
References getSKI(), and m_xoredID.
Referenced by CACmdLnOptions::setOwnCertificate().
Method for producing a single Signature for Key Exchange.
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 | ||
) |
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 | ||
) |
References DOM_Output::dumpToMem(), E_SUCCESS, E_UNKNOWN, parseDOMDocument(), and signXML().
|
static |
|
static |
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 |
Referenced by addSignature(), CAMultiSignature(), getSignatureCount(), sign(), and signXML().
|
private |
Referenced by addSignature(), CAMultiSignature(), findSKI(), sign(), signXML(), and ~CAMultiSignature().
|
private |
Referenced by addSignature(), CAMultiSignature(), findSKI(), getXORofSKIs(), and ~CAMultiSignature().