TTKMusicPlayer
4.1.3.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 142 of file ttkcryptographichash.cpp.
References TTK::base64Decode(), and xxteaDecrypt().
Referenced by TTK::Algorithm::mdII().
|
private |
Do XXTEA decrypt.
Definition at line 322 of file ttkcryptographichash.cpp.
References free(), xxteaToByteArray(), xxteaToUintArray(), and xxteaUintDecrypt().
Referenced by xxteaDecrypt().
|
private |
Do XXTEA encrypt.
Definition at line 305 of file ttkcryptographichash.cpp.
References free(), xxteaToByteArray(), xxteaToUintArray(), and xxteaUintEncrypt().
Referenced by xxteaEncrypt().
encrypt by QString data.
Definition at line 136 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 242 of file ttkcryptographichash.cpp.
References malloc().
Referenced by xxteaDecrypt(), and xxteaEncrypt().
XXTEA decrypt by TTKString data.
Definition at line 163 of file ttkcryptographichash.cpp.
References TTK::base64Decode(), encrypt(), and free().
Referenced by decrypt().
|
private |
XXTEA decrypt by uchar * data.
Definition at line 358 of file ttkcryptographichash.cpp.
References doXxteaDecrypt(), fixKeyLength(), and free().
XXTEA encrypt by TTKString data.
Definition at line 147 of file ttkcryptographichash.cpp.
References TTK::base64Encode(), encrypt(), and free().
Referenced by encrypt().
|
private |
XXTEA encrypt by uchar * data.
Definition at line 339 of file ttkcryptographichash.cpp.
References doXxteaEncrypt(), fixKeyLength(), and free().
|
private |
XXTEA to byte array.
Definition at line 277 of file ttkcryptographichash.cpp.
References malloc().
Referenced by doXxteaDecrypt(), and doXxteaEncrypt().
|
private |
XXTEA to uint array.
Definition at line 250 of file ttkcryptographichash.cpp.
References malloc().
Referenced by doXxteaDecrypt(), and doXxteaEncrypt().
|
private |
XXTEA uint decrypt.
Definition at line 217 of file ttkcryptographichash.cpp.
References XXTEA_DELTA, and XXTEA_MX.
Referenced by doXxteaDecrypt().
|
private |
XXTEA uint encrypt.
Definition at line 192 of file ttkcryptographichash.cpp.
References XXTEA_DELTA, and XXTEA_MX.
Referenced by doXxteaEncrypt().