Instance Propertyswift-crypto 3.12.2_CryptoExtras
pkcs8PEMRepresentation
RSA+BlindSigning.swift:243- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
var pkcs8PEMRepresentation: String { get }
var pkcs8PEMRepresentation: String { get }
s13_CryptoExtras4_RSAO12BlindSigningO10PrivateKeyV22pkcs8PEMRepresentationSSvp
What are these?50LGJ
import _CryptoExtras
Provides additional cryptographic APIs that are not available in CryptoKit (and therefore the core Crypto library).
struct PrivateKey<H> where H : HashFunction
enum _RSA
Types associated with the RSA algorithm
enum BlindSigning
@frozen struct String
A Unicode string value that is a collection of characters.
init<Bytes>(derRepresentation: Bytes, parameters: Parameters = .RSABSSA_SHA384_PSS_Randomized) throws where Bytes : DataProtocol
Construct an RSA private key from a DER representation.
init(keySize: _RSA.Signing.KeySize, parameters: Parameters = .RSABSSA_SHA384_PSS_Randomized) throws
Randomly generate a new RSA private key of a given size.
init(n: some ContiguousBytes, e: some ContiguousBytes, d: some ContiguousBytes, p: some ContiguousBytes, q: some ContiguousBytes, parameters: Parameters) throws
Construct an RSA private key with the specified parameters.
init(pemRepresentation: String, parameters: Parameters = .RSABSSA_SHA384_PSS_Randomized) throws
Construct an RSA private key from a PEM representation.
init<Bytes>(unsafeDERRepresentation derRepresentation: Bytes, parameters: Parameters = .RSABSSA_SHA384_PSS_Randomized) throws where Bytes : DataProtocol
Construct an RSA private key from a DER representation.
init(unsafeKeySize keySize: _RSA.Signing.KeySize, parameters: Parameters = .RSABSSA_SHA384_PSS_Randomized) throws
Randomly generate a new RSA private key of a given size.
init(unsafePEMRepresentation pemRepresentation: String, parameters: Parameters = .RSABSSA_SHA384_PSS_Randomized) throws
Construct an RSA private key from a PEM representation.
static func _createFromNumbers(n: some ContiguousBytes, e: some ContiguousBytes, d: some ContiguousBytes, parameters: Parameters) throws -> _RSA.BlindSigning.PrivateKey<H>
Construct a private key with the specified parameters.
var derRepresentation: Data { get }
var keySizeInBits: Int { get }
var pemRepresentation: String { get }
var publicKey: _RSA.BlindSigning.PublicKey<H> { get }
typealias Parameters = _RSA.BlindSigning.Parameters<H>