@@ -19,7 +19,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
@@ -47,5 +46,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@@ -22,7 +22,6 @@ import Darwin
import Glibc
#endif
/// Counter with Cipher Block Chaining-Message Authentication Code
public struct CCM: StreamMode {
public enum Error: Swift.Error {
@@ -70,7 +69,6 @@ public struct CCM: StreamMode {
self.authenticationTag = authenticationTag
public func worker(blockSize: Int, cipherOperation: @escaping CipherOperationOnBlock) throws -> CipherModeWorker {
if nonce.isEmpty {
throw Error.invalidInitializationVector
@@ -64,7 +64,6 @@ extension Updatable {
return try finish(withBytes: bytes.slice)
/// Finish updates. May add padding.
///
/// - Returns: Processed data
@@ -396,7 +396,6 @@ final class AESCCMTests: XCTestCase {
func testAESCCMTestCase1() {
let key: Array<UInt8> = [0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f]
let nonce: Array<UInt8> = [0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16]
@@ -312,7 +312,6 @@ final class AESTests: XCTestCase {
XCTAssertEqual(decrypted, plaintext, "decryption failed")
func testAESEncryptCTRStream() {
let key = Array<UInt8>(hex: "0xbe3e9020816eb838782e2d9f4a2f40d4")
let iv = Array<UInt8>(hex: "0x0000000000000000a9bbd681ded0c0c8")
@@ -13,7 +13,6 @@
// - This notice may not be removed or altered from any source or binary distribution.
//
@testable import CryptoSwift
import XCTest