INNER CODE UNIT · Swift

final

Kitura/BlueCryptor · Sources/Cryptor/HMAC.swift:323

	public func final() -> [UInt8] {
		
		var hmac = Array<UInt8>(repeating: 0, count:algorithm.digestLength())
		#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
        	CCHmacFinal(context, &hmac)
		#elseif os(Linux)
			var length: UInt32 = 0
			HMAC_Final(context, &hmac, &length)
		#endif
        return hmac
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…