mirror of
https://github.com/krzyzanowskim/CryptoSwift.git
synced 2026-06-06 20:17:32 +00:00
minor. remove commented code and add reference url to test.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user