aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/cvc/eac_obj.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-02 19:23:27 +0000
committerlloyd <[email protected]>2010-03-02 19:23:27 +0000
commitb43cc46149b6d653fb403b2f4c6b28483b6b975a (patch)
tree4a3762c6223a51ac0be4e6cbb77127de9ef56be6 /src/cert/cvc/eac_obj.h
parent200e88602c2f5d3b09ee6f1caaac3d14da6c8860 (diff)
CVC assumed sigs were DER encoded by default. Not true
Diffstat (limited to 'src/cert/cvc/eac_obj.h')
-rw-r--r--src/cert/cvc/eac_obj.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/cert/cvc/eac_obj.h b/src/cert/cvc/eac_obj.h
index 82aaee787..d4f02c530 100644
--- a/src/cert/cvc/eac_obj.h
+++ b/src/cert/cvc/eac_obj.h
@@ -46,30 +46,16 @@ class BOTAN_DLL EAC1_1_obj : public EAC_Signed_Object
protected:
void init(DataSource& in);
- static SecureVector<byte>
- make_signature(PK_Signer& signer,
- const MemoryRegion<byte>& tbs_bits,
- RandomNumberGenerator& rng);
-
virtual ~EAC1_1_obj<Derived>(){}
};
-template<typename Derived> SecureVector<byte> EAC1_1_obj<Derived>::get_concat_sig() const
+template<typename Derived>
+SecureVector<byte> EAC1_1_obj<Derived>::get_concat_sig() const
{
return m_sig.get_concatenation();
}
-template<typename Derived> SecureVector<byte>
-EAC1_1_obj<Derived>::make_signature(PK_Signer& signer,
- const MemoryRegion<byte>& tbs_bits,
- RandomNumberGenerator& rng)
- {
- // this is the signature as a der sequence
- ECDSA_Signature sig(signer.sign_message(tbs_bits, rng));
- return sig.get_concatenation();
- }
-
template<typename Derived>
void EAC1_1_obj<Derived>::init(DataSource& in)
{