6
#include"../util/cipher.h"
8
// sym_encrypt - encrypt 'data' and return a base64 string of the result
9
bool sym_encrypt(const QByteArray &data, const Cipher::Key &key, const QByteArray &iv, QString *out);
11
// sym_decrypt - take a base64 string, decode and decrypt it, return the result
12
bool sym_decrypt(const QString &str, const Cipher::Key &key, QByteArray *out);
14
// sym_keywrap - encrypt key 'data' and return a base64 string of the result
15
bool sym_keywrap(const QByteArray &data, const Cipher::Key &key, QString *out);
17
// sym_keyunwrap - take a base64 string, decode and decrypt it, return the result (key data)
18
bool sym_keyunwrap(const QString &str, const Cipher::Key &key, QByteArray *out);