QSslEllipticCurve Class
楕円曲線暗号アルゴリズムで使われる楕円曲線を表す。詳細...
ヘッダ | #include <QSslEllipticCurve> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
qmake: | QT += network |
- 継承メンバを含む全メンバのリスト
- QSslEllipticCurve はNetwork Programming API に含まれています。
注意:このクラスの関数はすべてリエントラントです。
パブリック関数
QSslEllipticCurve() | |
bool | isTlsNamedCurve() const |
bool | isValid() const |
QString | longName() const |
QString | shortName() const |
静的パブリックメンバ
QSslEllipticCurve | fromLongName(const QString &name) |
QSslEllipticCurve | fromShortName(const QString &name) |
関連する非メンバー
bool | operator!=(QSslEllipticCurve lhs, QSslEllipticCurve rhs) |
QDebug | operator<<(QDebug debug, QSslEllipticCurve curve) |
bool | operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs) |
詳細説明
QSslEllipticCurve クラスは、楕円曲線暗号アルゴリズムで使用する楕円曲線を表します。
楕円曲線は、"短い名前" (SN) (fromShortName()) とQSslConfiguration::supportedEllipticCurves() の呼び出しによって構築することができます。
QSslEllipticCurveインスタンスは、等価性を比較することができ、QHash およびQSet の鍵として使用することができる。QMap のキーとして使用することはできない。
注意: このクラスは現在 OpenSSL でのみサポートされています。
メンバ関数のドキュメント
[constexpr noexcept]
QSslEllipticCurve::QSslEllipticCurve()
無効な楕円曲線を構築する。
isValid() およびQSslConfiguration::supportedEllipticCurves()も参照 。
[static]
QSslEllipticCurve QSslEllipticCurve::fromLongName(const QString &name)
指定された曲線name を表すQSslEllipticCurve インスタンスを返します。name は曲線の長い名前で、正確な綴りは SSL の実装に依存します。
指定されたname がサポートされていない場合は、無効なQSslEllipticCurve インスタンスを返します。
注意: この関数の OpenSSL 実装は、大文字小文字を区別して名前を扱います。
longName()も参照してください 。
[static]
QSslEllipticCurve QSslEllipticCurve::fromShortName(const QString &name)
名前付き曲線name を表すQSslEllipticCurve インスタンスを返す。name は RFC 4492 (例えばsecp521r1
)、または NIST の短縮名 (例えばP-256
)で表される、曲線の従来の短縮名です。実際に認識される名前のセットはSSLの実装に依存します。
指定されたname がサポートされていない場合は、無効なQSslEllipticCurve インスタンスを返します。
注意: OpenSSL の実装では、大文字小文字を区別して名前を扱います。
shortName()も参照してください 。
[noexcept]
bool QSslEllipticCurve::isTlsNamedCurve() const
この楕円曲線が、TLSで楕円曲線暗号を使うときに鍵交換に使える名前付き曲線の1つであればtrueを返し、そうでなければfalseを返す。
[constexpr noexcept]
bool QSslEllipticCurve::isValid() const
この楕円曲線が有効な曲線であれば真を、そうでなければ偽を返します。
QString QSslEllipticCurve::longName() const
この曲線の従来の長い名前を返す。この曲線が無効な場合は、空の文字列を返します。
shortName()も参照 。
QString QSslEllipticCurve::shortName() const
この曲線の従来の短い名前を返す。この曲線が無効な場合は、空の文字列を返します。
longName()も参照 。
関連する非会員
[constexpr noexcept]
bool operator!=(QSslEllipticCurve lhs, QSslEllipticCurve rhs)
曲線lhs がrhs と異なる曲線を表している場合は true を返し、そうでない場合は false を返す。
QDebug operator<<(QDebug debug, QSslEllipticCurve curve)
デバッグ用に楕円曲線curve をデバッグオブジェクトdebug に書き込む。
デバッグのテクニックも参照 。
[constexpr noexcept]
bool operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs)
曲線lhs がrhs と同じ曲線を表す場合に真を返す;
© 2025 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.