From 4d1378782d83fda342afc3e200f38ef6964ae6e2 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 5 Jun 2012 16:43:58 +0000 Subject: Modify DL_Group::PEM_decode and BER_decode to take values instead of DataSource&. Remove spurious DataSource_Memory from ec_group.cpp Some indent fixes --- src/pubkey/dl_algo/dl_algo.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/pubkey/dl_algo') diff --git a/src/pubkey/dl_algo/dl_algo.cpp b/src/pubkey/dl_algo/dl_algo.cpp index 1034a3252..c90e7651e 100644 --- a/src/pubkey/dl_algo/dl_algo.cpp +++ b/src/pubkey/dl_algo/dl_algo.cpp @@ -27,8 +27,7 @@ DL_Scheme_PublicKey::DL_Scheme_PublicKey(const AlgorithmIdentifier& alg_id, const secure_vector& key_bits, DL_Group::Format format) { - DataSource_Memory source(alg_id.parameters); - group.BER_decode(source, format); + group.BER_decode(alg_id.parameters, format); BER_Decoder(key_bits).decode(y); } @@ -42,8 +41,7 @@ DL_Scheme_PrivateKey::DL_Scheme_PrivateKey(const AlgorithmIdentifier& alg_id, const secure_vector& key_bits, DL_Group::Format format) { - DataSource_Memory source(alg_id.parameters); - group.BER_decode(source, format); + group.BER_decode(alg_id.parameters, format); BER_Decoder(key_bits).decode(x); } -- cgit v1.2.3