Skip to content

Commit ff5fe01

Browse files
committed
Removed unused CCCryptorCreate in NSData additions.
1 parent 7703149 commit ff5fe01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

YubiKit/YubiKit/Helpers/Additions/YKFNSDataAdditions.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,13 @@ - (NSData *)ykf_cryptOperation:(CCOperation)operation algorithm:(CCAlgorithm)alg
334334
&cryptorRef
335335
);
336336

337-
CCCryptorUpdate(cryptorRef,
337+
CCCryptorStatus cryptorStatus = CCCryptorUpdate(cryptorRef,
338338
self.bytes,
339339
self.length,
340340
buffer.mutableBytes,
341341
buffer.length,
342342
&outLength);
343343

344-
CCCryptorStatus cryptorStatus = CCCryptorCreate(operation, algorithm, kCCOptionECBMode, key.bytes, key.length, NULL, &cryptorRef);
345344
CCCryptorRelease(cryptorRef);
346345

347346
if(cryptorStatus == kCCSuccess) {

0 commit comments

Comments
 (0)