Skip to content

Commit

Permalink
fix(crypto): fix encrypted structs fields visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
parfeon committed Jul 21, 2024
1 parent cda46f3 commit 38c3e68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/PubNub/Helpers/Crypto/Cryptors/Cryptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import Foundation
/// Represents the result of encrypted `Data`
public struct EncryptedData {
/// Metadata (if any) used while encrypting
let metadata: Data
public let metadata: Data
/// Resulting encrypted `Data`
let data: Data
public let data: Data

public init(metadata: Data, data: Data) {
self.metadata = metadata
Expand All @@ -27,11 +27,11 @@ public struct EncryptedData {
/// Represents the result of encrypted `InputStream`
public struct EncryptedStreamData {
/// Encrypted stream you can read from
let stream: InputStream
public let stream: InputStream
/// Content length of encrypted stream
let contentLength: Int
public let contentLength: Int
/// Metadata (if any) used while encrypting
let metadata: Data
public let metadata: Data

public init(stream: InputStream, contentLength: Int, metadata: Data) {
self.stream = stream
Expand Down

0 comments on commit 38c3e68

Please sign in to comment.