Skip to content

Initializer

init(backing:)

Creates an RSA.PrivateKey from a SwiftCrypto private key.
init(backing: _RSA.Signing.PrivateKey) throws

Parameters

backing

The SwiftCrypto private key.

Discussion

Throws

RSAError/keySizeTooSmall if the key size is less than 2048 bits.