INNER CODE UNIT · Swift
update
Kitura/BlueCryptor · Sources/Cryptor/Digest.swift:257
func update(buffer: Buffer, byteCount: CC_LONG) {
_ = updater(context, buffer, byteCount)
}
///
/// Finalizer routine
///
/// - Returns: Byte array containing the digest.
///
func final() -> [UInt8] {
let digestLength = Int(self.length)
var digest = Array<UInt8>(repeating: 0, count:digestLength)
_ = finalizer(&digest, context)
return digest
}
}