Sha256: 56c55edb432e187205ae4bad0c0f8312576e19dd955baca3a39852e4dd840edb

Contents?: true

Size: 344 Bytes

Versions: 19

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module Noise
  module Functions
    module Hash
      class Sha256
        HASHLEN = 32
        BLOCKLEN = 64
        def hash(data)
          RbNaCl::Hash.sha256(data)
        end

        def hashlen
          HASHLEN
        end

        def blocklen
          BLOCKLEN
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
noise-ruby-0.10.1 lib/noise/functions/hash/sha256.rb
noise-ruby-0.10.0 lib/noise/functions/hash/sha256.rb
noise-ruby-0.9.4 lib/noise/functions/hash/sha256.rb
noise-ruby-0.8.4 lib/noise/functions/hash/sha256.rb
noise-ruby-0.7.4 lib/noise/functions/hash/sha256.rb
noise-ruby-0.7.3 lib/noise/functions/hash/sha256.rb
noise-ruby-0.7.1 lib/noise/functions/hash/sha256.rb
noise-ruby-0.7.0 lib/noise/functions/hash/sha256.rb
noise-ruby-0.6.3 lib/noise/functions/hash/sha256.rb
noise-ruby-0.6.2 lib/noise/functions/hash/sha256.rb
noise-ruby-0.6.1 lib/noise/functions/hash/sha256.rb
noise-ruby-0.6.0 lib/noise/functions/hash/sha256.rb
noise-ruby-0.5.3 lib/noise/functions/hash/sha256.rb
noise-ruby-0.5.2 lib/noise/functions/hash/sha256.rb
noise-ruby-0.5.1 lib/noise/functions/hash/sha256.rb
noise-ruby-0.5.0 lib/noise/functions/hash/sha256.rb
noise-ruby-0.3.0 lib/noise/functions/hash/sha256.rb
noise-ruby-0.2.0 lib/noise/functions/hash/sha256.rb
noise-ruby-0.1.0 lib/noise/functions/hash/sha256.rb