aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/pkcs11/p11_ecc_key.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/prov/pkcs11/p11_ecc_key.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/prov/pkcs11/p11_ecc_key.cpp')
-rw-r--r--src/lib/prov/pkcs11/p11_ecc_key.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/prov/pkcs11/p11_ecc_key.cpp b/src/lib/prov/pkcs11/p11_ecc_key.cpp
index dddf3a0c4..d983c2955 100644
--- a/src/lib/prov/pkcs11/p11_ecc_key.cpp
+++ b/src/lib/prov/pkcs11/p11_ecc_key.cpp
@@ -21,7 +21,7 @@ namespace {
PointGFp decode_public_point(const secure_vector<uint8_t>& ec_point_data, const EC_Group& group)
{
secure_vector<uint8_t> ec_point;
- BER_Decoder(ec_point_data).decode(ec_point, ASN1_Type::OCTET_STRING);
+ BER_Decoder(ec_point_data).decode(ec_point, ASN1_Type::OctetString);
return group.OS2ECP(ec_point);
}
}
@@ -55,7 +55,7 @@ PKCS11_EC_PublicKey::PKCS11_EC_PublicKey(Session& session, const EC_PublicKeyImp
m_domain_params = EC_Group(props.ec_params());
secure_vector<uint8_t> ec_point;
- BER_Decoder(props.ec_point()).decode(ec_point, ASN1_Type::OCTET_STRING);
+ BER_Decoder(props.ec_point()).decode(ec_point, ASN1_Type::OctetString);
m_public_key = m_domain_params.OS2ECP(ec_point);
m_domain_encoding = EC_Group_Encoding::Explicit;
}