Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

const PdfEncrypt & PoDoFo::PdfEncrypt::operator= ( const PdfEncrypt rhs )

Assignment operator

Parameters:
rhsanother PdfEncrypt object which is copied

Definition at line 621 of file PdfEncrypt.cpp.

References m_curReference, m_documentId, m_eAlgorithm, m_eKeyLength, m_encryptionKey, m_keyLength, m_oValue, m_ownerPass, m_pValue, m_rc4key, m_rc4last, m_rValue, m_userPass, and m_uValue.

{
    m_eAlgorithm = rhs.m_eAlgorithm;
    m_eKeyLength = rhs.m_eKeyLength;

    memcpy( m_uValue, rhs.m_uValue, sizeof(unsigned char) * 32 );
    memcpy( m_oValue, rhs.m_oValue, sizeof(unsigned char) * 32 );

    m_pValue = rhs.m_pValue;
    m_rValue = rhs.m_rValue;

    memcpy( m_encryptionKey, rhs.m_encryptionKey, sizeof(unsigned char) * 16 );

    m_keyLength = rhs.m_keyLength;

    memcpy( m_rc4key, rhs.m_rc4key, sizeof(unsigned char) * 16 );
    memcpy( m_rc4last, rhs.m_rc4last, sizeof(unsigned char) * 256 );

    m_curReference = rhs.m_curReference;
    m_documentId   = rhs.m_documentId;
    m_userPass     = rhs.m_userPass;
    m_ownerPass    = rhs.m_ownerPass;

    return *this;
}

Generated by  Doxygen 1.6.0   Back to index