diff --git a/Source/ARTCrypto.m b/Source/ARTCrypto.m index 4b947d5ee..8e7bd7968 100644 --- a/Source/ARTCrypto.m +++ b/Source/ARTCrypto.m @@ -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; @@ -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";