diff --git a/src/lib/pubkey/ecc_key/ecc_key.h b/src/lib/pubkey/ecc_key/ecc_key.h index c847f50357a..2d0b315db08 100644 --- a/src/lib/pubkey/ecc_key/ecc_key.h +++ b/src/lib/pubkey/ecc_key/ecc_key.h @@ -37,6 +37,8 @@ class BOTAN_PUBLIC_API(2, 0) EC_PublicKey : public virtual Public_Key { * domain parameters of this point are not set * @result the public point of this key */ + BOTAN_DEPRECATED("Do not access the internal point representation") + const EC_Point& public_point() const { return m_public_key; } AlgorithmIdentifier algorithm_identifier() const override; @@ -131,6 +133,7 @@ class BOTAN_PUBLIC_API(2, 0) EC_PrivateKey : public virtual EC_PublicKey, * Get the private key value of this key object. * @result the private key value of this key object */ + BOTAN_DEPRECATED("Do not access the internal scalar representation") const BigInt& private_value() const; EC_PrivateKey(const EC_PrivateKey& other) = default;