CryptoAlgorithm

public enum CryptoAlgorithm

Crypto HMAC algorithms and digest lengths

  • Undocumented

    Declaration

    Swift

    case sha1
  • md5

    Undocumented

    Declaration

    Swift

    case md5
  • Undocumented

    Declaration

    Swift

    case sha256
  • Undocumented

    Declaration

    Swift

    case sha384
  • Undocumented

    Declaration

    Swift

    case sha512
  • Undocumented

    Declaration

    Swift

    case sha224
  • Underlying CommonCrypto HMAC algorithm.

    Declaration

    Swift

    public var hmacAlgorithm: CCHmacAlgorithm { get }
  • Digest length for the HMAC algorithm.

    Declaration

    Swift

    public var digestLength: Int { get }
  • Calculate the HMAC digest of data.

    Declaration

    Swift

    public func hmac(_ data: UnsafeRawPointer!, dataLength: Int, withKey key: Data) -> Data
  • Compute a hash of the underlying data using the specfied algorithm.

    Declaration

    Swift

    public func hash(_ data: UnsafeRawPointer!, dataLength: Int) -> Data