~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to cutestuff/xmlsec/keyops.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2005-01-10 17:41:43 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050110174143-ltocv5zapl6blf5d
Tags: 0.9.3-1
* New upstream release
* Cleaned up debian/rules (some things are done by upstream Makefiles now)
* Fixed some lintian warnings:
  - removed executable bit from some .png files
  - moved psi.desktop to /usr/share/applications
* Updated menu files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CS_KEYOPS_H
 
2
#define CS_KEYOPS_H
 
3
 
 
4
#include<qstring.h>
 
5
#include<qcstring.h>
 
6
#include"../util/cipher.h"
 
7
 
 
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);
 
10
 
 
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);
 
13
 
 
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);
 
16
 
 
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);
 
19
 
 
20
#endif