19 lines
558 B
Swift
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
|
||
|
}
|
||
|
}
|