Explorar o código

Update access level of RSA(n:e:d:p:q:) initializer to public

Zsombor Szabo %!s(int64=2) %!d(string=hai) anos
pai
achega
a097b752bb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/CryptoSwift/RSA/RSA.swift

+ 1 - 1
Sources/CryptoSwift/RSA/RSA.swift

@@ -119,7 +119,7 @@ public final class RSA: DERCodable {
   ///   - d: The RSA Private Exponent
   ///   - p: The 1st Prime used to generate the Private Exponent
   ///   - q: The 2nd Prime used to generate the Private Exponent
-  private init(n: BigUInteger, e: BigUInteger, d: BigUInteger, p: BigUInteger, q: BigUInteger) {
+  public init(n: BigUInteger, e: BigUInteger, d: BigUInteger, p: BigUInteger, q: BigUInteger) {
     self.n = n
     self.e = e
     self.d = d