DER encoding 2 integers isnt very hard. We could probably do it in Python.


On 29 April 2014 00:03:11 Alex Gaynor <notifications@github.com> wrote:

> > @@ -474,6 +474,41 @@ def generate_dsa_private_key(self, parameters):
> >              y=self._bn_to_int(ctx.pub_key)
> >          )
> > +    def create_dsa_verification_ctx(self, public_key, signature,
> > +                                    algorithm):
> > +        return _DSAVerificationContext(self, public_key, signature,
> > +                                       algorithm)
> > +
> > +    def dsa_signature_from_components(self, r, s, q):
>
> We dont' really have an API like this anywhere else, where there's a 
> conversion utility just for the tests. Is there some other way we could 
> approach this, that doesn't fill up the API?
>
> Also, if this is going to persist, it should have its own direct tests.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/pyca/cryptography/pull/912/files#r12072843