aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ec_dompar/ec_dompar.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-01 23:05:00 +0000
committerlloyd <[email protected]>2010-03-01 23:05:00 +0000
commit3fb831f2e24ec1e3d7f8902d4aa5adceaf366f01 (patch)
tree226c329e44047b418add41e3ddfc58c322229409 /src/pubkey/ec_dompar/ec_dompar.h
parentb789c87b7c96dbdb00839996c9603a3f0921b25b (diff)
Kill get_EC_Dom_Pars_by_oid
Diffstat (limited to 'src/pubkey/ec_dompar/ec_dompar.h')
-rw-r--r--src/pubkey/ec_dompar/ec_dompar.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/pubkey/ec_dompar/ec_dompar.h b/src/pubkey/ec_dompar/ec_dompar.h
index cc55aa4df..b2f1e5d7c 100644
--- a/src/pubkey/ec_dompar/ec_dompar.h
+++ b/src/pubkey/ec_dompar/ec_dompar.h
@@ -31,6 +31,7 @@ enum EC_Domain_Params_Encoding {
class BOTAN_DLL EC_Domain_Params
{
public:
+
/**
* Construct Domain paramers from specified parameters
* @param curve elliptic curve
@@ -56,6 +57,12 @@ class BOTAN_DLL EC_Domain_Params
EC_Domain_Params(const MemoryRegion<byte>& ber_encoding);
/**
+ * Create an EC domain by OID (or throw if unknown)
+ * @param oid the OID of the EC domain to create
+ */
+ EC_Domain_Params(const OID& oid);
+
+ /**
* Create the DER encoding of this domain
* @param form of encoding to use
* @returns bytes encododed as DER
@@ -115,16 +122,6 @@ inline bool operator!=(const EC_Domain_Params& lhs,
return !(lhs == rhs);
}
-/**
-* Factory function, the only way to obtain EC domain parameters with
-* an OID. The demanded OID has to be registered in the InSiTo
-* configuration. Consult the file ec_dompar.cpp for the default
-* configuration.
-* @param oid the oid of the demanded EC domain parameters
-* @result the EC domain parameters associated with the OID
-*/
-EC_Domain_Params BOTAN_DLL get_EC_Dom_Pars_by_oid(std::string oid);
-
}
#endif