CopperSpice API
1.9.2
|
Represents an elliptic curve for use by elliptic-curve cipher algorithms. More...
Public Methods | |
constexpr | QSslEllipticCurve () |
bool | isTlsNamedCurve () const |
constexpr bool | isValid () const |
QString | longName () const |
QString | shortName () const |
Static Public Methods | |
static QSslEllipticCurve | fromLongName (const QString &name) |
static QSslEllipticCurve | fromShortName (const QString &name) |
Friends | |
constexpr friend bool | operator== (QSslEllipticCurve lhs, QSslEllipticCurve rhs) |
uint | qHash (QSslEllipticCurve curve, uint seed) |
Related Functions | |
These are not member functions | |
bool | operator!= (QSslEllipticCurve lhs, QSslEllipticCurve rhs) |
QDebug | operator<< (QDebug debug, QSslEllipticCurve curve) |
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 can not be used as key in a QMap since they can not be compared for less than.
|
inlineconstexpr |
Constructs an invalid elliptic curve.
|
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.
|
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 or as NIST short names. The actual set of recognized names depends on the SSL implementation.
If the given name is not supported returns an invalid QSslEllipticCurve instance.
bool QSslEllipticCurve::isTlsNamedCurve | ( | ) | const |
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.
|
inlineconstexpr |
Returns true if this elliptic curve is a valid curve, false otherwise.
|
nodiscard |
Returns the conventional long name for this curve. If this curve is invalid, returns an empty string.
|
nodiscard |
Returns the conventional short name for this curve. If this curve is invalid, returns an empty string.
|
related |
Returns true if the curve lhs represents a different curve than rhs, false otherwise.
Writes the given curve to the debug stream.
|
friend |
Returns true if the curve lhs represents the same curve of rhs;