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


Public Member Functions | |
| void | sign (byte *, const byte *, unsigned int, const RandomPool &) |
| bool | verify (const byte *, unsigned int, const byte *, unsigned int) |
| uint | get_signatureLength () const |
| DSS (const byte *, unsigned int, bool publicKey=true) | |
| ~DSS () | |
Private Member Functions | |
| DSS (const DSS &) | |
| DSS & | operator= (const DSS &) |
Private Attributes | |
| DSSImpl * | pimpl_ |
Classes | |
| struct | DSSImpl |
Definition at line 334 of file crypto_wrapper.hpp.
Definition at line 586 of file crypto_wrapper.cpp.
References pimpl_, yaSSL::DSS::DSSImpl::SetPrivate(), and yaSSL::DSS::DSSImpl::SetPublic().
00587 : pimpl_(NEW_YS DSSImpl) 00588 { 00589 if (publicKey) 00590 pimpl_->SetPublic(key, sz); 00591 else 00592 pimpl_->SetPrivate(key, sz); 00593 }
Here is the call graph for this function:

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

| yaSSL::DSS::DSS | ( | const DSS & | ) | [private] |
| uint yaSSL::DSS::get_signatureLength | ( | ) | const [virtual] |
Implements yaSSL::Auth.
Definition at line 602 of file crypto_wrapper.cpp.
References pimpl_, yaSSL::DSS::DSSImpl::publicKey_, and TaoCrypt::DSA_PublicKey::SignatureLength().
00603 { 00604 return pimpl_->publicKey_.SignatureLength(); 00605 }
Here is the call graph for this function:

| void yaSSL::DSS::sign | ( | byte * | , | |
| const byte * | , | |||
| unsigned | int, | |||
| const RandomPool & | ||||
| ) | [virtual] |
Implements yaSSL::Auth.
Definition at line 609 of file crypto_wrapper.cpp.
References yaSSL::RandomPool::pimpl_, pimpl_, and yaSSL::DSS::DSSImpl::privateKey_.
00611 { 00612 using namespace TaoCrypt; 00613 00614 DSA_Signer signer(pimpl_->privateKey_); 00615 signer.Sign(sha_digest, sig, random.pimpl_->RNG_); 00616 }
Implements yaSSL::Auth.
Definition at line 620 of file crypto_wrapper.cpp.
References pimpl_, and yaSSL::DSS::DSSImpl::publicKey_.
00622 { 00623 using namespace TaoCrypt; 00624 00625 DSA_Verifier ver(pimpl_->publicKey_); 00626 return ver.Verify(sha_digest, sig); 00627 }
DSSImpl* yaSSL::DSS::pimpl_ [private] |
Definition at line 342 of file crypto_wrapper.hpp.
Referenced by DSS(), get_signatureLength(), sign(), verify(), and ~DSS().
1.4.7

