SteamEncryptedAppTicket

Swift
public struct SteamEncryptedAppTicket: Sendable

Wrap up the SteamEncryptedAppTicket functions.

See Encrypted Application Tickets


Topics

static var symmetricKeyLen: Int

Expected length in bytes of the encryption key

Declaration
Swift
public static let symmetricKeyLen: Int

init?(encryptedBytes: [UInt8], key: [UInt8])

Using the secret key, attempt to decrypt an encrypted app ticket previously returned by ISteamUser::GetEncryptedAppTicket().

Returns nil if the Steam API fails or the key isn’t long enough.

Steamworks SteamEncryptedAppTicket_BDecryptTicket().

Declaration
Swift
public init?(encryptedBytes: [UInt8], key: [UInt8])

func isFor(appID: AppID) -> Bool

Steamworks SteamEncryptedAppTicket_BIsTicketForApp()

Declaration
Swift
public func isFor(appID: AppID) -> Bool

var issueTime: Steamworks.RTime32

Steamworks SteamEncryptedAppTicket_GetTicketIssueTime()

Declaration
Swift
public var issueTime: Steamworks.RTime32 { get }

var steamID: SteamID

Steamworks SteamEncryptedAppTicket_GetTicketSteamID()

Declaration
Swift
public var steamID: SteamID { get }

var appID: AppID

Steamworks SteamEncryptedAppTicket_GetTicketAppID()

Declaration
Swift
public var appID: AppID { get }

func userOwns(app: AppID) -> Bool

Steamworks SteamEncryptedAppTicket_BUserOwnsAppInTicket()

Declaration
Swift
public func userOwns(app: AppID) -> Bool

var userIsVacBanned: Bool

Steamworks SteamEncryptedAppTicket_BUserIsVacBanned()

Declaration
Swift
public var userIsVacBanned: Bool { get }

var userVariableData: [UInt8]?

Steamworks SteamEncryptedAppTicket_GetUserVariableData()

Declaration
Swift
public var userVariableData: [UInt8]? { get }