diff options
author | lloyd <[email protected]> | 2012-06-05 16:43:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-06-05 16:43:58 +0000 |
commit | 4d1378782d83fda342afc3e200f38ef6964ae6e2 (patch) | |
tree | 873e7742441cfd3e7701b211429277635811eb90 /src/pubkey/dl_algo | |
parent | b90c6b3654ff1bff53632f4083ae440d8bd9fd99 (diff) |
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
Diffstat (limited to 'src/pubkey/dl_algo')
-rw-r--r-- | src/pubkey/dl_algo/dl_algo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<byte>& 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<byte>& 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); } |