#include <crypto_wrapper.hpp>
Inheritance diagram for yaSSL::RSA:


Public Member Functions | |
| void | sign (byte *, const byte *, unsigned int, const RandomPool &) |
| bool | verify (const byte *, unsigned int, const byte *, unsigned int) |
| void | encrypt (byte *, const byte *, unsigned int, const RandomPool &) |
| void | decrypt (byte *, const byte *, unsigned int, const RandomPool &) |
| uint | get_signatureLength () const |
| uint | get_cipherLength () const |
| RSA (const byte *, unsigned int, bool publicKey=true) | |
| ~RSA () | |
Private Member Functions | |
| RSA (const RSA &) | |
| RSA & | operator= (const RSA &) |
Private Attributes | |
| RSAImpl * | pimpl_ |
Classes | |
| struct | RSAImpl |
Definition at line 351 of file crypto_wrapper.hpp.
Definition at line 657 of file crypto_wrapper.cpp.
References pimpl_, yaSSL::RSA::RSAImpl::SetPrivate(), and yaSSL::RSA::RSAImpl::SetPublic().
00658 : pimpl_(NEW_YS RSAImpl) 00659 { 00660 if (publicKey) 00661 pimpl_->SetPublic(key, sz); 00662 else 00663 pimpl_->SetPrivate(key, sz); 00664 }
Here is the call graph for this function:

| yaSSL::RSA::~RSA | ( | ) |
Definition at line 666 of file crypto_wrapper.cpp.
References pimpl_, and yaSSL::ysDelete().
Here is the call graph for this function:

| yaSSL::RSA::RSA | ( | const RSA & | ) | [private] |
| void yaSSL::RSA::decrypt | ( | byte * | , | |
| const byte * | , | |||
| unsigned | int, | |||
| const RandomPool & | ||||
| ) |
Definition at line 715 of file crypto_wrapper.cpp.
References TaoCrypt::RSA_Decryptor< Pad >::Decrypt(), yaSSL::RandomPool::pimpl_, pimpl_, and yaSSL::RSA::RSAImpl::privateKey_.
00717 { 00718 TaoCrypt::RSAES_Decryptor dec(pimpl_->privateKey_); 00719 dec.Decrypt(cipher, sz, plain, random.pimpl_->RNG_); 00720 }
Here is the call graph for this function:

| void yaSSL::RSA::encrypt | ( | byte * | , | |
| const byte * | , | |||
| unsigned | int, | |||
| const RandomPool & | ||||
| ) |
Definition at line 705 of file crypto_wrapper.cpp.
References TaoCrypt::RSA_Encryptor< Pad >::Encrypt(), yaSSL::RandomPool::pimpl_, pimpl_, and yaSSL::RSA::RSAImpl::publicKey_.
00707 { 00708 00709 TaoCrypt::RSAES_Encryptor enc(pimpl_->publicKey_); 00710 enc.Encrypt(plain, sz, cipher, random.pimpl_->RNG_); 00711 }
Here is the call graph for this function:

| unsigned int yaSSL::RSA::get_cipherLength | ( | ) | const |
Definition at line 673 of file crypto_wrapper.cpp.
References TaoCrypt::RSA_PublicKey::FixedCiphertextLength(), pimpl_, and yaSSL::RSA::RSAImpl::publicKey_.
Referenced by get_signatureLength().
00674 { 00675 return pimpl_->publicKey_.FixedCiphertextLength(); 00676 }
Here is the call graph for this function:

Here is the caller graph for this function:

| unsigned int yaSSL::RSA::get_signatureLength | ( | ) | const [virtual] |
Implements yaSSL::Auth.
Definition at line 680 of file crypto_wrapper.cpp.
References get_cipherLength().
00681 { 00682 return get_cipherLength(); 00683 }
Here is the call graph for this function:

| void yaSSL::RSA::sign | ( | byte * | , | |
| const byte * | , | |||
| unsigned | int, | |||
| const RandomPool & | ||||
| ) | [virtual] |
Implements yaSSL::Auth.
Definition at line 687 of file crypto_wrapper.cpp.
References yaSSL::RandomPool::pimpl_, pimpl_, yaSSL::RSA::RSAImpl::privateKey_, and TaoCrypt::RSA_Decryptor< Pad >::SSL_Sign().
00689 { 00690 TaoCrypt::RSAES_Decryptor dec(pimpl_->privateKey_); 00691 dec.SSL_Sign(message, sz, sig, random.pimpl_->RNG_); 00692 }
Here is the call graph for this function:

Implements yaSSL::Auth.
Definition at line 696 of file crypto_wrapper.cpp.
References pimpl_, yaSSL::RSA::RSAImpl::publicKey_, and TaoCrypt::RSA_Encryptor< Pad >::SSL_Verify().
00698 { 00699 TaoCrypt::RSAES_Encryptor enc(pimpl_->publicKey_); 00700 return enc.SSL_Verify(message, sz, sig); 00701 }
Here is the call graph for this function:

RSAImpl* yaSSL::RSA::pimpl_ [private] |
Definition at line 362 of file crypto_wrapper.hpp.
Referenced by decrypt(), encrypt(), get_cipherLength(), RSA(), sign(), verify(), and ~RSA().
1.4.7

