import CryptoSwift enum DecryptionUtilities { /// - Note: Sync. Don't call from the main thread. internal static func decrypt(_ ivAndCiphertext: Data, usingAESGCMWithSymmetricKey symmetricKey: Data) throws -> Data { if Thread.isMainThread { #if DEBUG preconditionFailure("It's illegal to call decrypt(_:usingAESGCMWithSymmetricKey:) from the main thread.") #endif } let iv = ivAndCiphertext[0..