_createFromNumbers(n:e:d:)

    Construct a private key with the specified parameters.

    RSA.swift:631
    static func _createFromNumbers(n: some ContiguousBytes, e: some ContiguousBytes, d: some ContiguousBytes) throws -> _RSA.Encryption.PrivateKey

    Parameters

    n

    modulus of the key

    e

    public exponent of the key

    d

    private exponent of the key

    The use of this API is strongly discouraged for performance reasons, as it requires the factorization of the modulus, which is resource-intensive. It is recommended to use the other initializers to construct a private key, unless you have only the modulus, public exponent, and private exponent to construct the key.

    Other members in extension

    Type members

    Instance members