Sha256: f872a436e7d7b50b4de3a69af0a564a83f76da39d204d191b9ae317284f7e479

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

# encoding: binary
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

3 entries across 3 versions & 1 rubygems

Version Path
rbnacl-3.4.0 lib/rbnacl/hash/sha256.rb
rbnacl-3.3.0 lib/rbnacl/hash/sha256.rb
rbnacl-3.2.0 lib/rbnacl/hash/sha256.rb