|
1 | 1 | // --- stubs ---
|
2 | 2 |
|
3 | 3 | struct Data {
|
4 |
| - func withUnsafeBytes<ResultType>( |
| 4 | +/* func withUnsafeBytes<ResultType>( |
5 | 5 | _ body: (UnsafeRawBufferPointer) throws -> ResultType
|
6 | 6 | ) rethrows -> ResultType { return 0 as! ResultType }
|
7 | 7 | mutating func withUnsafeMutableBytes<ResultType>(
|
8 | 8 | _ body: (UnsafeMutableRawBufferPointer) throws -> ResultType
|
9 |
| - ) rethrows -> ResultType { return 0 as! ResultType } |
| 9 | + ) rethrows -> ResultType { return 0 as! ResultType }*/ |
10 | 10 | }
|
11 | 11 |
|
12 | 12 | // --- CommonCryptor ---
|
@@ -123,7 +123,7 @@ func CCCrypt(
|
123 | 123 | func cond() -> Bool { return true }
|
124 | 124 |
|
125 | 125 | func test_commoncrypto1(key: Data, iv: Data, dataIn: Data, dataOut: inout Data) {
|
126 |
| - // semi-realistic test case |
| 126 | +/* // semi-realistic test case |
127 | 127 | var myCryptor: CCCryptorRef?
|
128 | 128 | var dataOutWritten = 0
|
129 | 129 |
|
@@ -175,15 +175,15 @@ func test_commoncrypto1(key: Data, iv: Data, dataIn: Data, dataOut: inout Data)
|
175 | 175 | })
|
176 | 176 | })
|
177 | 177 | })
|
178 |
| - }) |
| 178 | + })*/ |
179 | 179 | }
|
180 | 180 |
|
181 | 181 | func test_commoncrypto2(
|
182 | 182 | key: UnsafeRawPointer, keyLen: Int,
|
183 | 183 | iv: UnsafeRawPointer,
|
184 | 184 | dataIn: UnsafeRawPointer, dataInLen: Int,
|
185 | 185 | dataOut: UnsafeMutableRawPointer, dataOutAvail: Int) {
|
186 |
| - var myCryptor: CCCryptorRef? |
| 186 | +/* var myCryptor: CCCryptorRef? |
187 | 187 | var dataOutWritten = 0
|
188 | 188 |
|
189 | 189 | // algorithms
|
@@ -214,4 +214,4 @@ func test_commoncrypto2(
|
214 | 214 | _ = CCCryptorCreateWithMode(CCOperation(kCCAlgorithmAES), CCMode(kCCModeOFB), CCAlgorithm(kCCAlgorithm3DES), CCPadding(0), iv, key, keyLen, nil, 0, 0, CCModeOptions(0), &myCryptor)
|
215 | 215 | _ = CCCryptorCreateWithMode(CCOperation(kCCAlgorithmAES), CCMode(kCCModeRC4), CCAlgorithm(kCCAlgorithm3DES), CCPadding(0), iv, key, keyLen, nil, 0, 0, CCModeOptions(0), &myCryptor)
|
216 | 216 | _ = CCCryptorCreateWithMode(CCOperation(kCCAlgorithmAES), CCMode(kCCModeCFB8), CCAlgorithm(kCCAlgorithm3DES), CCPadding(0), iv, key, keyLen, nil, 0, 0, CCModeOptions(0), &myCryptor)
|
217 |
| -} |
| 217 | +*/} |
0 commit comments