Lines Matching refs:getLength

41 …_cast< const unsigned char* >( aKey.getConstArray() ) ), static_cast<unsigned>(aKey.getLength()) };  in Create()
45 …itializationVector.getConstArray() ) ), static_cast<unsigned>(aInitializationVector.getLength()) }; in Create()
109 if ( aData.getLength() ) in convertWithCipherContext()
111 sal_Int32 nOldLastBlockLen = m_aLastBlock.getLength(); in convertWithCipherContext()
114 sal_Int32 nAvailableData = nOldLastBlockLen + aData.getLength(); in convertWithCipherContext()
137 m_aLastBlock.realloc( nOldLastBlockLen + aData.getLength() ); in convertWithCipherContext()
138 …copyMemory( m_aLastBlock.getArray() + nOldLastBlockLen, aData.getConstArray(), aData.getLength() ); in convertWithCipherContext()
145 m_aLastBlock.realloc( nOldLastBlockLen - nToConvertLen + aData.getLength() ); in convertWithCipherContext()
146 …astBlock.getArray() + nOldLastBlockLen - nToConvertLen, aData.getConstArray(), aData.getLength() ); in convertWithCipherContext()
159 …OSL_ENSURE( aToConvert.getLength() % m_nBlockSize == 0, "Unexpected size of the data to encrypt!" … in convertWithCipherContext()
160 if ( aToConvert.getLength() ) in convertWithCipherContext()
163 aResult.realloc( aToConvert.getLength() + m_nBlockSize ); in convertWithCipherContext()
164 …aResult.getLength(), const_cast< unsigned char* >( reinterpret_cast< const unsigned char* >( aToCo… in convertWithCipherContext()
171 m_nConverted += aToConvert.getLength(); in convertWithCipherContext()
191 sal_Int32 nSizeForPadding = ( m_nConverted + m_aLastBlock.getLength() ) % m_nBlockSize; in finalizeCipherContextAndDispose()
201 …OSL_ENSURE( m_aLastBlock.getLength() < m_nBlockSize, "Unexpected size of cashed incomplete last bl… in finalizeCipherContextAndDispose()
205 sal_Int32 nOldLastBlockLen = m_aLastBlock.getLength(); in finalizeCipherContextAndDispose()
217 m_aLastBlock[m_aLastBlock.getLength() - 1] = static_cast< sal_Int8 >( nPaddingSize ); in finalizeCipherContextAndDispose()
221 …OSL_ENSURE( m_aLastBlock.getLength() < m_nBlockSize * 2 , "Unexpected size of cashed incomplete la… in finalizeCipherContextAndDispose()
224 if ( m_aLastBlock.getLength() ) in finalizeCipherContextAndDispose()
227 aResult.realloc( m_aLastBlock.getLength() + m_nBlockSize ); in finalizeCipherContextAndDispose()
228 …esult.getLength(), const_cast< unsigned char* >( reinterpret_cast< const unsigned char* >( m_aLast… in finalizeCipherContextAndDispose()
239 sal_Int32 nPrefixLen = aResult.getLength(); in finalizeCipherContextAndDispose()
242 …nsigned char* >( aResult.getArray() + nPrefixLen ), &nFinalLen, aResult.getLength() - nPrefixLen )… in finalizeCipherContextAndDispose()
255 OSL_ENSURE( aResult.getLength() >= m_nBlockSize, "Not enough data to handle the padding!" ); in finalizeCipherContextAndDispose()
257 sal_Int8 nBytesToRemove = aResult[aResult.getLength() - 1]; in finalizeCipherContextAndDispose()
258 if ( nBytesToRemove <= 0 || nBytesToRemove > aResult.getLength() ) in finalizeCipherContextAndDispose()
265 aResult.realloc( aResult.getLength() - nBytesToRemove ); in finalizeCipherContextAndDispose()