![]()
Parent Directory
|
Revision Log
Add LGPL copyright notices, update licensing info/explanation in README
/*
* Structured Stream Transport
* Copyright (C) 2006-2008 Massachusetts Institute of Technology
* Author: Bryan Ford
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef SST_RSA_H
#define SST_RSA_H
#include <openssl/rsa.h>
#include "sign.h"
namespace SST {
class RSAKey : public SignKey
{
RSA *rsa;
RSAKey(RSA *rsa);
public:
RSAKey(const QByteArray &key);
RSAKey(int bits = 0, unsigned e = 65537);
~RSAKey();
QByteArray id() const;
QByteArray key(bool getPrivateKey = false) const;
SecureHash *newHash(QObject *parent = NULL) const;
QByteArray sign(const QByteArray &digest) const;
bool verify(const QByteArray &digest, const QByteArray &sig) const;
private:
void dump() const;
};
} // namespace SST
#endif // SST_RSA_H
| Maintained by PDOS | ViewVC Help |
| Powered by ViewVC 1.0.3 |