aboutsummaryrefslogtreecommitdiffstats
path: root/src/dl_algo.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-05-19 00:07:25 +0000
committerlloyd <[email protected]>2006-05-19 00:07:25 +0000
commitf090e030be53e574fecbe7cf50edfb5fdacb53e1 (patch)
tree0bff0c249a9dbcb674fcd2491ab17e3d123ef1f9 /src/dl_algo.cpp
parenta0af7b26591f8fb79d1f06fe42548e1eb0c35e90 (diff)
Syntax changes to the BER and DER APIs to improve readability of code
that uses them. These changes are not backwards compatible, this commit updates all uses of the APIs within the library.
Diffstat (limited to 'src/dl_algo.cpp')
-rw-r--r--src/dl_algo.cpp8
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();
}
/*************************************************