diff options
author | Jack Lloyd <[email protected]> | 2018-03-20 09:23:33 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-20 09:23:33 -0400 |
commit | b08f7beb877569fd94736c5a67b9e28fcdd968b6 (patch) | |
tree | d91a78ad71f5998f98dfb60463769280334d7bba /src/lib/pubkey/ec_group | |
parent | a260a4f36ccaa1620455c976da55810bff77d5d7 (diff) |
Nudge users to EC_Group::OS2ECP
Diffstat (limited to 'src/lib/pubkey/ec_group')
-rw-r--r-- | src/lib/pubkey/ec_group/point_gfp.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/pubkey/ec_group/point_gfp.h b/src/lib/pubkey/ec_group/point_gfp.h index 20018fa2f..aa7e5b2c0 100644 --- a/src/lib/pubkey/ec_group/point_gfp.h +++ b/src/lib/pubkey/ec_group/point_gfp.h @@ -303,21 +303,27 @@ inline secure_vector<uint8_t> BOTAN_DEPRECATED("Use PointGFp::encode") return secure_vector<uint8_t>(enc.begin(), enc.end()); } +/** +* Perform point decoding +* Use EC_Group::OS2ECP instead +*/ PointGFp BOTAN_PUBLIC_API(2,0) OS2ECP(const uint8_t data[], size_t data_len, const CurveGFp& curve); /** * Perform point decoding +* Use EC_Group::OS2ECP instead +* * @param data the encoded point * @param data_len length of data in bytes * @param curve_p the curve equation prime * @param curve_a the curve equation a parameter * @param curve_b the curve equation b parameter */ -std::pair<BigInt, BigInt> BOTAN_PUBLIC_API(2,5) OS2ECP(const uint8_t data[], size_t data_len, - const BigInt& curve_p, - const BigInt& curve_a, - const BigInt& curve_b); +std::pair<BigInt, BigInt> BOTAN_UNSTABLE_API OS2ECP(const uint8_t data[], size_t data_len, + const BigInt& curve_p, + const BigInt& curve_a, + const BigInt& curve_b); template<typename Alloc> PointGFp OS2ECP(const std::vector<uint8_t, Alloc>& data, const CurveGFp& curve) |