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 string cryptographic hash. More...
#include <ttkcryptographichash.h>
Public Member Functions | |
TTKCryptographicHash () | |
QString | encrypt (const QString &data, const QString &key) |
QString | decrypt (const QString &data, const QString &key) |
Private Member Functions | |
TTKString | xxteaEncrypt (const TTKString &data, const TTKString &key) |
QString | xxteaEncrypt (const QString &data, const QString &key) |
TTKString | xxteaDecrypt (const TTKString &data, const TTKString &key) |
QString | xxteaDecrypt (const QString &data, const QString &key) |
uchar * | doXxteaEncrypt (uchar *data, xxtea_uint len, uchar *key, xxtea_uint *retLength) |
uchar * | doXxteaDecrypt (uchar *data, xxtea_uint len, uchar *key, xxtea_uint *retLength) |
void | xxteaUintEncrypt (xxtea_uint *v, xxtea_uint len, xxtea_uint *k) |
void | xxteaUintDecrypt (xxtea_uint *v, xxtea_uint len, xxtea_uint *k) |
uchar * | fixKeyLength (uchar *key, xxtea_uint keyLength) |
xxtea_uint * | xxteaToUintArray (uchar *data, xxtea_uint len, int includeLength, xxtea_uint *retLength) |
uchar * | xxteaToByteArray (xxtea_uint *data, xxtea_uint len, int includeLength, xxtea_uint *retLength) |
uchar * | xxteaEncrypt (uchar *data, xxtea_uint dataLength, uchar *key, xxtea_uint keyLength, xxtea_uint *retLengthgth) |
uchar * | xxteaDecrypt (uchar *data, xxtea_uint dataLength, uchar *key, xxtea_uint keyLength, xxtea_uint *retLengthgth) |
The class of the string cryptographic hash.
Definition at line 39 of file ttkcryptographichash.h.
TTKCryptographicHash::TTKCryptographicHash | ( | ) |
Object constructor.
Definition at line 136 of file ttkcryptographichash.cpp.
decrypt by QString data.
Definition at line 146 of file ttkcryptographichash.cpp.
References xxteaDecrypt().
Referenced by TTK::Algorithm::mdII().
|
private |
Do XXTEA decrypt.
Definition at line 336 of file ttkcryptographichash.cpp.
References free(), xxteaToByteArray(), xxteaToUintArray(), and xxteaUintDecrypt().
Referenced by xxteaDecrypt().
|
private |
Do XXTEA encrypt.
Definition at line 319 of file ttkcryptographichash.cpp.
References free(), xxteaToByteArray(), xxteaToUintArray(), and xxteaUintEncrypt().
Referenced by xxteaEncrypt().
encrypt by QString data.
Definition at line 141 of file ttkcryptographichash.cpp.
References xxteaEncrypt().
Referenced by TTK::Algorithm::mdII(), xxteaDecrypt(), and xxteaEncrypt().
|
private |
Fix key length.
Definition at line 256 of file ttkcryptographichash.cpp.
References malloc().
Referenced by xxteaDecrypt(), and xxteaEncrypt().
|
private |
XXTEA decrypt by TTKString data.
Definition at line 169 of file ttkcryptographichash.cpp.
References TTK::base64Decode(), encrypt(), and free().
Referenced by decrypt(), and xxteaDecrypt().
XXTEA decrypt by QString data.
Definition at line 203 of file ttkcryptographichash.cpp.
References xxteaDecrypt().
|
private |
XXTEA decrypt by uchar * data.
Definition at line 372 of file ttkcryptographichash.cpp.
References doXxteaDecrypt(), fixKeyLength(), and free().
|
private |
XXTEA encrypt by TTKString data.
Definition at line 151 of file ttkcryptographichash.cpp.
References TTK::base64Encode(), encrypt(), and free().
Referenced by encrypt(), and xxteaEncrypt().
XXTEA encrypt by QString data.
Definition at line 198 of file ttkcryptographichash.cpp.
References xxteaEncrypt().
|
private |
XXTEA encrypt by uchar * data.
Definition at line 353 of file ttkcryptographichash.cpp.
References doXxteaEncrypt(), fixKeyLength(), and free().
|
private |
XXTEA to byte array.
Definition at line 291 of file ttkcryptographichash.cpp.
References malloc().
Referenced by doXxteaDecrypt(), and doXxteaEncrypt().
|
private |
XXTEA to uint array.
Definition at line 264 of file ttkcryptographichash.cpp.
References malloc().
Referenced by doXxteaDecrypt(), and doXxteaEncrypt().
|
private |
XXTEA uint decrypt.
Definition at line 232 of file ttkcryptographichash.cpp.
References XXTEA_DELTA, and XXTEA_MX.
Referenced by doXxteaDecrypt().
|
private |
XXTEA uint encrypt.
Definition at line 208 of file ttkcryptographichash.cpp.
References XXTEA_DELTA, and XXTEA_MX.
Referenced by doXxteaEncrypt().