init(unsafeKeySize:parameters:)

Randomly generate a new RSA private key of a given size.

RSA+BlindSigning.swift:227
iOS
13+
macOS
10.15+
Mac Catalyst
13+
tvOS
13+
visionOS
1.0+
watchOS
6+
init(unsafeKeySize keySize: _RSA.Signing.KeySize, parameters: _RSA.BlindSigning.PrivateKey<H>.Parameters = .RSABSSA_SHA384_PSS_Randomized) throws

This constructor will refuse to generate keys smaller than 1024 bits. Callers that want to enforce minimum key size requirements should validate unsafekeySize before use.