From dee2e415c2eafd5f8a81723be138c292afd8d6e3 Mon Sep 17 00:00:00 2001 From: Hugo Pointcheval Date: Sat, 18 Apr 2020 16:30:17 +0200 Subject: [PATCH] Clean swift and add copyright --- ios/Classes/SwiftNativeCryptoPlugin.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ios/Classes/SwiftNativeCryptoPlugin.swift b/ios/Classes/SwiftNativeCryptoPlugin.swift index f4f920a..07043a7 100644 --- a/ios/Classes/SwiftNativeCryptoPlugin.swift +++ b/ios/Classes/SwiftNativeCryptoPlugin.swift @@ -1,3 +1,9 @@ +// +// NativeCryptoPlugin +// +// Copyright (c) 2020 +// Author: Hugo Pointcheval +// import Flutter import UIKit import CommonCrypto @@ -13,7 +19,6 @@ extension FlutterStandardTypedData { } } - func crypt(operation: Int, algorithm: Int, options: Int, key: Data, initializationVector: Data, dataIn: Data) -> Data? { return key.withUnsafeBytes { keyUnsafeRawBufferPointer in