Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvRSAStream Class Reference

#include <wvcrypto.h>

Inheritance diagram for WvRSAStream:

WvCryptoStream WvCryptoStream WvStreamClone WvStreamClone WvStreamClone WvStreamClone WvStream WvStream WvStream WvStream WvStream WvStream WvStream WvStream List of all members.

Public Methods

 WvRSAStream (WvStream *_slave, WvRSAKey &_my_key, WvRSAKey &_their_key)
virtual ~WvRSAStream ()
 WvRSAStream (WvStream *_slave, WvRSAKey &_my_key, WvRSAKey &_their_key)
virtual ~WvRSAStream ()

Protected Methods

virtual size_t uread (void *buf, size_t size)
virtual size_t uwrite (const void *buf, size_t size)
virtual size_t uread (void *buf, size_t size)
virtual size_t uwrite (const void *buf, size_t size)

Private Attributes

WvRSAKey my_key
WvRSAKey their_key
size_t decrypt_silly

Detailed Description

A CryptoStream implementing RSA public/private key encryption. This is really slow, so should only be used to exchange information about a faster symmetric key (like Blowfish). RSA needs to know the public key from the remote end (to send data) and the private key on this end (to receive data).

Definition at line 115 of file crypto/wvcrypto.h.


Constructor & Destructor Documentation

WvRSAStream::WvRSAStream WvStream   _slave,
WvRSAKey   _my_key,
WvRSAKey   _their_key
 

Definition at line 222 of file wvcrypto.cc.

References my_key, WvStream::queuemin(), WvRSAKey::rsa, and WvCryptoStream::slave.

WvRSAStream::~WvRSAStream   [virtual]
 

Definition at line 234 of file wvcrypto.cc.

References WvStream::queuemin(), and WvCryptoStream::slave.

WvRSAStream::WvRSAStream WvStream   _slave,
WvRSAKey   _my_key,
WvRSAKey   _their_key
 

virtual WvRSAStream::~WvRSAStream   [virtual]
 


Member Function Documentation

virtual size_t WvRSAStream::uread void *    buf,
size_t    size
[protected, virtual]
 

unbuffered I/O functions; these ignore the buffer, which is handled by read(). Don't call these functions unless you have a _really_ good reason.

Reimplemented from WvStreamClone.

size_t WvRSAStream::uread void *    buf,
size_t    size
[protected, virtual]
 

unbuffered I/O functions; these ignore the buffer, which is handled by read(). Don't call these functions unless you have a _really_ good reason.

Reimplemented from WvStreamClone.

Definition at line 243 of file wvcrypto.cc.

References WvCryptoStream::cryptbuf(), WvStream::inbuf, my_key, WvBuffer::put(), WvRSAKey::rsa, size, and WvStreamClone::uread().

virtual size_t WvRSAStream::uwrite const void *    buf,
size_t    size
[protected, virtual]
 

unbuffered I/O functions; these ignore the buffer, which is handled by write(). Don't call these functions unless you have a _really_ good reason.

Reimplemented from WvStreamClone.

size_t WvRSAStream::uwrite const void *    buf,
size_t    size
[protected, virtual]
 

unbuffered I/O functions; these ignore the buffer, which is handled by write(). Don't call these functions unless you have a _really_ good reason.

Reimplemented from WvStreamClone.

Definition at line 288 of file wvcrypto.cc.

References WvCryptoStream::cryptbuf(), my_key, WvRSAKey::rsa, size, their_key, and WvStreamClone::uwrite().


Member Data Documentation

size_t WvRSAStream::decrypt_silly [private]
 

Definition at line 118 of file include/wvcrypto.h.

WvRSAKey WvRSAStream::my_key [private]
 

Definition at line 117 of file include/wvcrypto.h.

Referenced by uread(), uwrite(), and WvRSAStream().

WvRSAKey WvRSAStream::their_key [private]
 

Definition at line 117 of file include/wvcrypto.h.

Referenced by uwrite().


The documentation for this class was generated from the following files:
Generated on Fri Apr 5 15:16:56 2002 for WvStreams by doxygen1.2.15