aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/curve25519/curve25519.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-01-11 10:33:06 -0500
committerJack Lloyd <[email protected]>2021-01-13 07:57:03 -0500
commitf8e9dc0bc7939cdbf1691da0f96fc31c6cd41e39 (patch)
treeaed4741137a93a519c2c430036d5768cdd7a0939 /src/lib/pubkey/curve25519/curve25519.cpp
parent1b424ce680b1bd88a31b2c229dd89a784c24fd9f (diff)
Don't use shouting case for ASN1_{Type,Class} values
Leftover from it being an old style enum, and now that we have split them there is not any further compatability concern.
Diffstat (limited to 'src/lib/pubkey/curve25519/curve25519.cpp')
-rw-r--r--src/lib/pubkey/curve25519/curve25519.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/curve25519/curve25519.cpp b/src/lib/pubkey/curve25519/curve25519.cpp
index 77da9f834..deb733964 100644
--- a/src/lib/pubkey/curve25519/curve25519.cpp
+++ b/src/lib/pubkey/curve25519/curve25519.cpp
@@ -80,7 +80,7 @@ Curve25519_PrivateKey::Curve25519_PrivateKey(RandomNumberGenerator& rng)
Curve25519_PrivateKey::Curve25519_PrivateKey(const AlgorithmIdentifier&,
const secure_vector<uint8_t>& key_bits)
{
- BER_Decoder(key_bits).decode(m_private, ASN1_Type::OCTET_STRING).discard_remaining();
+ BER_Decoder(key_bits).decode(m_private, ASN1_Type::OctetString).discard_remaining();
size_check(m_private.size(), "private key");
m_public.resize(32);
@@ -94,7 +94,7 @@ std::unique_ptr<Public_Key> Curve25519_PrivateKey::public_key() const
secure_vector<uint8_t> Curve25519_PrivateKey::private_key_bits() const
{
- return DER_Encoder().encode(m_private, ASN1_Type::OCTET_STRING).get_contents();
+ return DER_Encoder().encode(m_private, ASN1_Type::OctetString).get_contents();
}
bool Curve25519_PrivateKey::check_key(RandomNumberGenerator&, bool) const