KeySize

public struct KeySize

Denotes the size of the RSA key.

  • A 1024 bit RSA key. Not recommended since this may become breakable in the near future.

    Declaration

    Swift

    public static let bits1024: CryptorRSA.RSAKey.KeySize
  • A 2048 bit RSA key. Recommended if security will not be required beyond 2030.

    Declaration

    Swift

    public static let bits2048: CryptorRSA.RSAKey.KeySize
  • A 3072 bit RSA key. Recommended if security is required beyond 2030.

    Declaration

    Swift

    public static let bits3072: CryptorRSA.RSAKey.KeySize
  • A 4096 bit RSA key.

    Declaration

    Swift

    public static let bits4096: CryptorRSA.RSAKey.KeySize