aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ecc_key
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-10 11:26:23 -0500
committerJack Lloyd <[email protected]>2018-03-10 11:26:23 -0500
commit74bb4187ba262e2c778218ca75ad9e21014fbdaf (patch)
tree486fe29849a3cfc42662aa0c2c732260e9708ba8 /src/lib/pubkey/ecc_key
parenta6bc9cee3d154982b13990083a7ee3fcad5a31a3 (diff)
Rename point_format to point_encoding
Matches setter
Diffstat (limited to 'src/lib/pubkey/ecc_key')
-rw-r--r--src/lib/pubkey/ecc_key/ecc_key.cpp2
-rw-r--r--src/lib/pubkey/ecc_key/ecc_key.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/ecc_key/ecc_key.cpp b/src/lib/pubkey/ecc_key/ecc_key.cpp
index 5f752fe5b..7b00d3209 100644
--- a/src/lib/pubkey/ecc_key/ecc_key.cpp
+++ b/src/lib/pubkey/ecc_key/ecc_key.cpp
@@ -68,7 +68,7 @@ AlgorithmIdentifier EC_PublicKey::algorithm_identifier() const
std::vector<uint8_t> EC_PublicKey::public_key_bits() const
{
- return public_point().encode(point_format());
+ return public_point().encode(point_encoding());
}
void EC_PublicKey::set_point_encoding(PointGFp::Compression_Type enc)
diff --git a/src/lib/pubkey/ecc_key/ecc_key.h b/src/lib/pubkey/ecc_key/ecc_key.h
index 4e4e623b2..ec2b5f9be 100644
--- a/src/lib/pubkey/ecc_key/ecc_key.h
+++ b/src/lib/pubkey/ecc_key/ecc_key.h
@@ -101,7 +101,7 @@ class BOTAN_PUBLIC_API(2,0) EC_PublicKey : public virtual Public_Key
* Get the point encoding method to be used when encoding this key.
* @result the encoding to use
*/
- PointGFp::Compression_Type point_format() const
+ PointGFp::Compression_Type point_encoding() const
{ return m_point_encoding; }
size_t key_length() const override;