| 874 | |
| 875 | |
| 876 | void DiffieHellman::set_sizes(int& pSz, int& gSz, int& pubSz) const |
| 877 | { |
| 878 | using TaoCrypt::Integer; |
| 879 | Integer p = pimpl_->dh_.GetP(); |
| 880 | Integer g = pimpl_->dh_.GetG(); |
| 881 | |
| 882 | pSz = p.ByteCount(); |
| 883 | gSz = g.ByteCount(); |
| 884 | pubSz = pimpl_->dh_.GetByteLength(); |
| 885 | } |
| 886 | |
| 887 | |
| 888 | void DiffieHellman::get_parms(byte* bp, byte* bg, byte* bpub) const |