another.im-ios/Monal/Classes/EncryptedPayload.swift

28 lines
544 B
Swift
Raw Permalink Normal View History

2024-11-18 14:53:52 +00:00
//
// EncryptedPayload.swift
// MLCrypto
//
// Created by Anurodh Pokharel on 1/7/20.
// Copyright © 2020 Anurodh Pokharel. All rights reserved.
//
import UIKit
@objcMembers
public class EncryptedPayload: NSObject {
public var body: Data?
public var iv : Data?
public var key: Data?
public var tag: Data?
public var combined: Data?
@objc
public func updateValues(body:Data, iv: Data, key: Data, tag: Data)
{
self.body=body
self.iv=iv
self.key=key
self.tag=tag
}
}