DiffieHellmanParameters

public class DiffieHellmanParameters

Common Diffie-Hellman parameters

  • p

    Undocumented

    Declaration

    Swift

    public var p: UIntBig
  • g

    Undocumented

    Declaration

    Swift

    public var g: UIntBig
  • Undocumented

    Declaration

    Swift

    public init?(p pHexEncodedString: String, g gHexEncodedString: String)
  • OpenSSL generated safe prime : 128-bits

    Declaration

    Swift

    public static let random128: DiffieHellmanParameters
  • OpenSSL generated safe prime : 256-bits

    Declaration

    Swift

    public static let random256: DiffieHellmanParameters
  • OpenSSL generated safe prime : 512-bits

    Declaration

    Swift

    public static let random512: DiffieHellmanParameters
  • RFC 2409 MODP Group 1 : 768-bits : First Oakley Group : Generator = 2

    Declaration

    Swift

    public static let modpGroup1: DiffieHellmanParameters
  • RFC 2409 MODP Group 2 : 1024-bits : Second Oakley Group : Generator = 2

    Declaration

    Swift

    public static let modpGroup2: DiffieHellmanParameters
  • RFC3526 MODP Group 5 : 1536-bits : Generator = 2

    Declaration

    Swift

    public static let modpGroup5: DiffieHellmanParameters
  • RFC3526 MODP Group 14 : 2048-bits : Generator = 2 Satisfies NCSC Foundation Profile for TLS standard

    Declaration

    Swift

    public static let modpGroup14: DiffieHellmanParameters