Skip to content

PythonQt.QtCore.QMessageAuthenticationCode · declarations 001

Back to PythonQt.QtCore.QMessageAuthenticationCode

addData

addData(data: Any, length: Any) -> bool

X.addData(data, length) -> bool

Supplemental documentation: Qt 5 reference:

void QMessageAuthenticationCode::addData(const char *data, int length)

Adds the first length chars of data to the message.

void QMessageAuthenticationCode::addData(const QByteArray \&data)

This function overloads addData().

bool QMessageAuthenticationCode::addData(QIODevice *device)

Reads the data from the open QIODevice device until it ends and adds it to message. Returns true if reading was successful.

Note: device must be already opened.

Upstream PySide2 reference signatures (binding differences may apply):

addData(self, data: PySide2.QtCore.QByteArray) -> None
addData(self, data: str, length: int) -> None
addData(self, device: PySide2.QtCore.QIODevice) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qmessageauthenticationcode.html#addData

hash

hash(message: Any, key: Any, method: Any) -> Any

X.hash(message, key, method) -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

[static] QByteArray QMessageAuthenticationCode::hash(const QByteArray \&message, const QByteArray \&key, QCryptographicHash::Algorithm method)

Returns the authentication code for the message message using the key key and the method method.

Upstream PySide2 reference signatures (binding differences may apply):

hash(message: PySide2.QtCore.QByteArray, key: PySide2.QtCore.QByteArray, method: PySide2.QtCore.QCryptographicHash.Algorithm) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qmessageauthenticationcode.html#hash

reset

reset() -> None

X.reset()

Supplemental documentation: Qt 5 reference:

void QMessageAuthenticationCode::reset()

Resets message data. Calling this method doesn't affect the key.

Upstream PySide2 reference signatures (binding differences may apply):

reset(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmessageauthenticationcode.html#reset

result

result() -> Any

X.result() -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QMessageAuthenticationCode::result() const

Returns the final authentication code.

See also QByteArray::toHex().

Upstream PySide2 reference signatures (binding differences may apply):

result(self) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qmessageauthenticationcode.html#result

setKey

setKey(key: Any) -> None

X.setKey(key)

Supplemental documentation: Qt 5 reference:

void QMessageAuthenticationCode::setKey(const QByteArray \&key)

Sets secret key. Calling this method automatically resets the object state.

Upstream PySide2 reference signatures (binding differences may apply):

setKey(self, key: PySide2.QtCore.QByteArray) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmessageauthenticationcode.html#setKey