Add simple ASN.1 utils for DSA signature DER.
authorDavid Makepeace <david.p.makepeace@oracle.com>
Mon, 3 Jun 2019 04:58:54 +0000 (14:58 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 11 Jul 2019 20:26:46 +0000 (06:26 +1000)
commit54846b7c6ef5718f507def9d192628133f97fe20
tree4d6810f0dda7442ec72619737c0724322e024ace
parent35e264c03232c7843733caa80f8e16bef7e2e829
Add simple ASN.1 utils for DSA signature DER.

Adds simple utility functions to allow both the default and fips providers to
encode and decode DSA-Sig-Value and ECDSA-Sig-Value (DSA_SIG and ECDSA_SIG
structures) to/from ASN.1 DER without requiring those providers to have a
dependency on the asn1 module.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9111)
crypto/asn1_dsa.c [new file with mode: 0644]
crypto/build.info
crypto/dsa/dsa_asn1.c
crypto/ec/ec_asn1.c
crypto/include/internal/asn1_dsa.h [new file with mode: 0644]
test/asn1_dsa_internal_test.c [new file with mode: 0644]
test/build.info
test/recipes/03-test_internal_asn1_dsa.t [new file with mode: 0644]