Other Functions

The following functions are available globally.

  • Calculate SHA256 of array of bytes

    Declaration

    Swift

    public func sha256(_ bytes: inout [UInt8]) -> [UInt8]
  • Calculate SHA256 of Data

    Declaration

    Swift

    public func sha256(_ data: Data) -> [UInt8]
  • Calculate SHA256 of two byte arrays

    Declaration

    Swift

    public func sha256(_ bytes1: inout [UInt8], _ bytes2: inout [UInt8]) -> [UInt8]
  • Calculate MD5 of Data

    Declaration

    Swift

    public func md5(_ data: Data) -> [UInt8]