Mixes for Privacy and Anonymity in the Internet
Static Public Member Functions | List of all members
CABase64 Class Reference

Static Public Member Functions

static SINT32 decode (const UINT8 *in, UINT32 len, UINT8 *out, UINT32 *outlen)
 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Makes a Base64-Decoding on the input byte array. More...
 
static SINT32 encode (const UINT8 *in, UINT32 len, UINT8 *out, UINT32 *outlen)
 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Makes a Base64-Encoding on the input byte array. More...
 

Member Function Documentation

◆ decode()

SINT32 CABase64::decode ( const UINT8 in,
UINT32  inlen,
UINT8 out,
UINT32 outlen 
)
static

ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Makes a Base64-Decoding on the input byte array.

It decodes in to out.

Parameters
ininput byte array
inlensize of the input byte array
outoutput byte array
outlenon input must contain the size of the byte array for output, on return it contains the size of the decoded output
Return values
E_SUCCESSif no error occurs
E_UNKNOWNif an error occurs fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

References E_SUCCESS, E_UNKNOWN, and len.

Referenced by CACertificate::decode(), decodeXMLEncryptedKey(), decryptXMLElement(), CAFirstMix::doUserLogin_internal(), CAASymCipher::getKeyPart(), CAAccountingInstance::handleChallengeResponse_internal(), CASignature::parseSignKeyXML(), CALastMix::processKeyExchange(), CAMiddleMix::processKeyExchange(), CAASymCipher::setPublicKey(), CASignature::setSignKey(), CASignature::setVerifyKey(), CAMultiSignature::verifyXML(), and CASignature::verifyXML().

◆ encode()

SINT32 CABase64::encode ( const UINT8 in,
UINT32  inlen,
UINT8 out,
UINT32 outlen 
)
static

ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff Makes a Base64-Encoding on the input byte array.

It encodes in to out.

Parameters
ininput byte array
inlensize of the input byte array
outoutput byte array
outlenon input must contain the size of the byte array for output, on return it contains the size of the encoded output
Return values
E_SUCCESSif no error occurs
E_UNKNOWNif an error occurs

fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

References E_SUCCESS, E_UNKNOWN, and len.

Referenced by __encryptKey(), CAASymCipher::addKeyPart(), CAFirstMix::doUserLogin_internal(), CACertificate::encode(), encryptXMLElement(), CASignature::getSignKey(), CAAccountingInstance::handleAccountCertificate_internal(), CAMsg::openEncryptedLog(), CAAccountingInstance::prepareCCRequest(), CALastMix::processKeyExchange(), CAMiddleMix::processKeyExchange(), CALocalProxy::processKeyExchange(), and CAMultiSignature::signXML().