QKnxCurve25519PrivateKey Class

The QKnxCurve25519PrivateKey class represents the elliptic-curve private key to be used with the elliptic curve Diffie-Hellman (ECDH) key agreement scheme. More...

Header: #include <QKnxCurve25519PrivateKey>
qmake: QT += knx
Since: Qt 5.12

Public Functions

QKnxCurve25519PrivateKey()
QKnxCurve25519PrivateKey(const QKnxCurve25519PrivateKey &other)
~QKnxCurve25519PrivateKey()
QKnxByteArray bytes() const
bool isNull() const
bool isValid() const
QKnxCurve25519PrivateKey &operator=(const QKnxCurve25519PrivateKey &other)

Static Public Members

QKnxCurve25519PrivateKey fromBytes(const QKnxByteArray &data, quint16 index = 0)

Detailed Description

The QKnxCurve25519PrivateKey class represents the elliptic-curve private key to be used with the elliptic curve Diffie-Hellman (ECDH) key agreement scheme.

This class is part of the Qt KNX module and currently available as a Technology Preview, and therefore the API and functionality provided by the class may be subject to change at any time without prior notice.

Member Function Documentation

QKnxCurve25519PrivateKey::QKnxCurve25519PrivateKey()

Constructs a valid private key if OpenSSL is available and no error occurs.

QKnxCurve25519PrivateKey::QKnxCurve25519PrivateKey(const QKnxCurve25519PrivateKey &other)

Constructs a copy of other.

QKnxCurve25519PrivateKey::~QKnxCurve25519PrivateKey()

Destroys the private key and releases all allocated resources.

QKnxByteArray QKnxCurve25519PrivateKey::bytes() const

Returns an array of bytes that represent the Curve25519 raw private key.

[static] QKnxCurve25519PrivateKey QKnxCurve25519PrivateKey::fromBytes(const QKnxByteArray &data, quint16 index = 0)

Constructs the private key from the byte array data starting at position index inside the array if OpenSSL is available and no error occurs; otherwise returns a default-constructed key which can be invalid.

bool QKnxCurve25519PrivateKey::isNull() const

Returns true if this is a default constructed private key; otherwise returns false. A private key is considered null if it contains no initialized values.

bool QKnxCurve25519PrivateKey::isValid() const

Returns true if OpenSSL is available and if the private key contains initialized values, otherwise returns false.

QKnxCurve25519PrivateKey &QKnxCurve25519PrivateKey::operator=(const QKnxCurve25519PrivateKey &other)

Assigns the specified other to this object.

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