Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced deprecated kCCAlgorithmAES128 with kCCAlgorithmAES #1214

Merged
merged 2 commits into from
Nov 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Source/ARTCrypto.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ - (BOOL)ccAlgorithm:(CCAlgorithm *)algorithm error:(NSError **)error {
} else if (self.keyLength != 128 && self.keyLength != 256) {
errorMsg = [NSString stringWithFormat:@"invalid key length for AES algorithm: %d", (int)self.keyLength];
} else {
*algorithm = kCCAlgorithmAES128;
*algorithm = kCCAlgorithmAES;
}
} else if (NSOrderedSame == [self.algorithm compare:@"DES" options:NSCaseInsensitiveSearch]) {
*algorithm = kCCAlgorithmDES;
Expand Down Expand Up @@ -255,8 +255,8 @@ - (ARTStatus *)decrypt:(NSData *)ciphertext output:(NSData *__autoreleasing *)ou
- (NSString *)cipherName {
NSString *algo = nil;
switch (self.algorithm) {
case kCCAlgorithmAES128:
algo = @"aes-128";
case kCCAlgorithmAES:
algo = @"aes";
break;
case kCCAlgorithmDES:
algo = @"des";
Expand Down