/usr/local/lib/swipl/library/ext/clib/sha.pl
All Application Manual Name SummaryHelp

  • ext
    • clib
      • socket.pl
      • uid.pl
      • unix.pl
      • syslog.pl
      • memfile.pl
      • time.pl -- Time and alarm library
      • uri.pl -- Process URIs
      • filesex.pl -- Extended operations on files
      • uuid.pl -- Universally Unique Identifier (UUID) Library
      • sha.pl -- SHA secure hashes
        • sha_hash/3
        • sha_new_ctx/2
        • sha_hash_ctx/4
        • hmac_sha/4
        • file_sha1/2
        • hash_atom/2
      • process.pl -- Create processes and redirect I/O
      • hash_stream.pl -- Maintain a hash on a stream
      • md5.pl -- MD5 hashes
      • mallocinfo.pl -- Memory allocation details
      • crypt.pl
 sha_hash_ctx(+OldContext, +Data, -NewContext, -Hash) is det
Hash is the SHA hash of Data. NewContext is the new SHA computation context, while OldContext is the old. OldContext may be produced by a prior invocation of either sha_new_ctx/3 or sha_hash_ctx/4 itself.

This predicate allows a SHA function to be computed in chunks, which may be important while working with Metalink (RFC 5854), BitTorrent or similar technologies, or simply with big files.