QKnxCurve25519PublicKey Class

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

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

Public Functions

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

Static Public Members

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

Detailed Description

The QKnxCurve25519PublicKey class represents the elliptic-curve public 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

QKnxCurve25519PublicKey::QKnxCurve25519PublicKey()

Constructs an empty invalid public key.

QKnxCurve25519PublicKey::QKnxCurve25519PublicKey(const QKnxCurve25519PrivateKey &key)

Creates a new public key with the given private key key.

QKnxCurve25519PublicKey::QKnxCurve25519PublicKey(const QKnxCurve25519PublicKey &other)

Constructs a copy of other.

QKnxCurve25519PublicKey::~QKnxCurve25519PublicKey()

Destroys the public key and releases all allocated resources.

QKnxByteArray QKnxCurve25519PublicKey::bytes() const

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

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

Constructs the public 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 QKnxCurve25519PublicKey::isNull() const

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

bool QKnxCurve25519PublicKey::isValid() const

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

QKnxCurve25519PublicKey &QKnxCurve25519PublicKey::operator=(const QKnxCurve25519PublicKey &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.