diff options
author | lloyd <[email protected]> | 2006-05-19 00:07:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-05-19 00:07:25 +0000 |
commit | f090e030be53e574fecbe7cf50edfb5fdacb53e1 (patch) | |
tree | 0bff0c249a9dbcb674fcd2491ab17e3d123ef1f9 /src/dl_group.cpp | |
parent | a0af7b26591f8fb79d1f06fe42548e1eb0c35e90 (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_group.cpp')
-rw-r--r-- | src/dl_group.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dl_group.cpp b/src/dl_group.cpp index f54ceac22..fffc64185 100644 --- a/src/dl_group.cpp +++ b/src/dl_group.cpp @@ -194,30 +194,30 @@ SecureVector<byte> DL_Group::DER_encode(Format format) const if(format == ANSI_X9_57) { return DER_Encoder() - .start_sequence() + .start_cons(SEQUENCE) .encode(p) .encode(q) .encode(g) - .end_sequence() + .end_cons() .get_contents(); } else if(format == ANSI_X9_42) { return DER_Encoder() - .start_sequence() + .start_cons(SEQUENCE) .encode(p) .encode(g) .encode(q) - .end_sequence() + .end_cons() .get_contents(); } else if(format == PKCS_3) { return DER_Encoder() - .start_sequence() + .start_cons(SEQUENCE) .encode(p) .encode(g) - .end_sequence() + .end_cons() .get_contents(); } @@ -248,7 +248,7 @@ void DL_Group::BER_decode(DataSource& source, Format format) BigInt new_p, new_q, new_g; BER_Decoder decoder(source); - BER_Decoder ber = BER::get_subsequence(decoder); + BER_Decoder ber = decoder.start_cons(SEQUENCE); if(format == ANSI_X9_57) { |