diff options
author | weidai <weidai11@users.noreply.github.com> | 2010-07-24 05:55:22 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2010-07-24 05:55:22 +0000 |
commit | 7adbf89681278ddfb5e3fb82a2e39d1a97daa651 (patch) | |
tree | 9fa57aeee5c779a3c9b4f88006050d81ff68e6ef /files.cpp | |
parent | a070ff16ae0829474effa76fa0305e6d63966123 (diff) | |
download | cryptopp-git-7adbf89681278ddfb5e3fb82a2e39d1a97daa651.tar.gz |
add support for AES-NI and CLMUL instruction sets in AES and GMAC/GCM
Diffstat (limited to 'files.cpp')
-rw-r--r-- | files.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -95,7 +95,7 @@ size_t FileStore::TransferTo2(BufferedTransformation &target, lword &transferByt m_stream->read((char *)m_space, (unsigned int)STDMIN(size, (lword)spaceSize)); } - m_len = m_stream->gcount(); + m_len = (size_t)m_stream->gcount(); size_t blockedBytes; output: blockedBytes = target.ChannelPutModifiable2(channel, m_space, m_len, 0, blocking); @@ -242,7 +242,7 @@ size_t FileSink::Put2(const byte *inString, size_t length, int messageEnd, bool size = numeric_limits<std::streamsize>::max(); m_stream->write((const char *)inString, size); inString += size; - length -= size; + length -= (size_t)size; } if (messageEnd) |