RSA
public final class RSA
Helper class for RSA tasks.
-
Generate a RSA keypair in-memory (without writing to keychain).
Declaration
Swift
@available(iOS 10.0, *) public static func generateKeyPair(size: UInt) -> (privateKey: SecKey, publicKey: SecKey)?
-
Generate a Certificate Signing Request (CSR) using the specified key pair.
Declaration
Swift
public static func generateCSR(privateKey: SecKey, publicKey: SecKey) -> SecCertificateSigningRequest