Browse Source

minor. remove commented code and add reference url to test.

Marcin Krzyżanowski 10 years ago
parent
commit
7b7e15bf00
2 changed files with 1 additions and 1 deletions
  1. 0 1
      CryptoSwift/CipherBlockMode.swift
  2. 1 0
      CryptoSwiftTests/AESTests.swift

+ 0 - 1
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
         }

+ 1 - 0
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]