Branch: Tag:

2015-09-23

2015-09-23 15:33:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.PKCS.ECDSA: Added variant of parse_ec_parameters().

When parsing ASN.1 it is not unusual to have the ASN.1 objects
rather than their DER representation.

30:    return curve_lookup[ec_parameters];   }    + //! + variant Crypto.ECC.Curve parse_ec_paramaters(Identifier|void named_curve) + { +  if (!named_curve) return UNDEFINED; +  return parse_ec_parameters(named_curve->get_der()); + } +    //! Create a DER-coded ECPrivateKey structure   //! @param ecdsa   //! @[Crypto.ECC.Curve()->ECDSA] object.