server Side DH, client's view
| 800 | |
| 801 | // server Side DH, client's view |
| 802 | DiffieHellman::DiffieHellman(const byte* p, unsigned int pSz, const byte* g, |
| 803 | unsigned int gSz, const byte* pub, |
| 804 | unsigned int pubSz, const RandomPool& random) |
| 805 | : pimpl_(NEW_YS DHImpl(random.pimpl_->RNG_)) |
| 806 | { |
| 807 | using TaoCrypt::Integer; |
| 808 | |
| 809 | pimpl_->dh_.Initialize(Integer(p, pSz).Ref(), Integer(g, gSz).Ref()); |
| 810 | pimpl_->publicKey_ = NEW_YS opaque[pubSz]; |
| 811 | memcpy(pimpl_->publicKey_, pub, pubSz); |
| 812 | } |
| 813 | |
| 814 | |
| 815 | // Server Side DH, server's view |
nothing calls this directly
no test coverage detected