summaryrefslogtreecommitdiff
path: root/lib/rubygems/digest/sha2.rb
blob: 3bb107773fe808edbfbcb15907f0bbfa8da4e4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

require 'digest/sha2'

module Gem
  if RUBY_VERSION >= '1.8.6'
    SHA256 = Digest::SHA256
  else
    require 'rubygems/digest/digest_adapter'
    SHA256 = DigestAdapter.new(Digest::SHA256)
  end
end