class Aws::Plugins::ChecksumAlgorithm

def self.update_in_chunks(digest, io)

def self.update_in_chunks(digest, io)
  loop do
    chunk = io.read(CHUNK_SIZE)
    break unless chunk
    digest.update(chunk)
  end
  io.rewind
end