From 46eca5f54b62e9ced10fa38c85d6aaa70f3aaed5 Mon Sep 17 00:00:00 2001 From: YourMJK <37852512+YourMJK@users.noreply.github.com> Date: Mon, 16 Jun 2025 09:44:08 +0200 Subject: [PATCH] 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. --- Sources/_CryptoExtras/RSA/RSA.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/_CryptoExtras/RSA/RSA.swift b/Sources/_CryptoExtras/RSA/RSA.swift index df6a5876..c0acdbb4 100644 --- a/Sources/_CryptoExtras/RSA/RSA.swift +++ b/Sources/_CryptoExtras/RSA/RSA.swift @@ -179,7 +179,7 @@ extension _RSA.Signing { } } - /// Construct an RSA public key from a PEM representation. + /// Construct an RSA private key from a PEM representation. /// /// This constructor supports key sizes of 1024 bits or more. Users should validate that key sizes are appropriate /// for their use-case. @@ -204,7 +204,7 @@ extension _RSA.Signing { } } - /// Construct an RSA public key from a DER representation. + /// Construct an RSA private key from a DER representation. /// /// This constructor supports key sizes of 1024 bits or more. Users should validate that key sizes are appropriate /// for their use-case.