TTKMusicPlayer
3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the aes wrapper. More...
#include <aeswrapper.h>
Public Member Functions | |
QByteArray | encryptECB (const QByteArray &in, const QByteArray &key) |
QByteArray | decryptECB (const QByteArray &in, const QByteArray &key) |
QByteArray | encryptCBC (const QByteArray &in, const QByteArray &key, const QByteArray &iv) |
QByteArray | decryptCBC (const QByteArray &in, const QByteArray &key, const QByteArray &iv) |
The class of the aes wrapper.
Definition at line 32 of file aeswrapper.h.
QByteArray QAlgorithm::Aes::decryptCBC | ( | const QByteArray & | in, |
const QByteArray & | key, | ||
const QByteArray & | iv | ||
) |
Decrypt aes CBC by input.
Definition at line 76 of file aeswrapper.cpp.
References AES_cbc_encrypt(), AES_DECRYPT, AES_set_decrypt_key(), QAlgorithm::base64Decode(), and DATA_CACHE_SIZE.
Decrypt des ECB by input.
Definition at line 34 of file aeswrapper.cpp.
References AES_DECRYPT, AES_ecb_encrypt(), AES_set_decrypt_key(), QAlgorithm::base64Decode(), and DATA_CACHE_SIZE.
QByteArray QAlgorithm::Aes::encryptCBC | ( | const QByteArray & | in, |
const QByteArray & | key, | ||
const QByteArray & | iv | ||
) |
Encrypt aes CBC by input.
Definition at line 49 of file aeswrapper.cpp.
References AES_BLOCK_SIZE, AES_cbc_encrypt(), AES_ENCRYPT, AES_set_encrypt_key(), QAlgorithm::base64Encode(), and DATA_CACHE_SIZE.
Referenced by ReqWYInterface::makeTokenRequest().
Encrypt des ECB by input.
Definition at line 7 of file aeswrapper.cpp.
References AES_BLOCK_SIZE, AES_ecb_encrypt(), AES_ENCRYPT, AES_set_encrypt_key(), QAlgorithm::base64Encode(), and DATA_CACHE_SIZE.