Digest

1.6.0

SHA1, SHA2, SHA3, SHAKE, HMAC, HKDF, MGF1, random numbers in Swift
leif-ibsen/Digest

What's New

Release 1.6.0

2024-04-24T06:46:36Z

Digest release 1.6.0 is a bugfix release.
The following two bugs in the MT random number generator class have been fixed:

  1. A small range close to Int.max like

    randomInt(in: Int.max - 5 ... Int.max)

    would crash the application

  2. In extremely rare cases randomInt or randomUInt would return

    range.lowerBound - 1 or range.upperBound + 1

    as result

Digest

The Digest package provides the following functionality:

  • Message Digest algorithms - SHA1, SHA2 and SHA3
  • Extendable Output Functions - SHAKE and XOF
  • Hash Based Message Authentication Codes - HMAC
  • Key Derivation Functions - HKDF and X963KDF
  • Mask Generation Function - MGF1
  • Random number generation using the Mersenne Twister algorithm

Digest requires Swift 5.0. It also requires that the Int and UInt types be 64 bit types.

Its documentation is build with the DocC plugin and published on GitHub Pages at this location:

https://leif-ibsen.github.io/Digest/documentation/digest

The documentation is also available in the Digest.doccarchive file.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu May 02 2024 05:33:46 GMT-0900 (Hawaii-Aleutian Daylight Time)