Skip to content

Commit 46eca5f

Browse files
authored
Fix typo in documentation for RSA private key constructors (#362)
Fixed the documentation comment for the constructors * `init(unsafePEMRepresentation:)` * `init(unsafeDERRepresentation:)` of **`_RSA.Signing.PrivateKey`** which said "*public* key" instead of "*private* key". ### Modifications: No code changes.
1 parent 3ef6559 commit 46eca5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/_CryptoExtras/RSA/RSA.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ extension _RSA.Signing {
179179
}
180180
}
181181

182-
/// Construct an RSA public key from a PEM representation.
182+
/// Construct an RSA private key from a PEM representation.
183183
///
184184
/// This constructor supports key sizes of 1024 bits or more. Users should validate that key sizes are appropriate
185185
/// for their use-case.
@@ -204,7 +204,7 @@ extension _RSA.Signing {
204204
}
205205
}
206206

207-
/// Construct an RSA public key from a DER representation.
207+
/// Construct an RSA private key from a DER representation.
208208
///
209209
/// This constructor supports key sizes of 1024 bits or more. Users should validate that key sizes are appropriate
210210
/// for their use-case.

0 commit comments

Comments
 (0)