![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Represents an elliptic curve for use by elliptic-curve cipher algorithms. More...
#include <qsslellipticcurve.h>
Public Member Functions | |
constexpr | QSslEllipticCurve () noexcept |
Constructs an invalid elliptic curve. | |
Q_NETWORK_EXPORT QString | shortName () const |
Returns the conventional short name for this curve. | |
Q_NETWORK_EXPORT QString | longName () const |
Returns the conventional long name for this curve. | |
constexpr bool | isValid () const noexcept |
Returns true if this elliptic curve is a valid curve, false otherwise. | |
Q_NETWORK_EXPORT bool | isTlsNamedCurve () const noexcept |
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. |
Static Public Member Functions | |
static Q_NETWORK_EXPORT QSslEllipticCurve | fromShortName (const QString &name) |
Returns an QSslEllipticCurve instance representing the named curve name. | |
static Q_NETWORK_EXPORT QSslEllipticCurve | fromLongName (const QString &name) |
Returns an QSslEllipticCurve instance representing the named curve name. |
Friends | |
class | QSslContext |
class | QSslSocketPrivate |
constexpr bool | operator== (QSslEllipticCurve lhs, QSslEllipticCurve rhs) noexcept |
constexpr bool | operator!= (QSslEllipticCurve lhs, QSslEllipticCurve rhs) noexcept |
constexpr size_t | qHash (QSslEllipticCurve curve, size_t seed=0) |
Related Symbols | |
(Note that these are not member symbols.) | |
QDebug | operator<< (QDebug debug, QSslEllipticCurve curve) |
Represents an elliptic curve for use by elliptic-curve cipher algorithms.
\reentrant
\inmodule QtNetwork
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 QSslConfiguration::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.
Definition at line 19 of file qsslellipticcurve.h.
|
inlineconstexprnoexcept |
Constructs an invalid elliptic curve.
Definition at line 21 of file qsslellipticcurve.h.
|
static |
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.
Definition at line 84 of file qsslellipticcurve.cpp.
|
static |
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.
Definition at line 61 of file qsslellipticcurve.cpp.
|
noexcept |
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.
Definition at line 139 of file qsslellipticcurve.cpp.
|
inlineconstexprnoexcept |
Returns true if this elliptic curve is a valid curve, false otherwise.
Definition at line 32 of file qsslellipticcurve.h.
|
nodiscard |
Returns the conventional long name for this curve.
If this curve is invalid, returns an empty string.
Definition at line 118 of file qsslellipticcurve.cpp.
|
nodiscard |
Returns the conventional short name for this curve.
If this curve is invalid, returns an empty string.
Definition at line 102 of file qsslellipticcurve.cpp.
|
friend |
Returns true if the curve lhs represents a different curve than rhs; false otherwise.
Definition at line 44 of file qsslellipticcurve.h.
References operator==.
|
Writes the elliptic curve curve into the debug object debug for debugging purposes.
Definition at line 179 of file qsslellipticcurve.cpp.
|
friend |
Returns true if the curve lhs represents the same curve of rhs;
Definition at line 42 of file qsslellipticcurve.h.
Referenced by operator!=.
|
friend |
Definition at line 54 of file qsslellipticcurve.h.
|
friend |
Definition at line 48 of file qsslellipticcurve.h.
|
friend |
Definition at line 49 of file qsslellipticcurve.h.