Sha256: 4cceac9a1fc00f30b4b53861d9d8805c2939678b2351d7ce805fc864518926a3

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 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,
                      %i[pointer pointer ulong_long]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbnacl-7.1.2 lib/rbnacl/hash/sha256.rb
rbnacl-7.1.1 lib/rbnacl/hash/sha256.rb
rbnacl-7.1.0 lib/rbnacl/hash/sha256.rb
rbnacl-7.0.0 lib/rbnacl/hash/sha256.rb
rbnacl-6.0.1 lib/rbnacl/hash/sha256.rb
rbnacl-6.0.0 lib/rbnacl/hash/sha256.rb