TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | List of all members
QAlgorithm::Aes Class Reference

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)
 

Detailed Description

The class of the aes wrapper.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 32 of file aeswrapper.h.

Member Function Documentation

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.

QByteArray QAlgorithm::Aes::decryptECB ( const QByteArray &  in,
const QByteArray &  key 
)

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 
)
QByteArray QAlgorithm::Aes::encryptECB ( const QByteArray &  in,
const QByteArray &  key 
)

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.


The documentation for this class was generated from the following files: