Sha256: 34a6604bebce416aceb2659509f0b244afdd04715219cd1a1b2f3891452c760e

Contents?: true

Size: 415 Bytes

Versions: 5

Compression:

Stored size: 415 Bytes

Contents

# encoding: binary
# frozen_string_literal: true

module RbNaCl
  module Hash
    # Provides a binding for the SHA256 function in libsodium
    module SHA256
      extend Sodium
      sodium_type :hash
      sodium_primitive :sha256
      sodium_constant :BYTES
      sodium_function :hash_sha256,
                      :crypto_hash_sha256,
                      [:pointer, :pointer, :ulong_long]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbnacl-5.0.0 lib/rbnacl/hash/sha256.rb
rbnacl-4.0.2 lib/rbnacl/hash/sha256.rb
rbnacl-4.0.1 lib/rbnacl/hash/sha256.rb
rbnacl-4.0.0 lib/rbnacl/hash/sha256.rb
rbnacl-4.0.0.pre lib/rbnacl/hash/sha256.rb