lib/rbnacl/hash/sha256.rb



# 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