Algorithm
public enum Algorithm
Enumerates available algorithms.
-
Message Digest 5
Declaration
Swift
case md5,
-
Secure Hash Algorithm 1
Declaration
Swift
sha1,
-
Secure Hash Algorithm 2 224-bit
Declaration
Swift
sha224,
-
Secure Hash Algorithm 2 256-bit
Declaration
Swift
sha256,
-
Secure Hash Algorithm 2 384-bit
Declaration
Swift
sha384,
-
Secure Hash Algorithm 2 512-bit
Declaration
Swift
sha512
-
Obtains the digest length produced by this algorithm (in bytes).
Declaration
Swift
public func digestLength() -> Int