Skip to content

Commit

Permalink
Deprecate accessing the point and scalar of ECC keys
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed May 5, 2024
1 parent 7e12053 commit bae2ce8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/pubkey/ecc_key/ecc_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bae2ce8

Please sign in to comment.