이 페이지에서

QSslEllipticCurve Class

타원 곡선 암호 알고리즘에서 사용되는 타원 곡선을 나타냅니다. 더 보기...

헤더: #include <QSslEllipticCurve>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

참고: 이 클래스의 모든 함수는 재입력 가능합니다.

공개 함수

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와 함께 타원 곡선 암호를 사용할 때 키 교환에 활용될 수 있는 지정된 곡선 중 하나일 경우 true를 반환하고, 그렇지 않은 경우 false를 반환합니다.

[constexpr noexcept] bool QSslEllipticCurve::isValid() const

이 타원 곡선이 유효한 곡선인 경우 true를 반환하고, 그렇지 않은 경우 false를 반환합니다.

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 의 곡선과 동일한 경우 true를 반환합니다.

© 2026 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.