Clean swift and add copyright
This commit is contained in:
parent
6150f4bf36
commit
dee2e415c2
@ -1,3 +1,9 @@
|
|||||||
|
//
|
||||||
|
// NativeCryptoPlugin
|
||||||
|
//
|
||||||
|
// Copyright (c) 2020
|
||||||
|
// Author: Hugo Pointcheval
|
||||||
|
//
|
||||||
import Flutter
|
import Flutter
|
||||||
import UIKit
|
import UIKit
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
@ -13,7 +19,6 @@ extension FlutterStandardTypedData {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func crypt(operation: Int, algorithm: Int, options: Int, key: Data,
|
func crypt(operation: Int, algorithm: Int, options: Int, key: Data,
|
||||||
initializationVector: Data, dataIn: Data) -> Data? {
|
initializationVector: Data, dataIn: Data) -> Data? {
|
||||||
return key.withUnsafeBytes { keyUnsafeRawBufferPointer in
|
return key.withUnsafeBytes { keyUnsafeRawBufferPointer in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user