| 706 | |
| 707 | template <class EC> |
| 708 | void DL_PrivateKey_EC<EC>::DEREncodePrivateKey(BufferedTransformation &bt) const |
| 709 | { |
| 710 | DERSequenceEncoder privateKey(bt); |
| 711 | DEREncodeUnsigned<word32>(privateKey, 1); // version |
| 712 | // SEC 1 ver 1.0 says privateKey (m_d) has the same length as order of the curve |
| 713 | // this will be changed to order of base point in a future version |
| 714 | this->GetPrivateExponent().DEREncodeAsOctetString(privateKey, this->GetGroupParameters().GetSubgroupOrder().ByteCount()); |
| 715 | privateKey.MessageEnd(); |
| 716 | } |
| 717 | |
| 718 | // ****************************************************************** |
| 719 |
nothing calls this directly
no test coverage detected