pub struct QMessageAuthenticationCode { /* private fields */ }Expand description
C++ class: QMessageAuthenticationCode.
Implementations§
Source§impl QMessageAuthenticationCode
impl QMessageAuthenticationCode
Sourcepub unsafe fn add_data_char_int(&self, data: *const c_char, length: c_int)
pub unsafe fn add_data_char_int(&self, data: *const c_char, length: c_int)
Calls C++ function: void QMessageAuthenticationCode::addData(const char* data, int length).
Sourcepub unsafe fn add_data_q_byte_array(&self, data: impl CastInto<Ref<QByteArray>>)
pub unsafe fn add_data_q_byte_array(&self, data: impl CastInto<Ref<QByteArray>>)
Calls C++ function: void QMessageAuthenticationCode::addData(const QByteArray& data).
Sourcepub unsafe fn add_data_q_io_device(
&self,
device: impl CastInto<Ptr<QIODevice>>,
) -> bool
pub unsafe fn add_data_q_io_device( &self, device: impl CastInto<Ptr<QIODevice>>, ) -> bool
Calls C++ function: bool QMessageAuthenticationCode::addData(QIODevice* device).
Sourcepub unsafe fn hash(
message: impl CastInto<Ref<QByteArray>>,
key: impl CastInto<Ref<QByteArray>>,
method: Algorithm,
) -> CppBox<QByteArray>
pub unsafe fn hash( message: impl CastInto<Ref<QByteArray>>, key: impl CastInto<Ref<QByteArray>>, method: Algorithm, ) -> CppBox<QByteArray>
Calls C++ function: static QByteArray QMessageAuthenticationCode::hash(const QByteArray& message, const QByteArray& key, QCryptographicHash::Algorithm method).
Sourcepub unsafe fn new_2a(
method: Algorithm,
key: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QMessageAuthenticationCode>
pub unsafe fn new_2a( method: Algorithm, key: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QMessageAuthenticationCode>
Calls C++ function: [constructor] void QMessageAuthenticationCode::QMessageAuthenticationCode(QCryptographicHash::Algorithm method, const QByteArray& key = …).
Sourcepub unsafe fn new_1a(method: Algorithm) -> CppBox<QMessageAuthenticationCode>
pub unsafe fn new_1a(method: Algorithm) -> CppBox<QMessageAuthenticationCode>
Calls C++ function: [constructor] void QMessageAuthenticationCode::QMessageAuthenticationCode(QCryptographicHash::Algorithm method).
Sourcepub unsafe fn result(&self) -> CppBox<QByteArray>
pub unsafe fn result(&self) -> CppBox<QByteArray>
Calls C++ function: QByteArray QMessageAuthenticationCode::result() const.
Sourcepub unsafe fn set_key(&self, key: impl CastInto<Ref<QByteArray>>)
pub unsafe fn set_key(&self, key: impl CastInto<Ref<QByteArray>>)
Calls C++ function: void QMessageAuthenticationCode::setKey(const QByteArray& key).