File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Sources/PubNub/Helpers/Crypto/Cryptors Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ public struct EncryptedData {
17
17
let metadata : Data
18
18
/// Resulting encrypted `Data`
19
19
let data : Data
20
+
21
+ public init ( metadata: Data , data: Data ) {
22
+ self . metadata = metadata
23
+ self . data = data
24
+ }
20
25
}
21
26
22
27
/// Represents the result of encrypted `InputStream`
@@ -27,6 +32,12 @@ public struct EncryptedStreamData {
27
32
let contentLength : Int
28
33
/// Metadata (if any) used while encrypting
29
34
let metadata : Data
35
+
36
+ public init ( stream: InputStream , contentLength: Int , metadata: Data ) {
37
+ self . stream = stream
38
+ self . contentLength = contentLength
39
+ self . metadata = metadata
40
+ }
30
41
}
31
42
32
43
/// Typealias for uniquely identifying applied encryption
You can’t perform that action at this time.
0 commit comments