diff options
Diffstat (limited to 'src/dl_algo.cpp')
-rw-r--r-- | src/dl_algo.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dl_algo.cpp b/src/dl_algo.cpp index e29696200..6e61a672b 100644 --- a/src/dl_algo.cpp +++ b/src/dl_algo.cpp @@ -15,9 +15,7 @@ namespace Botan { *************************************************/ MemoryVector<byte> DL_Scheme_PublicKey::DER_encode_pub() const { - DER_Encoder der; - der.encode(y); - return der.get_contents(); + return DER_Encoder().encode(y).get_contents(); } /************************************************* @@ -53,9 +51,7 @@ void DL_Scheme_PublicKey::BER_decode_params(DataSource& source) *************************************************/ SecureVector<byte> DL_Scheme_PrivateKey::DER_encode_priv() const { - DER_Encoder der; - der.encode(x); - return der.get_contents(); + return DER_Encoder().encode(x).get_contents(); } /************************************************* |