From 7b7e15bf00697eb6fd582c3dfa360324ea46aab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Krzyz=CC=87anowski?= Date: Tue, 13 Oct 2015 01:02:18 +0200 Subject: [PATCH] minor. remove commented code and add reference url to test. --- CryptoSwift/CipherBlockMode.swift | 1 - CryptoSwiftTests/AESTests.swift | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CryptoSwift/CipherBlockMode.swift b/CryptoSwift/CipherBlockMode.swift index 8ce9194..eaf611c 100644 --- a/CryptoSwift/CipherBlockMode.swift +++ b/CryptoSwift/CipherBlockMode.swift @@ -139,7 +139,6 @@ private struct CFBMode: BlockMode { } func decryptBlocks(blocks:[[UInt8]], iv:[UInt8]?, cipherOperation:CipherOperationOnBlock) throws -> [UInt8] { - // return try encryptBlocks(blocks, iv: iv, cipherOperation: cipherOperation) guard let iv = iv else { throw BlockError.MissingInitializationVector } diff --git a/CryptoSwiftTests/AESTests.swift b/CryptoSwiftTests/AESTests.swift index 783da6a..a7152de 100644 --- a/CryptoSwiftTests/AESTests.swift +++ b/CryptoSwiftTests/AESTests.swift @@ -86,6 +86,7 @@ final class AESTests: XCTestCase { XCTAssertEqual(decrypted, plaintext, "decryption failed") } + // https://github.com/krzyzanowskim/CryptoSwift/issues/142 func testAES_encrypt_cfb2() { let key: [UInt8] = [56, 118, 37, 51, 125, 78, 103, 107, 119, 40, 74, 88, 117, 112, 123, 75, 122, 89, 72, 36, 46, 91, 106, 60, 54, 110, 34, 126, 69, 126, 61, 87] let iv: [UInt8] = [69, 122, 99, 87, 83, 112, 110, 65, 54, 109, 107, 89, 73, 122, 74, 49]