Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qsslellipticcurve.h
Go to the documentation of this file.
1
// Copyright (C) 2014 Governikus GmbH & Co. KG.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QSSLELLIPTICCURVE_H
6
#
define
QSSLELLIPTICCURVE_H
7
8
#
include
<
QtNetwork
/
qtnetworkglobal
.
h
>
9
#
include
<
QtCore
/
QString
>
10
#
include
<
QtCore
/
QMetaType
>
11
#
include
<
QtCore
/
qhashfunctions
.
h
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QSslEllipticCurve;
16
// qHash is a friend, but we can't use default arguments for friends (ยง8.3.6.4)
17
constexpr
size_t
qHash
(
QSslEllipticCurve
curve, size_t seed = 0)
noexcept
;
18
19
class
QSslEllipticCurve
{
20
public
:
21
constexpr
QSslEllipticCurve
()
noexcept
22
: id(0)
23
{
24
}
25
26
Q_NETWORK_EXPORT
static
QSslEllipticCurve
fromShortName
(
const
QString
&
name
);
27
Q_NETWORK_EXPORT
static
QSslEllipticCurve
fromLongName
(
const
QString
&
name
);
28
29
[[nodiscard]] Q_NETWORK_EXPORT QString
shortName
()
const
;
30
[[
nodiscard
]]
Q_NETWORK_EXPORT
QString
longName
()
const
;
31
32
constexpr
bool
isValid
()
const
noexcept
33
{
34
return
id != 0;
35
}
36
37
Q_NETWORK_EXPORT
bool
isTlsNamedCurve
()
const
noexcept
;
38
39
private
:
40
int
id;
41
42
friend
constexpr
bool
operator
==(
QSslEllipticCurve
lhs,
QSslEllipticCurve
rhs)
noexcept
43
{
return
lhs.id == rhs.id; }
44
friend
constexpr
bool
operator
!=(
QSslEllipticCurve
lhs,
QSslEllipticCurve
rhs)
noexcept
45
{
return
!(lhs
==
rhs); }
46
friend
constexpr
size_t
qHash
(
QSslEllipticCurve
curve, size_t seed)
noexcept
;
47
48
friend
class
QSslContext
;
49
friend
class
QSslSocketPrivate;
50
};
51
52
Q_DECLARE_TYPEINFO
(
QSslEllipticCurve
,
Q_PRIMITIVE_TYPE
);
53
54
constexpr
inline
size_t
qHash
(
QSslEllipticCurve
curve, size_t seed)
noexcept
55
{
return
qHash(curve.id, seed); }
56
57
#
ifndef
QT_NO_DEBUG_STREAM
58
class
QDebug;
59
Q_NETWORK_EXPORT
QDebug
operator<<(QDebug debug, QSslEllipticCurve curve);
60
#
endif
61
62
QT_END_NAMESPACE
63
64
QT_DECL_METATYPE_EXTERN(QSslEllipticCurve, Q_NETWORK_EXPORT)
65
66
#
endif
// QSSLELLIPTICCURVE_H
QDtlsClientVerifierPrivate
Definition
qdtls_p.h:31
QDtlsClientVerifierPrivate::QDtlsClientVerifierPrivate
QDtlsClientVerifierPrivate()
Definition
qdtls.cpp:335
QDtlsClientVerifierPrivate::~QDtlsClientVerifierPrivate
~QDtlsClientVerifierPrivate()
QDtlsPrivate
Definition
qdtls_p.h:39
QDtlsPrivate::QDtlsPrivate
QDtlsPrivate()
QDtlsPrivate::~QDtlsPrivate
~QDtlsPrivate()
QOcspResponsePrivate
Definition
qocspresponse_p.h:30
QOcspResponse
This class represents Online Certificate Status Protocol response.
Definition
qocspresponse.h:50
QSslCertificatePrivate
Definition
qsslcertificate_p.h:33
QSslCertificate
The QSslCertificate class provides a convenient API for an X509 certificate.
Definition
qsslcertificate.h:38
QSslCipher
The QSslCipher class represents an SSL cryptographic cipher.
Definition
qsslcipher.h:23
QSslContext
Definition
qsslcontext_openssl_p.h:32
QSslEllipticCurve
Represents an elliptic curve for use by elliptic-curve cipher algorithms.
Definition
qsslellipticcurve.h:19
QSslEllipticCurve::QSslEllipticCurve
constexpr QSslEllipticCurve() noexcept
Constructs an invalid elliptic curve.
Definition
qsslellipticcurve.h:21
QSslEllipticCurve::isValid
constexpr bool isValid() const noexcept
Returns true if this elliptic curve is a valid curve, false otherwise.
Definition
qsslellipticcurve.h:32
QSslEllipticCurve::operator!=
friend constexpr bool operator!=(QSslEllipticCurve lhs, QSslEllipticCurve rhs) noexcept
Definition
qsslellipticcurve.h:44
QSslEllipticCurve::isTlsNamedCurve
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 w...
Definition
qsslellipticcurve.cpp:139
QSslEllipticCurve::operator==
friend constexpr bool operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs) noexcept
Definition
qsslellipticcurve.h:42
QSslKeyPrivate
Definition
qsslkey_p.h:34
QSslKey
The QSslKey class provides an interface for private and public keys.
Definition
qsslkey.h:24
QSslKeyingMaterial
Describes exported keying material derived from a TLS session.
Definition
qsslkeyingmaterial.h:29
QSslPreSharedKeyAuthenticator
The QSslPreSharedKeyAuthenticator class provides authentication data for pre shared keys (PSK) cipher...
Definition
qsslpresharedkeyauthenticator.h:19
QSslSocketPrivate
Definition
qsslsocket_p.h:43
QSslSocket
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
Definition
qsslsocket.h:30
QTlsPrivate::TlsCryptographOpenSSL
Definition
qtls_openssl_p.h:38
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QTlsPrivate
Namespace containing onternal types that TLS backends implement.
Definition
qocspresponse.h:41
operator<<
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition
qdir.cpp:2620
msgUnsupportedMulticastAddress
static QT_BEGIN_NAMESPACE QString msgUnsupportedMulticastAddress()
Definition
qdtls.cpp:304
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(liburing)
QOcspRevocationReason
QOcspRevocationReason
Definition
qocspresponse.h:29
QOcspRevocationReason::RemoveFromCRL
@ RemoveFromCRL
Definition
qocspresponse.h:38
QOcspRevocationReason::AffiliationChanged
@ AffiliationChanged
Definition
qocspresponse.h:34
QOcspRevocationReason::CertificateHold
@ CertificateHold
Definition
qocspresponse.h:37
QOcspRevocationReason::CACompromise
@ CACompromise
Definition
qocspresponse.h:33
QOcspRevocationReason::None
@ None
Definition
qocspresponse.h:30
QOcspRevocationReason::Unspecified
@ Unspecified
Definition
qocspresponse.h:31
QOcspRevocationReason::CessationOfOperation
@ CessationOfOperation
Definition
qocspresponse.h:36
QOcspRevocationReason::KeyCompromise
@ KeyCompromise
Definition
qocspresponse.h:32
QOcspRevocationReason::Superseded
@ Superseded
Definition
qocspresponse.h:35
qHash
constexpr size_t qHash(QSslEllipticCurve curve, size_t seed=0) noexcept
Definition
qsslellipticcurve.h:54
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(QSslEllipticCurve, Q_PRIMITIVE_TYPE)
qtbase
src
network
ssl
qsslellipticcurve.h
Generated on
for Qt by
1.18.0