Skip to content

Commit

Permalink
[Swift 2.2] Avoid deprecated C-style for loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
iosdevzone committed Sep 24, 2016
1 parent 14ead17 commit 9744433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IDZSwiftCommonCryptoTests/IDZSwiftCommonCryptoTests.swift
Expand Up @@ -232,7 +232,7 @@ class IDZSwiftCommonCryptoTests: XCTestCase {

let key = arrayFromHexString("0101010101010101")

for var i = 0; i < ivs.count; ++i {
for i in 0 ..< ivs.count {
let iv = arrayFromHexString(ivs[i])
let cipherText = Cryptor(operation:.Encrypt, algorithm:.DES, options:.ECBMode, key:key, iv:Array<UInt8>()).update(arrayFromHexString(ivs[i]))?.final()
print("\"\(hexStringFromArray(cipherText!))\", // [\(i)]")
Expand Down

0 comments on commit 9744433

Please sign in to comment.