module Bundler::Digest

def generate_split_buffer(string, &block)

def generate_split_buffer(string, &block)
  size   = string.bytesize * 8
  buffer = string.bytes << 128
  buffer << 0 while buffer.size % 64 != 56
  buffer.concat([size].pack("Q>").bytes)
  buffer.each_slice(64, &block)
end