From 4b337f1bcd4adc00545d0dba07220d4a60e4ca6c Mon Sep 17 00:00:00 2001 From: Bill Abt Date: Tue, 13 Feb 2018 10:03:49 -0500 Subject: [PATCH] Make the initializers for creating EncryptedData and SignedData public. --- Sources/CryptorRSA/CryptorRSA.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/CryptorRSA/CryptorRSA.swift b/Sources/CryptorRSA/CryptorRSA.swift index 0d05ea5..381f5a9 100644 --- a/Sources/CryptorRSA/CryptorRSA.swift +++ b/Sources/CryptorRSA/CryptorRSA.swift @@ -728,7 +728,7 @@ public class CryptorRSA { /// /// - Returns: Newly initialized EncryptedData`. /// - internal init(with data: Data) { + public init(with data: Data) { super.init(with: data, type: .encryptedType) } @@ -741,7 +741,7 @@ public class CryptorRSA { /// /// - Returns: Newly initialized `RSAData`. /// - internal override init(withBase64 base64String: String) throws { + public override init(withBase64 base64String: String) throws { try super.init(withBase64: base64String) } @@ -764,7 +764,7 @@ public class CryptorRSA { /// /// - Returns: Newly initialized `SignedData`. /// - internal init(with data: Data) { + public init(with data: Data) { super.init(with: data, type: .signedType) }