Instance Methodswift-crypto 3.8.0Crypto
withUnsafeBytes(_:)
Invokes the given closure with a buffer pointer covering the raw bytes of the digest.
Digests.swift:51func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
Parameters
- body
A closure that takes a raw buffer pointer to the bytes of the digest and returns the digest.
Returns
The digest, as returned from the body closure.
Other members in extension
Type members
Instance members
var description: String
A human-readable description of the digest.
func hash(into: inout Hasher
) Hashes the essential components of the digest by feeding them into the given hash function.