init(n:e:d:p:q:)

Construct an RSA private key with the specified parameters.

RSA.swift:618
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
init(n: some ContiguousBytes, e: some ContiguousBytes, d: some ContiguousBytes, p: some ContiguousBytes, q: some ContiguousBytes) throws

Only the BoringSSL backend provides APIs to create a key from its parameters so we first create a BoringSSL key, and then pass it to the platform-specific initializer that accepts a BoringSSL key.

On Darwin platforms, this will serialize it to PEM format, and then construct a platform-specific key from the PEM representation.