diff options
author | lloyd <[email protected]> | 2010-02-24 02:00:52 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-24 02:00:52 +0000 |
commit | 89b3f108223258ce0680071ce8a5736a6699c131 (patch) | |
tree | a92c044094d96e027c11491c4308c7d3ea53c1bb /src/cert/cvc/cvc_gen_cert.h | |
parent | 007b30735cadd163dce275fcd5b7706c84eeb2b6 (diff) |
Small cleanups in CVC. Reduce use of assert. Remove UTF-8 chars
Diffstat (limited to 'src/cert/cvc/cvc_gen_cert.h')
-rw-r--r-- | src/cert/cvc/cvc_gen_cert.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cert/cvc/cvc_gen_cert.h b/src/cert/cvc/cvc_gen_cert.h index 3a8e0ea57..096f7898c 100644 --- a/src/cert/cvc/cvc_gen_cert.h +++ b/src/cert/cvc/cvc_gen_cert.h @@ -16,7 +16,6 @@ #include <botan/ecdsa.h> #include <botan/ecdsa_sig.h> #include <string> -#include <assert.h> namespace Botan { @@ -109,7 +108,7 @@ template<typename Derived> MemoryVector<byte> EAC1_1_gen_CVC<Derived>::make_sign RandomNumberGenerator& rng) // static { SecureVector<byte> concat_sig = EAC1_1_obj<Derived>::make_signature(signer.get(), tbs_bits, rng); - assert(concat_sig.size() % 2 == 0); + return DER_Encoder() .start_cons(ASN1_Tag(33), APPLICATION) .raw_bytes(tbs_bits) |