PySide6.QtNetwork.QSslEllipticCurve¶
- class QSslEllipticCurve¶
- Represents an elliptic curve for use by elliptic-curve cipher algorithms. - Details- The class - QSslEllipticCurverepresents an elliptic curve for use by elliptic-curve cipher algorithms.- Elliptic curves can be constructed from a “short name” (SN) ( - fromShortName()), and by a call to- supportedEllipticCurves().- QSslEllipticCurveinstances can be compared for equality and can be used as keys in QHash and QSet. They cannot be used as key in a QMap.- Note - This class is currently only supported in OpenSSL. - Synopsis¶- Methods¶- def - __init__()
- def - isValid()
- def - longName()
- def - __ne__()
- def - __eq__()
- def - shortName()
 - Static functions¶- def - fromLongName()
- def - fromShortName()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - __init__()¶
 - Constructs an invalid elliptic curve. - See also - static fromLongName(name)¶
- Parameters:
- name – str 
- Return type:
 
 - Returns an - QSslEllipticCurveinstance representing the named curve- name. The- nameis a long name for the curve, whose exact spelling depends on the SSL implementation.- If the given - nameis not supported, returns an invalid- QSslEllipticCurveinstance.- Note - The OpenSSL implementation of this function treats the name case-sensitively. - See also - static fromShortName(name)¶
- Parameters:
- name – str 
- Return type:
 
 - Returns an - QSslEllipticCurveinstance representing the named curve- name. The- nameis the conventional short name for the curve, as represented by RFC 4492 (for instance- secp521r1), or as NIST short names (for instance- P-256). The actual set of recognized names depends on the SSL implementation.- If the given - nameis not supported, returns an invalid- QSslEllipticCurveinstance.- Note - The OpenSSL implementation of this function treats the name case-sensitively. - See also - isTlsNamedCurve()¶
- Return type:
- bool 
 
 - Returns true if this elliptic curve is one of the named curves that can be used in the key exchange when using an elliptic curve cipher with TLS; false otherwise. - isValid()¶
- Return type:
- bool 
 
 - Returns true if this elliptic curve is a valid curve, false otherwise. - longName()¶
- Return type:
- str 
 
 - Returns the conventional long name for this curve. If this curve is invalid, returns an empty string. - See also - __ne__(rhs)¶
- Parameters:
- rhs – - QSslEllipticCurve
- Return type:
- bool 
 
 - Returns true if the curve - lhsrepresents a different curve than- rhs; false otherwise.- __eq__(rhs)¶
- Parameters:
- rhs – - QSslEllipticCurve
- Return type:
- bool 
 
 - Returns true if the curve - lhsrepresents the same curve of- rhs;- shortName()¶
- Return type:
- str 
 
 - Returns the conventional short name for this curve. If this curve is invalid, returns an empty string. - See also