another.im-ios/ConversationsClassic/AppData/Services/AESGSMEngine.swift
2024-08-27 15:00:39 +02:00

19 lines
558 B
Swift

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
}
}