another.im-ios/ConversationsClassic/AppData/Services/AESGSMEngine.swift

19 lines
558 B
Swift
Raw Normal View History

2024-08-27 13:00:39 +00:00
import CryptoKit
import Foundation
import MartinOMEMO
final class AESGSMEngine: AES_GCM_Engine {
static let shared = AESGSMEngine()
private init() {}
func encrypt(iv: Data, key: Data, message: Data, output: UnsafeMutablePointer<Data>?, tag: UnsafeMutablePointer<Data>?) -> Bool {
print(iv, key, message, output, tag)
return false
}
func decrypt(iv: Data, key: Data, encoded: Data, auth tag: Data?, output: UnsafeMutablePointer<Data>?) -> Bool {
print(iv, key, encoded, tag, output)
return false
}
}