#include "GKeyRSA.h"

GKeyRSA


class description - source file - inheritance tree (.pdf)

class GKeyRSA

Inheritance Chart:
GKeyRSA
    private:
static void init_ssl() static unsigned long ssl_id_foo() static void ssl_locker_foo(int, int, const char*, int) protected:
bool check_error() const char* error_string() const public:
GKeyRSA() GKeyRSA(const GKeyRSA&) virtual ~GKeyRSA() static TClass* Class() void GenerateSecret() Bool_t GetIsPrivate() const virtual TClass* IsA() const bool MatchSecrets(const GKeyRSA& a) GKeyRSA& operator=(const GKeyRSA&) void ReadPrivKey(const char* file) void ReadPubKey(const char* file) void ReceiveSecret(TBuffer& b) void SendSecret(TBuffer& b) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void StreamPubKey(TBuffer& b)

Data Members

    private:
static bool init_done static GMutex* s_ssl_mutexen int mSecretLen unsigned char* mSecret protected:
Bool_t bIsPrivate X{G} rsa_st* pKey unsigned long mSslError

Class Description

 GKeyRSA

 Example of trivial use:

    GKeyRSA k1, k2;
    TBuffer b(TBuffer::kWrite);
    try {
       k1.ReadPubKey(PubKeyFile(mSaturnIdentity));
       k1.GenerateSecret();
       k1.SendSecret(b);

       b.SetReadMode();
       b.SetBufferOffset(0);

       k2.ReadPrivKey(PrivKeyFile(mSaturnIdentity));
       k2.ReceiveSecret(b);
       if(k1.MatchSecrets(k2)) {
 	cout <<"Secret comparison successfuln";
       } else {
 	cout <<"Secret comparison failedn";
       }
     }
     catch(string exc) {
       cout << "encode test failed: "<< exc << endl;
     }


void init_ssl()

void ssl_locker_foo(int mode, int n, const char *file, int line)

bool check_error()

const char* error_string()

GKeyRSA()

~GKeyRSA()

void ReadPubKey(const char* file)

void ReadPrivKey(const char* file)

void GenerateSecret()

void SendSecret(TBuffer& b)

void ReceiveSecret(TBuffer& b)

bool MatchSecrets(const GKeyRSA& a)

void StreamPubKey(TBuffer& b)



Inline Functions


        unsigned long ssl_id_foo()
               Bool_t GetIsPrivate() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
              GKeyRSA GKeyRSA(const GKeyRSA&)
             GKeyRSA& operator=(const GKeyRSA&)


Last update: Thu Jun 9 15:56:24 2005


ROOT page - Home page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.