Required Instance Methodswift-crypto 3.12.2Crypto

update(bufferPointer:)

Incrementally updates the hash function with the contents of the buffer.

HashFunctions.swift:86
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
mutating func update(bufferPointer: UnsafeRawBufferPointer)

Parameters

bufferPointer

A pointer to the next block of data for the ongoing digest calculation.

Call this method one or more times to provide data to the hash function in blocks. After providing the last block of data, call the finalize method to get the computed digest. Don’t call the update method again after finalizing the hash function.