Algorithm

public enum Algorithm

Enumerates available Digest algorithms

  • Secure Hash Algorithm 1

    Declaration

    Swift

    case sha1
  • Secure Hash Algorithm 2 224-bit

    Declaration

    Swift

    case sha224
  • Secure Hash Algorithm 2 256-bit

    Declaration

    Swift

    case sha256
  • Secure Hash Algorithm 2 384-bit

    Declaration

    Swift

    case sha384
  • Secure Hash Algorithm 2 512-bit

    Declaration

    Swift

    case sha512
  • gcm

    Secure Hash Algorithm 1 using AES-GCM envelope encryption. use this algorithm for cross platform encryption/decryption.

    Declaration

    Swift

    case gcm
  • Digest Length

    Declaration

    Swift

    public var length: CC_LONG { get }
  • Undocumented

    Declaration

    Swift

    public var algorithmForSignature: SecKeyAlgorithm { get }
  • Undocumented

    Declaration

    Swift

    public var alogrithmForEncryption: SecKeyAlgorithm { get }
  • The platform/alogorithm dependent function to be used. (UnsafePointer!, Int, UnsafeMutablePointer!) -> UnsafeMutablePointer!

  • Undocumented

    Declaration

    Swift

    public var engine: (_ data: UnsafeRawPointer, _ len: CC_LONG, _ md: UnsafeMutablePointer<UInt8>) -> UnsafeMutablePointer<UInt8>? { get }