Fix build breakage from SMK.

This commit is contained in:
Matthew Chen 2018-09-25 13:16:33 -04:00
parent 3738155c81
commit 8f5e21c7cf
2 changed files with 2 additions and 1 deletions

View File

@ -393,7 +393,7 @@ class CDSBatchOperation: OWSOperation {
let initializationVector = try params.requiredBase64EncodedData(key: "iv")
let authTag = try params.requiredBase64EncodedData(key: "mac")
guard let plainText = Cryptography.decryptAESGCM(withInitializationVector: initializationVector,
guard let plainText = Cryptography.decryptAESCGM(withInitializationVector: initializationVector,
ciphertext: cipherText,
additionalAuthenticatedData: nil,
authTag: authTag,

View File

@ -16,6 +16,7 @@ typedef NS_ENUM(NSInteger, OWSErrorCode) {
OWSErrorCodeUntrustedIdentity = 25,
OWSErrorCodeFailedToSendOutgoingMessage = 30,
OWSErrorCodeAssertionFailure = 31,
OWSErrorCodeFailedToDecryptMessage = 100,
OWSErrorCodeFailedToEncryptMessage = 110,
OWSErrorCodeSignalServiceFailure = 1001,
OWSErrorCodeSignalServiceRateLimited = 1010,