Initializerswift-crypto 3.12.2_CryptoExtras
init(unsafeDERRepresentation:parameters:)
Construct an RSA private key from a DER representation.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
init<Bytes>(unsafeDERRepresentation derRepresentation: Bytes, parameters: Parameters = .RSABSSA_SHA384_PSS_Randomized) throws where Bytes : DataProtocol
This constructor supports key sizes of 1024 bits or more. Users should validate that key sizes are appropriate for their use-case.