TTKMusicPlayer
4.2.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 | |
QString | encrypt (const QString &data, const char *key) |
QString | decrypt (const QString &data, const char *key) |
Private Member Functions | |
TTKString | xxteaEncrypt (const TTKString &data, const char *key) |
TTKString | xxteaDecrypt (const TTKString &data, const char *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.
decrypt by QString data.
Definition at line 132 of file ttkcryptographichash.cpp.
References TTK::base64Decode(), and xxteaDecrypt().
Referenced by TTK::Algorithm::mdII().
|
private |
Do XXTEA decrypt.
Definition at line 312 of file ttkcryptographichash.cpp.
References free(), xxteaToByteArray(), xxteaToUintArray(), and xxteaUintDecrypt().
Referenced by xxteaDecrypt().
|
private |
Do XXTEA encrypt.
Definition at line 295 of file ttkcryptographichash.cpp.
References free(), xxteaToByteArray(), xxteaToUintArray(), and xxteaUintEncrypt().
Referenced by xxteaEncrypt().
encrypt by QString data.
Definition at line 126 of file ttkcryptographichash.cpp.
References TTK::base64Encode(), key, and xxteaEncrypt().
Referenced by TTK::Algorithm::mdII(), xxteaDecrypt(), and xxteaEncrypt().
|
private |
Fix key length.
Definition at line 232 of file ttkcryptographichash.cpp.
References malloc().
Referenced by xxteaDecrypt(), and xxteaEncrypt().
XXTEA decrypt by TTKString data.
Definition at line 153 of file ttkcryptographichash.cpp.
References TTK::base64Decode(), encrypt(), and free().
Referenced by decrypt().
|
private |
XXTEA decrypt by uchar * data.
Definition at line 348 of file ttkcryptographichash.cpp.
References doXxteaDecrypt(), fixKeyLength(), and free().
XXTEA encrypt by TTKString data.
Definition at line 137 of file ttkcryptographichash.cpp.
References TTK::base64Encode(), encrypt(), and free().
Referenced by encrypt().
|
private |
XXTEA encrypt by uchar * data.
Definition at line 329 of file ttkcryptographichash.cpp.
References doXxteaEncrypt(), fixKeyLength(), and free().
|
private |
XXTEA to byte array.
Definition at line 267 of file ttkcryptographichash.cpp.
References malloc().
Referenced by doXxteaDecrypt(), and doXxteaEncrypt().
|
private |
XXTEA to uint array.
Definition at line 240 of file ttkcryptographichash.cpp.
References malloc().
Referenced by doXxteaDecrypt(), and doXxteaEncrypt().
|
private |
XXTEA uint decrypt.
Definition at line 207 of file ttkcryptographichash.cpp.
References XXTEA_DELTA, and XXTEA_MX.
Referenced by doXxteaDecrypt().
|
private |
XXTEA uint encrypt.
Definition at line 182 of file ttkcryptographichash.cpp.
References XXTEA_DELTA, and XXTEA_MX.
Referenced by doXxteaEncrypt().