
GKeyRSA Example of trivial use: GKeyRSA k1, k2; TBufferFile 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 successful\n"; } else { cout <<"Secret comparison failed\n"; } } catch(Exc_t& exc) { cout << "encode test failed: "<< exc << endl; }
| 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) |
| virtual void | Streamer(TBuffer& b) |
| void | StreamerNVirtual(TBuffer& b) |
| void | StreamPubKey(TBuffer& b) |
| bool | check_error() |
| const char* | error_string() |
| static void | init_ssl() |
| static unsigned long | ssl_id_foo() |
| static void | ssl_locker_foo(int, int, const char*, int) |
| Bool_t | bIsPrivate | X{G} |
| unsigned long | mSslError | |
| rsa_st* | pKey |
| static bool | init_done | |
| unsigned char* | mSecret | |
| int | mSecretLen | |
| static GMutex* | s_ssl_mutexen |
