summaryrefslogtreecommitdiff
path: root/files.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2010-07-24 05:55:22 +0000
committerweidai <weidai11@users.noreply.github.com>2010-07-24 05:55:22 +0000
commit7adbf89681278ddfb5e3fb82a2e39d1a97daa651 (patch)
tree9fa57aeee5c779a3c9b4f88006050d81ff68e6ef /files.cpp
parenta070ff16ae0829474effa76fa0305e6d63966123 (diff)
downloadcryptopp-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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/files.cpp b/files.cpp
index 6a29ed55..453b5624 100644
--- a/files.cpp
+++ b/files.cpp
@@ -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)