Type Aliasswift-crypto 3.12.2Crypto
Digest
The digest type for a MD5 hash function.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
typealias Digest = Insecure.MD5Digest
The digest type for a MD5 hash function.
typealias Digest = Insecure.MD5Digest
import Crypto
A cryptography library for Swift.
struct MD5
An implementation of MD5 hashing.
enum Insecure
A container for older, cryptographically insecure algorithms.
struct MD5Digest
The output of a MD5 hash.
init()
Creates a MD5 hash function.
static var blockByteCount: Int { get set }
The number of bytes that represents the hash function’s internal state.
static var byteCount: Int { get set }
The number of bytes in an MD5 digest.
func finalize() -> Self.Digest
Finalizes the hash function and returns the computed digest.
mutating func update(bufferPointer: UnsafeRawBufferPointer)
Incrementally updates the hash function with the contents of the buffer.