Structure
Insecure.RSA.PrivateKey
A structure representing a private RSA key.
struct PrivateKey
Overview
In JWT, RSA private keys are used to sign JWTs. They consist of a modulus, an exponent, and a private exponent.
Topics
Operators
==(_:_:)Returns a Boolean value indicating whether two values are equal.
Initializers
init(backing:)Creates anRSA.PrivateKeyfrom a SwiftCrypto private key.init(modulus:exponent:privateExponent:)Initializes a newRSA.PrivateKeyinstance with modulus, exponent, and private exponent.init(modulus:exponent:privateExponent:prime1:prime2:)init(pem:)Creates anRSA.PrivateKeyfrom private key PEM file in Data format.
Instance Properties
derRepresentationExports the current private key as a DER encoded data.pemRepresentationExports the current private key as a PEM encoded string.publicKey
Relationships
Conforms To
RSAKeySwift.EquatableSwift.SendableSwift.SendableMetatype