QSslEllipticCurve¶
Represents an elliptic curve for use by elliptic-curve cipher algorithms. More…
Synopsis¶
Functions¶
Static functions¶
def
fromLongName
(name)def
fromShortName
(name)
Detailed Description¶
The class QSslEllipticCurve
represents 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()
.
QSslEllipticCurve
instances 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.
- class PySide6.QtNetwork.QSslEllipticCurve¶
PySide6.QtNetwork.QSslEllipticCurve(QSslEllipticCurve)
- Parameters
QSslEllipticCurve –
PySide6.QtNetwork.QSslEllipticCurve
Constructs an invalid elliptic curve.
See also
- static PySide6.QtNetwork.QSslEllipticCurve.fromLongName(name)¶
- Parameters
name – str
- Return type
Returns an QSslEllipticCurve
instance representing the named curve name
. The name
is a long name for the curve, whose exact spelling depends on the SSL implementation.
If the given name
is not supported, returns an invalid QSslEllipticCurve
instance.
Note
The OpenSSL implementation of this function treats the name case-sensitively.
See also
- static PySide6.QtNetwork.QSslEllipticCurve.fromShortName(name)¶
- Parameters
name – str
- Return type
Returns an QSslEllipticCurve
instance representing the named curve name
. The name
is 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 name
is not supported, returns an invalid QSslEllipticCurve
instance.
Note
The OpenSSL implementation of this function treats the name case-sensitively.
See also
- PySide6.QtNetwork.QSslEllipticCurve.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.
- PySide6.QtNetwork.QSslEllipticCurve.isValid()¶
- Return type
bool
Returns true if this elliptic curve is a valid curve, false otherwise.
- PySide6.QtNetwork.QSslEllipticCurve.longName()¶
- Return type
str
Returns the conventional long name for this curve. If this curve is invalid, returns an empty string.
See also
- PySide6.QtNetwork.QSslEllipticCurve.__ne__(rhs)¶
- Parameters
- Return type
bool
- PySide6.QtNetwork.QSslEllipticCurve.__eq__(rhs)¶
- Parameters
- Return type
bool
- PySide6.QtNetwork.QSslEllipticCurve.shortName()¶
- Return type
str
Returns the conventional short name for this curve. If this curve is invalid, returns an empty string.
See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.